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

Side by Side Diff: extensions/common/matcher/url_matcher.cc

Issue 18919005: Migrate from googleurl/ includes to url/ ones in the remaining top-level directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make googleurl a temp include rule - to prevent others including it again Created 7 years, 5 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 | Annotate | Revision Log
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 #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
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
OLDNEW
« no previous file with comments | « extensions/common/matcher/regex_set_matcher_unittest.cc ('k') | extensions/common/matcher/url_matcher_factory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698