| 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_PERMISSION_FEATURE_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_FEATURES_PERMISSION_FEATURE_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_FEATURES_PERMISSION_FEATURE_H_ | 6 #define CHROME_COMMON_EXTENSIONS_FEATURES_PERMISSION_FEATURE_H_ |
| 7 | 7 |
| 8 #include "chrome/common/extensions/features/simple_feature.h" | 8 #include "chrome/common/extensions/features/simple_feature.h" |
| 9 | 9 |
| 10 namespace extensions { | 10 namespace extensions { |
| 11 | 11 |
| 12 class PermissionFeature : public SimpleFeature { | 12 class PermissionFeature : public SimpleFeature { |
| 13 public: | 13 public: |
| 14 PermissionFeature(); | 14 PermissionFeature(); |
| 15 virtual ~PermissionFeature(); | 15 virtual ~PermissionFeature(); |
| 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 const GURL& url, | 20 const GURL& url, |
| 21 Feature::Platform platform) const OVERRIDE; | 21 Feature::Platform platform) const OVERRIDE; |
| 22 |
| 23 virtual std::string Parse(const DictionaryValue* value) OVERRIDE; |
| 22 }; | 24 }; |
| 23 | 25 |
| 24 } // extensions | 26 } // extensions |
| 25 | 27 |
| 26 #endif // CHROME_COMMON_EXTENSIONS_FEATURES_PERMISSION_FEATURE_H_ | 28 #endif // CHROME_COMMON_EXTENSIONS_FEATURES_PERMISSION_FEATURE_H_ |
| OLD | NEW |