| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_COMMON_FEATURES_API_FEATURE_H_ | 5 #ifndef EXTENSIONS_COMMON_FEATURES_API_FEATURE_H_ |
| 6 #define EXTENSIONS_COMMON_FEATURES_API_FEATURE_H_ | 6 #define EXTENSIONS_COMMON_FEATURES_API_FEATURE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "extensions/common/features/simple_feature.h" | 10 #include "extensions/common/features/simple_feature.h" |
| 11 | 11 |
| 12 namespace extensions { | 12 namespace extensions { |
| 13 | 13 |
| 14 class APIFeature : public SimpleFeature { | 14 class APIFeature : public SimpleFeature { |
| 15 public: | 15 public: |
| 16 APIFeature(); | 16 APIFeature(); |
| 17 virtual ~APIFeature(); | 17 virtual ~APIFeature(); |
| 18 | 18 |
| 19 // extensions::Feature: | 19 // extensions::Feature: |
| 20 virtual bool IsInternal() const OVERRIDE; | 20 virtual bool IsInternal() const OVERRIDE; |
| 21 virtual bool IsBlockedInServiceWorker() const OVERRIDE; | |
| 22 | 21 |
| 23 virtual std::string Parse(const base::DictionaryValue* value) OVERRIDE; | 22 virtual std::string Parse(const base::DictionaryValue* value) OVERRIDE; |
| 24 | 23 |
| 25 private: | 24 private: |
| 26 bool internal_; | 25 bool internal_; |
| 27 bool blocked_in_service_worker_; | |
| 28 }; | 26 }; |
| 29 | 27 |
| 30 } // namespace extensions | 28 } // namespace extensions |
| 31 | 29 |
| 32 #endif // EXTENSIONS_COMMON_FEATURES_API_FEATURE_H_ | 30 #endif // EXTENSIONS_COMMON_FEATURES_API_FEATURE_H_ |
| OLD | NEW |