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

Unified Diff: chrome/common/extensions/matcher/url_matcher_factory.h

Issue 12092096: Move c/c/extensions/matcher/ to top level extension dir (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TOT Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/matcher/url_matcher_factory.h
diff --git a/chrome/common/extensions/matcher/url_matcher_factory.h b/chrome/common/extensions/matcher/url_matcher_factory.h
deleted file mode 100644
index 7623e1864f63f2a836c05cd00379abcf33020833..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/matcher/url_matcher_factory.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_COMMON_EXTENSIONS_MATCHER_URL_MATCHER_FACTORY_H_
-#define CHROME_COMMON_EXTENSIONS_MATCHER_URL_MATCHER_FACTORY_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "chrome/common/extensions/matcher/url_matcher.h"
-
-namespace base {
-class DictionaryValue;
-class Value;
-}
-
-namespace extensions {
-
-class URLMatcherFactory {
- public:
- // Creates a URLMatcherConditionSet from a UrlFilter dictionary as defined in
- // the declarative API. |url_fetcher_dict| contains the dictionary passed
- // by the extension, |id| is the identifier assigned to the created
- // URLMatcherConditionSet. In case of an error, |error| is set to contain
- // an error message.
- //
- // Note: In case this function fails or if you don't register the
- // URLMatcherConditionSet to the URLMatcher, you need to call
- // URLMatcher::ClearUnusedConditionSets() on the URLMatcher that owns this
- // URLMatcherFactory. Otherwise you leak memory.
- static scoped_refptr<URLMatcherConditionSet> CreateFromURLFilterDictionary(
- URLMatcherConditionFactory* url_matcher_condition_factory,
- const base::DictionaryValue* url_filter_dict,
- URLMatcherConditionSet::ID id,
- std::string* error);
-
- private:
- // Returns whether a condition attribute with name |condition_attribute_name|
- // needs to be handled by the URLMatcher.
- static bool IsURLMatcherConditionAttribute(
- const std::string& condition_attribute_name);
-
- // Factory method of for URLMatcherConditions.
- static URLMatcherCondition CreateURLMatcherCondition(
- URLMatcherConditionFactory* url_matcher_condition_factory,
- const std::string& condition_attribute_name,
- const base::Value* value,
- std::string* error);
-
- static scoped_ptr<URLMatcherSchemeFilter> CreateURLMatcherScheme(
- const base::Value* value, std::string* error);
-
- static scoped_ptr<URLMatcherPortFilter> CreateURLMatcherPorts(
- const base::Value* value, std::string* error);
-
- DISALLOW_IMPLICIT_CONSTRUCTORS(URLMatcherFactory);
-};
-
-} // namespace extensions
-
-#endif // CHROME_COMMON_EXTENSIONS_MATCHER_URL_MATCHER_FACTORY_H_
« no previous file with comments | « chrome/common/extensions/matcher/url_matcher_constants.cc ('k') | chrome/common/extensions/matcher/url_matcher_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698