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

Side by Side Diff: components/url_matcher/regex_set_matcher.h

Issue 2443753003: Remove stl_util's deletion function use from components/url_matcher/. (Closed)
Patch Set: battre Created 4 years, 1 month 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 | « no previous file | components/url_matcher/regex_set_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_REGEX_SET_MATCHER_H_ 5 #ifndef COMPONENTS_URL_MATCHER_REGEX_SET_MATCHER_H_
6 #define COMPONENTS_URL_MATCHER_REGEX_SET_MATCHER_H_ 6 #define COMPONENTS_URL_MATCHER_REGEX_SET_MATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 RegexMap regexes_; 68 RegexMap regexes_;
69 // Mapping of RE2IDs from FilteredRE2 (which are assigned in order) 69 // Mapping of RE2IDs from FilteredRE2 (which are assigned in order)
70 // to regex StringPattern::IDs. 70 // to regex StringPattern::IDs.
71 RE2IDMap re2_id_map_; 71 RE2IDMap re2_id_map_;
72 72
73 std::unique_ptr<re2::FilteredRE2> filtered_re2_; 73 std::unique_ptr<re2::FilteredRE2> filtered_re2_;
74 std::unique_ptr<SubstringSetMatcher> substring_matcher_; 74 std::unique_ptr<SubstringSetMatcher> substring_matcher_;
75 75
76 // The substring patterns from FilteredRE2, which are used in 76 // The substring patterns from FilteredRE2, which are used in
77 // |substring_matcher_| but whose lifetime is managed here. 77 // |substring_matcher_| but whose lifetime is managed here.
78 std::vector<const StringPattern*> substring_patterns_; 78 std::vector<std::unique_ptr<StringPattern>> substring_patterns_;
79 }; 79 };
80 80
81 } // namespace url_matcher 81 } // namespace url_matcher
82 82
83 #endif // COMPONENTS_URL_MATCHER_REGEX_SET_MATCHER_H_ 83 #endif // COMPONENTS_URL_MATCHER_REGEX_SET_MATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | components/url_matcher/regex_set_matcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698