| 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 #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 Loading... |
| 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_ |
| OLD | NEW |