Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/simple_feature.h" |
| 9 | 9 |
| 10 namespace extensions { | 10 namespace extensions { |
| 11 | 11 |
| 12 class ManifestFeature : public Feature { | 12 class ManifestFeature : public SimpleFeature { |
|
not at google - send to devlin
2012/12/12 17:42:41
now that Feature is an interface, can we make this
justinlin
2012/12/14 12:26:26
Hmm.. not sure how you mean by this? I thought abo
not at google - send to devlin
2012/12/14 19:10:42
Something like this: https://codereview.chromium.o
| |
| 13 public: | 13 public: |
| 14 ManifestFeature(); | 14 ManifestFeature(); |
| 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 }; | 21 }; |
| 22 | 22 |
| 23 } // extensions | 23 } // extensions |
| 24 | 24 |
| 25 #endif // CHROME_COMMON_EXTENSIONS_FEATURES_MANIFEST_FEATURE_H_ | 25 #endif // CHROME_COMMON_EXTENSIONS_FEATURES_MANIFEST_FEATURE_H_ |
| OLD | NEW |