| OLD | NEW |
| 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 #include "extensions/common/matcher/url_matcher.h" | 5 #include "extensions/common/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 "content/public/common/url_constants.h" | 11 #include "content/public/common/url_constants.h" |
| 12 #include "googleurl/src/gurl.h" | 12 #include "url/gurl.h" |
| 13 #include "googleurl/src/url_canon.h" | 13 #include "url/url_canon.h" |
| 14 | 14 |
| 15 namespace extensions { | 15 namespace extensions { |
| 16 | 16 |
| 17 // 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 |
| 18 // host_prefix, host_suffix, host_equals, ..., etc., to StringPatterns | 18 // host_prefix, host_suffix, host_equals, ..., etc., to StringPatterns |
| 19 // for use in substring comparisons. | 19 // for use in substring comparisons. |
| 20 // | 20 // |
| 21 // 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 |
| 22 // URL Component Patterns against one URL to the problem of searching many | 22 // URL Component Patterns against one URL to the problem of searching many |
| 23 // substrings in one string: | 23 // substrings in one string: |
| (...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 876 | 876 |
| 877 void URLMatcher::UpdateInternalDatastructures() { | 877 void URLMatcher::UpdateInternalDatastructures() { |
| 878 UpdateSubstringSetMatcher(false); | 878 UpdateSubstringSetMatcher(false); |
| 879 UpdateSubstringSetMatcher(true); | 879 UpdateSubstringSetMatcher(true); |
| 880 UpdateRegexSetMatcher(); | 880 UpdateRegexSetMatcher(); |
| 881 UpdateTriggers(); | 881 UpdateTriggers(); |
| 882 UpdateConditionFactory(); | 882 UpdateConditionFactory(); |
| 883 } | 883 } |
| 884 | 884 |
| 885 } // namespace extensions | 885 } // namespace extensions |
| OLD | NEW |