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

Unified Diff: chrome/common/extensions/feature_provider.h

Issue 9950046: Implement FeatureProvider for ExtensionAPI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: hate hate hate Created 8 years, 9 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 | « chrome/common/extensions/feature.cc ('k') | chrome/common/extensions/feature_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/feature_provider.h
diff --git a/chrome/common/extensions/feature_provider.h b/chrome/common/extensions/feature_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..0db046834749f952022314ee1246d9e01ab3cd62
--- /dev/null
+++ b/chrome/common/extensions/feature_provider.h
@@ -0,0 +1,29 @@
+// 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_FEATURE_PROVIDER_H_
+#define CHROME_COMMON_EXTENSIONS_FEATURE_PROVIDER_H_
+#pragma once
+
+#include <string>
+
+#include "base/memory/scoped_ptr.h"
+
+namespace extensions {
+
+class Feature;
+
+// Implemented by classes that can vend features.
+class FeatureProvider {
+ public:
+ FeatureProvider() {}
+ virtual ~FeatureProvider() {}
+
+ // Returns the feature with the specified name.
+ virtual scoped_ptr<Feature> GetFeature(const std::string& name) = 0;
+};
+
+} // namespace extensions
+
+#endif // CHROME_COMMON_EXTENSIONS_FEATURE_PROVIDER_H_
« no previous file with comments | « chrome/common/extensions/feature.cc ('k') | chrome/common/extensions/feature_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698