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/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" | 12 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" |
13 #include "chrome/browser/search_engines/template_url_service.h" | 13 #include "chrome/browser/search_engines/template_url_service.h" |
14 #include "content/public/browser/notification_observer.h" | 14 #include "content/public/browser/notification_observer.h" |
15 #include "content/public/browser/notification_registrar.h" | 15 #include "content/public/browser/notification_registrar.h" |
16 | 16 |
17 class TemplateURL; | 17 class TemplateURL; |
18 | 18 |
19 namespace extensions { | 19 namespace extensions { |
20 | 20 |
21 class SettingsOverridesAPI : public ProfileKeyedAPI, | 21 class SettingsOverridesAPI : public ProfileKeyedAPI, |
22 public content::NotificationObserver { | 22 public content::NotificationObserver { |
23 public: | 23 public: |
24 explicit SettingsOverridesAPI(Profile* profile); | 24 explicit SettingsOverridesAPI(content::BrowserContext* context); |
25 virtual ~SettingsOverridesAPI(); | 25 virtual ~SettingsOverridesAPI(); |
26 | 26 |
27 // ProfileKeyedAPI implementation. | 27 // ProfileKeyedAPI implementation. |
28 static ProfileKeyedAPIFactory<SettingsOverridesAPI>* GetFactoryInstance(); | 28 static ProfileKeyedAPIFactory<SettingsOverridesAPI>* GetFactoryInstance(); |
29 | 29 |
30 private: | 30 private: |
31 friend class ProfileKeyedAPIFactory<SettingsOverridesAPI>; | 31 friend class ProfileKeyedAPIFactory<SettingsOverridesAPI>; |
32 | 32 |
33 typedef std::set<scoped_refptr<const Extension> > PendingExtensions; | 33 typedef std::set<scoped_refptr<const Extension> > PendingExtensions; |
34 | 34 |
(...skipping 28 matching lines...) Expand all Loading... |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(SettingsOverridesAPI); | 64 DISALLOW_COPY_AND_ASSIGN(SettingsOverridesAPI); |
65 }; | 65 }; |
66 | 66 |
67 template <> | 67 template <> |
68 void ProfileKeyedAPIFactory<SettingsOverridesAPI>::DeclareFactoryDependencies(); | 68 void ProfileKeyedAPIFactory<SettingsOverridesAPI>::DeclareFactoryDependencies(); |
69 | 69 |
70 } // namespace extensions | 70 } // namespace extensions |
71 | 71 |
72 #endif // CHROME_BROWSER_EXTENSIONS_API_SETTINGS_OVERRIDES_SETTINGS_OVERRIDES_A
PI_H_ | 72 #endif // CHROME_BROWSER_EXTENSIONS_API_SETTINGS_OVERRIDES_SETTINGS_OVERRIDES_A
PI_H_ |
OLD | NEW |