1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "content/public/browser/security_style_explanation.h"
6 
7 #include <utility>
8 
9 namespace content {
10 
SecurityStyleExplanation()11 SecurityStyleExplanation::SecurityStyleExplanation() {}
12 
SecurityStyleExplanation(std::string summary,std::string description)13 SecurityStyleExplanation::SecurityStyleExplanation(std::string summary,
14                                                    std::string description)
15     : SecurityStyleExplanation(std::string(),
16                                std::move(summary),
17                                std::move(description)) {}
18 
SecurityStyleExplanation(std::string title,std::string summary,std::string description)19 SecurityStyleExplanation::SecurityStyleExplanation(std::string title,
20                                                    std::string summary,
21                                                    std::string description)
22     : SecurityStyleExplanation(std::move(title),
23                                std::move(summary),
24                                std::move(description),
25                                {}) {}
26 
SecurityStyleExplanation(std::string title,std::string summary,std::string description,scoped_refptr<net::X509Certificate> certificate,blink::WebMixedContentContextType mixed_content_type)27 SecurityStyleExplanation::SecurityStyleExplanation(
28     std::string title,
29     std::string summary,
30     std::string description,
31     scoped_refptr<net::X509Certificate> certificate,
32     blink::WebMixedContentContextType mixed_content_type)
33     : title(std::move(title)),
34       summary(std::move(summary)),
35       description(std::move(description)),
36       certificate(std::move(certificate)),
37       mixed_content_type(mixed_content_type) {}
38 
SecurityStyleExplanation(std::string title,std::string summary,std::string description,std::vector<std::string> recommendations)39 SecurityStyleExplanation::SecurityStyleExplanation(
40     std::string title,
41     std::string summary,
42     std::string description,
43     std::vector<std::string> recommendations)
44     : title(std::move(title)),
45       summary(std::move(summary)),
46       description(std::move(description)),
47       mixed_content_type(blink::WebMixedContentContextType::kNotMixedContent),
48       recommendations(std::move(recommendations)) {}
49 
50 SecurityStyleExplanation::SecurityStyleExplanation(
51     const SecurityStyleExplanation& other) = default;
52 
53 SecurityStyleExplanation::SecurityStyleExplanation(
54     SecurityStyleExplanation&& other) = default;
55 
56 SecurityStyleExplanation& SecurityStyleExplanation::operator=(
57     const SecurityStyleExplanation& other) = default;
58 
59 SecurityStyleExplanation& SecurityStyleExplanation::operator=(
60     SecurityStyleExplanation&& other) = default;
61 
~SecurityStyleExplanation()62 SecurityStyleExplanation::~SecurityStyleExplanation() {}
63 
64 }  // namespace content
65