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

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

Issue 1917673002: Convert //components/[u-z]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 7 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
« no previous file with comments | « components/url_matcher/url_matcher.cc ('k') | components/url_matcher/url_matcher_factory.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_URL_MATCHER_FACTORY_H_ 5 #ifndef COMPONENTS_URL_MATCHER_URL_MATCHER_FACTORY_H_
6 #define COMPONENTS_URL_MATCHER_URL_MATCHER_FACTORY_H_ 6 #define COMPONENTS_URL_MATCHER_URL_MATCHER_FACTORY_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "components/url_matcher/url_matcher.h" 12 #include "components/url_matcher/url_matcher.h"
12 #include "components/url_matcher/url_matcher_export.h" 13 #include "components/url_matcher/url_matcher_export.h"
13 14
14 namespace base { 15 namespace base {
15 class DictionaryValue; 16 class DictionaryValue;
16 class Value; 17 class Value;
17 } 18 }
(...skipping 24 matching lines...) Expand all
42 static bool IsURLMatcherConditionAttribute( 43 static bool IsURLMatcherConditionAttribute(
43 const std::string& condition_attribute_name); 44 const std::string& condition_attribute_name);
44 45
45 // Factory method of for URLMatcherConditions. 46 // Factory method of for URLMatcherConditions.
46 static URLMatcherCondition CreateURLMatcherCondition( 47 static URLMatcherCondition CreateURLMatcherCondition(
47 URLMatcherConditionFactory* url_matcher_condition_factory, 48 URLMatcherConditionFactory* url_matcher_condition_factory,
48 const std::string& condition_attribute_name, 49 const std::string& condition_attribute_name,
49 const base::Value* value, 50 const base::Value* value,
50 std::string* error); 51 std::string* error);
51 52
52 static scoped_ptr<URLMatcherSchemeFilter> CreateURLMatcherScheme( 53 static std::unique_ptr<URLMatcherSchemeFilter> CreateURLMatcherScheme(
53 const base::Value* value, std::string* error); 54 const base::Value* value,
55 std::string* error);
54 56
55 static scoped_ptr<URLMatcherPortFilter> CreateURLMatcherPorts( 57 static std::unique_ptr<URLMatcherPortFilter> CreateURLMatcherPorts(
56 const base::Value* value, std::string* error); 58 const base::Value* value,
59 std::string* error);
57 60
58 DISALLOW_IMPLICIT_CONSTRUCTORS(URLMatcherFactory); 61 DISALLOW_IMPLICIT_CONSTRUCTORS(URLMatcherFactory);
59 }; 62 };
60 63
61 } // namespace url_matcher 64 } // namespace url_matcher
62 65
63 #endif // COMPONENTS_URL_MATCHER_URL_MATCHER_FACTORY_H_ 66 #endif // COMPONENTS_URL_MATCHER_URL_MATCHER_FACTORY_H_
OLDNEW
« no previous file with comments | « components/url_matcher/url_matcher.cc ('k') | components/url_matcher/url_matcher_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698