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

Side by Side Diff: components/url_matcher/url_matcher.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
« no previous file with comments | « components/update_client/update_response.cc ('k') | components/url_matcher/url_matcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_URL_MATCHER_URL_MATCHER_H_ 5 #ifndef COMPONENTS_URL_MATCHER_URL_MATCHER_H_
6 #define COMPONENTS_URL_MATCHER_URL_MATCHER_H_ 6 #define COMPONENTS_URL_MATCHER_URL_MATCHER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // Used to indicate if the query parameter is of type &key=value& 246 // Used to indicate if the query parameter is of type &key=value&
247 // (ELEMENT_TYPE_KEY_VALUE) or simply &key& (ELEMENT_TYPE_KEY). 247 // (ELEMENT_TYPE_KEY_VALUE) or simply &key& (ELEMENT_TYPE_KEY).
248 enum QueryElementType { ELEMENT_TYPE_KEY_VALUE, ELEMENT_TYPE_KEY }; 248 enum QueryElementType { ELEMENT_TYPE_KEY_VALUE, ELEMENT_TYPE_KEY };
249 249
250 URLQueryElementMatcherCondition(const std::string& key, 250 URLQueryElementMatcherCondition(const std::string& key,
251 const std::string& value, 251 const std::string& value,
252 QueryValueMatchType query_value_match_type, 252 QueryValueMatchType query_value_match_type,
253 QueryElementType query_element_type, 253 QueryElementType query_element_type,
254 Type match_type, 254 Type match_type,
255 URLMatcherConditionFactory* factory); 255 URLMatcherConditionFactory* factory);
256 URLQueryElementMatcherCondition(const URLQueryElementMatcherCondition& other);
jochen (gone - plz use gerrit) 2016/02/24 08:10:49 i wonder whether this class should rather be DISAL
vmpstr 2016/02/25 00:20:38 It's being copied over here: https://code.google.c
256 ~URLQueryElementMatcherCondition(); 257 ~URLQueryElementMatcherCondition();
257 258
258 bool operator<(const URLQueryElementMatcherCondition& rhs) const; 259 bool operator<(const URLQueryElementMatcherCondition& rhs) const;
259 260
260 // Returns whether the URL query satisfies the key value constraint. 261 // Returns whether the URL query satisfies the key value constraint.
261 bool IsMatch(const std::string& canonical_url_query) const; 262 bool IsMatch(const std::string& canonical_url_query) const;
262 263
263 const StringPattern* string_pattern() const { return string_pattern_; } 264 const StringPattern* string_pattern() const { return string_pattern_; }
264 265
265 private: 266 private:
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 RegexSetMatcher origin_and_path_regex_set_matcher_; 425 RegexSetMatcher origin_and_path_regex_set_matcher_;
425 std::set<const StringPattern*> registered_full_url_patterns_; 426 std::set<const StringPattern*> registered_full_url_patterns_;
426 std::set<const StringPattern*> registered_url_component_patterns_; 427 std::set<const StringPattern*> registered_url_component_patterns_;
427 428
428 DISALLOW_COPY_AND_ASSIGN(URLMatcher); 429 DISALLOW_COPY_AND_ASSIGN(URLMatcher);
429 }; 430 };
430 431
431 } // namespace url_matcher 432 } // namespace url_matcher
432 433
433 #endif // COMPONENTS_URL_MATCHER_URL_MATCHER_H_ 434 #endif // COMPONENTS_URL_MATCHER_URL_MATCHER_H_
OLDNEW
« no previous file with comments | « components/update_client/update_response.cc ('k') | components/url_matcher/url_matcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698