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

Unified Diff: extensions/common/extensions_client.h

Issue 246423002: Split feature definitions into extensions and chrome features. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: repack2 Created 6 years, 8 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
« no previous file with comments | « extensions/common/api/_permission_features.json ('k') | extensions/common/features/base_feature_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extensions_client.h
diff --git a/extensions/common/extensions_client.h b/extensions/common/extensions_client.h
index e9fb2005d02ae59ca3a7a1479081b2e38e57ccfb..8207895553933af2f74ec07575115985e132084e 100644
--- a/extensions/common/extensions_client.h
+++ b/extensions/common/extensions_client.h
@@ -9,6 +9,7 @@
#include <string>
#include <vector>
+#include "base/memory/scoped_ptr.h"
#include "base/strings/string_piece.h"
class GURL;
@@ -46,9 +47,9 @@ class ExtensionsClient {
virtual const PermissionMessageProvider& GetPermissionMessageProvider()
const = 0;
- // Gets a feature provider for a specific feature type.
- virtual FeatureProvider* GetFeatureProviderByName(const std::string& name)
- const = 0;
+ // Create a FeatureProvider for a specific feature type, e.g. "permission".
+ virtual scoped_ptr<FeatureProvider> CreateFeatureProvider(
+ const std::string& name) const = 0;
// Takes the list of all hosts and filters out those with special
// permission strings. Adds the regular hosts to |new_hosts|,
@@ -80,9 +81,6 @@ class ExtensionsClient {
// Gets the API schema named |name|.
virtual base::StringPiece GetAPISchema(const std::string& name) const = 0;
- // Appends extra filters to any Features created by the features system.
- virtual void AddExtraFeatureFilters(SimpleFeature* feature) const = 0;
-
// Determines if certain fatal extensions errors should be surpressed
// (i.e., only logged) or allowed (i.e., logged before crashing).
virtual bool ShouldSuppressFatalErrors() const = 0;
« no previous file with comments | « extensions/common/api/_permission_features.json ('k') | extensions/common/features/base_feature_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698