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 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/scoped_observer.h" | 12 #include "base/scoped_observer.h" |
13 #include "components/search_engines/template_url_service.h" | 13 #include "components/search_engines/template_url_service.h" |
14 #include "extensions/browser/browser_context_keyed_api_factory.h" | 14 #include "extensions/browser/browser_context_keyed_api_factory.h" |
15 #include "extensions/browser/extension_registry_observer.h" | 15 #include "extensions/browser/extension_registry_observer.h" |
16 | 16 |
17 class Profile; | 17 class Profile; |
18 class TemplateURL; | |
19 | 18 |
20 namespace extensions { | 19 namespace extensions { |
21 class ExtensionRegistry; | 20 class ExtensionRegistry; |
22 | 21 |
23 class SettingsOverridesAPI : public BrowserContextKeyedAPI, | 22 class SettingsOverridesAPI : public BrowserContextKeyedAPI, |
24 public ExtensionRegistryObserver { | 23 public ExtensionRegistryObserver { |
25 public: | 24 public: |
26 explicit SettingsOverridesAPI(content::BrowserContext* context); | 25 explicit SettingsOverridesAPI(content::BrowserContext* context); |
27 ~SettingsOverridesAPI() override; | 26 ~SettingsOverridesAPI() override; |
28 | 27 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 DISALLOW_COPY_AND_ASSIGN(SettingsOverridesAPI); | 73 DISALLOW_COPY_AND_ASSIGN(SettingsOverridesAPI); |
75 }; | 74 }; |
76 | 75 |
77 template <> | 76 template <> |
78 void BrowserContextKeyedAPIFactory< | 77 void BrowserContextKeyedAPIFactory< |
79 SettingsOverridesAPI>::DeclareFactoryDependencies(); | 78 SettingsOverridesAPI>::DeclareFactoryDependencies(); |
80 | 79 |
81 } // namespace extensions | 80 } // namespace extensions |
82 | 81 |
83 #endif // CHROME_BROWSER_EXTENSIONS_API_SETTINGS_OVERRIDES_SETTINGS_OVERRIDES_A
PI_H_ | 82 #endif // CHROME_BROWSER_EXTENSIONS_API_SETTINGS_OVERRIDES_SETTINGS_OVERRIDES_A
PI_H_ |
OLD | NEW |