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

Side by Side Diff: chrome/common/extensions/features/manifest_feature.h

Issue 11568034: Changing inheritance to composition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
« no previous file with comments | « no previous file | chrome/common/extensions/features/manifest_feature.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 CHROME_COMMON_EXTENSIONS_FEATURES_MANIFEST_FEATURE_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_FEATURES_MANIFEST_FEATURE_H_
6 #define CHROME_COMMON_EXTENSIONS_FEATURES_MANIFEST_FEATURE_H_ 6 #define CHROME_COMMON_EXTENSIONS_FEATURES_MANIFEST_FEATURE_H_
7 7
8 #include "chrome/common/extensions/features/feature.h" 8 #include "chrome/common/extensions/features/feature.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 11
12 class ManifestFeature : public Feature { 12 class ManifestFeature : public Feature {
13 public: 13 public:
14 ManifestFeature(); 14 explicit ManifestFeature(scoped_ptr<Feature> feature);
15 virtual ~ManifestFeature(); 15 virtual ~ManifestFeature();
16 16
17 virtual Feature::Availability IsAvailableToContext( 17 virtual Feature::Availability IsAvailableToContext(
18 const Extension* extension, 18 const Extension* extension,
19 Feature::Context context, 19 Feature::Context context,
20 Feature::Platform platform) const OVERRIDE; 20 Feature::Platform platform) const OVERRIDE;
21
22 private:
23 scoped_ptr<Feature> feature_;
21 }; 24 };
22 25
23 } // extensions 26 } // extensions
24 27
25 #endif // CHROME_COMMON_EXTENSIONS_FEATURES_MANIFEST_FEATURE_H_ 28 #endif // CHROME_COMMON_EXTENSIONS_FEATURES_MANIFEST_FEATURE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/features/manifest_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698