OLD | NEW |
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 #include "components/url_matcher/url_matcher.h" | 5 #include "components/url_matcher/url_matcher.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <iterator> | 8 #include <iterator> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/stl_util.h" |
11 #include "url/gurl.h" | 12 #include "url/gurl.h" |
12 #include "url/url_canon.h" | 13 #include "url/url_canon.h" |
13 | 14 |
14 namespace url_matcher { | 15 namespace url_matcher { |
15 | 16 |
16 // This set of classes implement a mapping of URL Component Patterns, such as | 17 // This set of classes implement a mapping of URL Component Patterns, such as |
17 // host_prefix, host_suffix, host_equals, ..., etc., to StringPatterns | 18 // host_prefix, host_suffix, host_equals, ..., etc., to StringPatterns |
18 // for use in substring comparisons. | 19 // for use in substring comparisons. |
19 // | 20 // |
20 // The idea of this mapping is to reduce the problem of comparing many | 21 // The idea of this mapping is to reduce the problem of comparing many |
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1095 | 1096 |
1096 void URLMatcher::UpdateInternalDatastructures() { | 1097 void URLMatcher::UpdateInternalDatastructures() { |
1097 UpdateSubstringSetMatcher(false); | 1098 UpdateSubstringSetMatcher(false); |
1098 UpdateSubstringSetMatcher(true); | 1099 UpdateSubstringSetMatcher(true); |
1099 UpdateRegexSetMatcher(); | 1100 UpdateRegexSetMatcher(); |
1100 UpdateTriggers(); | 1101 UpdateTriggers(); |
1101 UpdateConditionFactory(); | 1102 UpdateConditionFactory(); |
1102 } | 1103 } |
1103 | 1104 |
1104 } // namespace url_matcher | 1105 } // namespace url_matcher |
OLD | NEW |