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

Side by Side 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: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_EXTENSIONS_FEATURE_PROVIDER_H_
6 #define CHROME_COMMON_EXTENSIONS_FEATURE_PROVIDER_H_
7 #pragma once
8
9 #include <string>
10
11 #include "base/memory/scoped_ptr.h"
12
13 namespace extensions {
14
15 class Feature;
16
17 // Implemented by classes that can vend features.
18 class FeatureProvider {
19 public:
20 FeatureProvider() {}
21 virtual ~FeatureProvider() {}
22
23 // Returns the feature with the specified name.
24 virtual scoped_ptr<Feature> GetFeature(const std::string& name) = 0;
25 };
26
27 } // namespace extensions
28
29 #endif // CHROME_COMMON_EXTENSIONS_FEATURE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698