| 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_JSON_FEATURE_PROVIDER_SOURCE_H_ | 5 #ifndef EXTENSIONS_COMMON_FEATURES_JSON_FEATURE_PROVIDER_SOURCE_H_ |
| 6 #define EXTENSIONS_COMMON_FEATURES_JSON_FEATURE_PROVIDER_SOURCE_H_ | 6 #define EXTENSIONS_COMMON_FEATURES_JSON_FEATURE_PROVIDER_SOURCE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "base/values.h" | 11 #include "base/values.h" |
| 11 | 12 |
| 12 namespace extensions { | 13 namespace extensions { |
| 13 | 14 |
| 14 // A JSONFeatureProviderSource loads JSON dictionary files that | 15 // A JSONFeatureProviderSource loads JSON dictionary files that |
| 15 // define features. | 16 // define features. |
| 16 class JSONFeatureProviderSource { | 17 class JSONFeatureProviderSource { |
| 17 public: | 18 public: |
| 18 explicit JSONFeatureProviderSource(const std::string& name); | 19 explicit JSONFeatureProviderSource(const std::string& name); |
| 19 ~JSONFeatureProviderSource(); | 20 ~JSONFeatureProviderSource(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 30 const std::string name_; | 31 const std::string name_; |
| 31 | 32 |
| 32 base::DictionaryValue dictionary_; | 33 base::DictionaryValue dictionary_; |
| 33 | 34 |
| 34 DISALLOW_COPY_AND_ASSIGN(JSONFeatureProviderSource); | 35 DISALLOW_COPY_AND_ASSIGN(JSONFeatureProviderSource); |
| 35 }; | 36 }; |
| 36 | 37 |
| 37 } // namespace extensions | 38 } // namespace extensions |
| 38 | 39 |
| 39 #endif // EXTENSIONS_COMMON_FEATURES_JSON_FEATURE_PROVIDER_SOURCE_H_ | 40 #endif // EXTENSIONS_COMMON_FEATURES_JSON_FEATURE_PROVIDER_SOURCE_H_ |
| OLD | NEW |