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

Side by Side Diff: components/content_settings/core/common/content_settings_pattern.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Patterns used in content setting rules. 5 // Patterns used in content setting rules.
6 6
7 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_PATTERN_H_ 7 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_PATTERN_H_
8 #define COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_PATTERN_H_ 8 #define COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_PATTERN_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 enum Relation { 48 enum Relation {
49 DISJOINT_ORDER_POST = -2, 49 DISJOINT_ORDER_POST = -2,
50 SUCCESSOR = -1, 50 SUCCESSOR = -1,
51 IDENTITY = 0, 51 IDENTITY = 0,
52 PREDECESSOR = 1, 52 PREDECESSOR = 1,
53 DISJOINT_ORDER_PRE = 2, 53 DISJOINT_ORDER_PRE = 2,
54 }; 54 };
55 55
56 struct PatternParts { 56 struct PatternParts {
57 PatternParts(); 57 PatternParts();
58 PatternParts(const PatternParts& other);
58 ~PatternParts(); 59 ~PatternParts();
59 60
60 // Lowercase string of the URL scheme to match. This string is empty if the 61 // Lowercase string of the URL scheme to match. This string is empty if the
61 // |is_scheme_wildcard| flag is set. 62 // |is_scheme_wildcard| flag is set.
62 std::string scheme; 63 std::string scheme;
63 64
64 // True if the scheme wildcard is set. 65 // True if the scheme wildcard is set.
65 bool is_scheme_wildcard; 66 bool is_scheme_wildcard;
66 67
67 // Normalized string that is either of the following: 68 // Normalized string that is either of the following:
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 const ContentSettingsPattern::PatternParts& other_parts); 210 const ContentSettingsPattern::PatternParts& other_parts);
210 211
211 ContentSettingsPattern(const PatternParts& parts, bool valid); 212 ContentSettingsPattern(const PatternParts& parts, bool valid);
212 213
213 PatternParts parts_; 214 PatternParts parts_;
214 215
215 bool is_valid_; 216 bool is_valid_;
216 }; 217 };
217 218
218 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_PATTERN_H_ 219 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_PATTERN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698