| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_MANIFEST_HANDLERS_SETTINGS_OVERRIDES_HANDLER_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_SETTINGS_OVERRIDES_HANDLER_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_SETTINGS_OVERRIDES_HANDLER_H_ | 6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_SETTINGS_OVERRIDES_HANDLER_H_ |
| 7 | 7 |
| 8 #include "chrome/common/extensions/api/manifest_types.h" | 8 #include "chrome/common/extensions/api/manifest_types.h" |
| 9 #include "chrome/common/extensions/extension.h" | 9 #include "extensions/common/extension.h" |
| 10 #include "extensions/common/manifest_handler.h" | 10 #include "extensions/common/manifest_handler.h" |
| 11 | 11 |
| 12 namespace extensions { | 12 namespace extensions { |
| 13 | 13 |
| 14 // SettingsOverride is associated with "chrome_settings_overrides" manifest key. | 14 // SettingsOverride is associated with "chrome_settings_overrides" manifest key. |
| 15 // An extension can add a search engine as default or non-default, overwrite the | 15 // An extension can add a search engine as default or non-default, overwrite the |
| 16 // homepage and append a startup page to the list. | 16 // homepage and append a startup page to the list. |
| 17 struct SettingsOverrides : public Extension::ManifestData { | 17 struct SettingsOverrides : public Extension::ManifestData { |
| 18 SettingsOverrides(); | 18 SettingsOverrides(); |
| 19 virtual ~SettingsOverrides(); | 19 virtual ~SettingsOverrides(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 37 virtual bool Parse(Extension* extension, string16* error) OVERRIDE; | 37 virtual bool Parse(Extension* extension, string16* error) OVERRIDE; |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 virtual const std::vector<std::string> Keys() const OVERRIDE; | 40 virtual const std::vector<std::string> Keys() const OVERRIDE; |
| 41 | 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(SettingsOverridesHandler); | 42 DISALLOW_COPY_AND_ASSIGN(SettingsOverridesHandler); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace extensions | 45 } // namespace extensions |
| 46 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_SETTINGS_OVERRIDES_HANDLER
_H_ | 46 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_SETTINGS_OVERRIDES_HANDLER
_H_ |
| OLD | NEW |