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

Side by Side Diff: components/url_matcher/url_matcher_factory.cc

Issue 1544433002: Replace RE2 import with a dependency (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-Added LICENSE and OWNERS file Created 5 years 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
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 #include "components/url_matcher/url_matcher_factory.h" 5 #include "components/url_matcher/url_matcher_factory.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cctype> 8 #include <cctype>
9 9
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "components/url_matcher/url_matcher_constants.h" 14 #include "components/url_matcher/url_matcher_constants.h"
15 #include "components/url_matcher/url_matcher_helpers.h" 15 #include "components/url_matcher/url_matcher_helpers.h"
16 #include "third_party/re2/re2/re2.h" 16 #include "third_party/re2/src/re2/re2.h"
17 17
18 namespace url_matcher { 18 namespace url_matcher {
19 19
20 namespace helpers = url_matcher_helpers; 20 namespace helpers = url_matcher_helpers;
21 namespace keys = url_matcher_constants; 21 namespace keys = url_matcher_constants;
22 22
23 namespace { 23 namespace {
24 24
25 // Error messages: 25 // Error messages:
26 const char kInvalidPortRanges[] = "Invalid port ranges in UrlFilter."; 26 const char kInvalidPortRanges[] = "Invalid port ranges in UrlFilter.";
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 } else { 264 } else {
265 *error = kInvalidPortRanges; 265 *error = kInvalidPortRanges;
266 return scoped_ptr<URLMatcherPortFilter>(); 266 return scoped_ptr<URLMatcherPortFilter>();
267 } 267 }
268 } 268 }
269 269
270 return scoped_ptr<URLMatcherPortFilter>(new URLMatcherPortFilter(ranges)); 270 return scoped_ptr<URLMatcherPortFilter>(new URLMatcherPortFilter(ranges));
271 } 271 }
272 272
273 } // namespace url_matcher 273 } // namespace url_matcher
OLDNEW
« no previous file with comments | « components/url_matcher/regex_set_matcher.cc ('k') | components/webcrypto/algorithms/test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698