Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: components/autofill/core/browser/legal_message_line.h

Issue 1728033002: components: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_LEGAL_MESSAGE_LINE_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_LEGAL_MESSAGE_LINE_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_LEGAL_MESSAGE_LINE_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_LEGAL_MESSAGE_LINE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 18 matching lines...) Expand all
29 public: 29 public:
30 struct Link { 30 struct Link {
31 Link(size_t start, size_t end, const std::string& url_spec); 31 Link(size_t start, size_t end, const std::string& url_spec);
32 ~Link(); 32 ~Link();
33 33
34 gfx::Range range; 34 gfx::Range range;
35 GURL url; 35 GURL url;
36 }; 36 };
37 37
38 LegalMessageLine(); 38 LegalMessageLine();
39 LegalMessageLine(const LegalMessageLine& other);
39 virtual ~LegalMessageLine(); // Overridden in TestLegalMessageLine. 40 virtual ~LegalMessageLine(); // Overridden in TestLegalMessageLine.
40 41
41 // Parses |legal_message|. Returns false on failure. 42 // Parses |legal_message|. Returns false on failure.
42 // 43 //
43 // Example of valid |legal_message| data: 44 // Example of valid |legal_message| data:
44 // { 45 // {
45 // "line" : [ { 46 // "line" : [ {
46 // "template" : "The legal documents are: {0} and {1}", 47 // "template" : "The legal documents are: {0} and {1}",
47 // "template_parameter" : [ { 48 // "template_parameter" : [ {
48 // "display_text" : "Terms of Service", 49 // "display_text" : "Terms of Service",
(...skipping 28 matching lines...) Expand all
77 78
78 bool ParseLine(const base::DictionaryValue& line); 79 bool ParseLine(const base::DictionaryValue& line);
79 80
80 base::string16 text_; 81 base::string16 text_;
81 std::vector<Link> links_; 82 std::vector<Link> links_;
82 }; 83 };
83 84
84 } // namespace autofill 85 } // namespace autofill
85 86
86 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_LEGAL_MESSAGE_LINE_H_ 87 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_LEGAL_MESSAGE_LINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698