| 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_BROWSER_EXTENSIONS_API_SETTINGS_OVERRIDES_SETTINGS_OVERRIDES_API_
H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SETTINGS_OVERRIDES_SETTINGS_OVERRIDES_API_
H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_SETTINGS_OVERRIDES_SETTINGS_OVERRIDES_API_
H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_SETTINGS_OVERRIDES_SETTINGS_OVERRIDES_API_
H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // Wrappers around PreferenceAPI. | 37 // Wrappers around PreferenceAPI. |
| 38 void SetPref(const std::string& extension_id, | 38 void SetPref(const std::string& extension_id, |
| 39 const std::string& pref_key, | 39 const std::string& pref_key, |
| 40 base::Value* value); | 40 base::Value* value); |
| 41 void UnsetPref(const std::string& extension_id, | 41 void UnsetPref(const std::string& extension_id, |
| 42 const std::string& pref_key); | 42 const std::string& pref_key); |
| 43 | 43 |
| 44 // ExtensionRegistryObserver implementation. | 44 // ExtensionRegistryObserver implementation. |
| 45 virtual void OnExtensionLoaded(content::BrowserContext* browser_context, | 45 virtual void OnExtensionLoaded(content::BrowserContext* browser_context, |
| 46 const Extension* extension) OVERRIDE; | 46 const Extension* extension) override; |
| 47 virtual void OnExtensionUnloaded( | 47 virtual void OnExtensionUnloaded( |
| 48 content::BrowserContext* browser_context, | 48 content::BrowserContext* browser_context, |
| 49 const Extension* extension, | 49 const Extension* extension, |
| 50 UnloadedExtensionInfo::Reason reason) OVERRIDE; | 50 UnloadedExtensionInfo::Reason reason) override; |
| 51 | 51 |
| 52 // KeyedService implementation. | 52 // KeyedService implementation. |
| 53 virtual void Shutdown() OVERRIDE; | 53 virtual void Shutdown() override; |
| 54 | 54 |
| 55 void OnTemplateURLsLoaded(); | 55 void OnTemplateURLsLoaded(); |
| 56 | 56 |
| 57 void RegisterSearchProvider(const Extension* extension) const; | 57 void RegisterSearchProvider(const Extension* extension) const; |
| 58 // BrowserContextKeyedAPI implementation. | 58 // BrowserContextKeyedAPI implementation. |
| 59 static const char* service_name() { return "SettingsOverridesAPI"; } | 59 static const char* service_name() { return "SettingsOverridesAPI"; } |
| 60 | 60 |
| 61 Profile* profile_; | 61 Profile* profile_; |
| 62 TemplateURLService* url_service_; | 62 TemplateURLService* url_service_; |
| 63 | 63 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 74 DISALLOW_COPY_AND_ASSIGN(SettingsOverridesAPI); | 74 DISALLOW_COPY_AND_ASSIGN(SettingsOverridesAPI); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 template <> | 77 template <> |
| 78 void BrowserContextKeyedAPIFactory< | 78 void BrowserContextKeyedAPIFactory< |
| 79 SettingsOverridesAPI>::DeclareFactoryDependencies(); | 79 SettingsOverridesAPI>::DeclareFactoryDependencies(); |
| 80 | 80 |
| 81 } // namespace extensions | 81 } // namespace extensions |
| 82 | 82 |
| 83 #endif // CHROME_BROWSER_EXTENSIONS_API_SETTINGS_OVERRIDES_SETTINGS_OVERRIDES_A
PI_H_ | 83 #endif // CHROME_BROWSER_EXTENSIONS_API_SETTINGS_OVERRIDES_SETTINGS_OVERRIDES_A
PI_H_ |
| OLD | NEW |