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 CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "extensions/browser/api/extensions_api_client.h" | 9 #include "extensions/browser/api/extensions_api_client.h" |
10 | 10 |
11 namespace extensions { | 11 namespace extensions { |
12 | 12 |
13 // Extra support for extensions APIs in Chrome. | 13 // Extra support for extensions APIs in Chrome. |
14 class ChromeExtensionsAPIClient : public ExtensionsAPIClient { | 14 class ChromeExtensionsAPIClient : public ExtensionsAPIClient { |
15 public: | 15 public: |
16 ChromeExtensionsAPIClient(); | 16 ChromeExtensionsAPIClient(); |
17 ~ChromeExtensionsAPIClient() override; | 17 ~ChromeExtensionsAPIClient() override; |
18 | 18 |
19 // ExtensionsApiClient implementation. | 19 // ExtensionsApiClient implementation. |
20 void AddAdditionalValueStoreCaches( | 20 void AddAdditionalValueStoreCaches( |
21 content::BrowserContext* context, | 21 content::BrowserContext* context, |
22 const scoped_refptr<SettingsStorageFactory>& factory, | 22 const scoped_refptr<SettingsStorageFactory>& factory, |
23 const scoped_refptr<ObserverListThreadSafe<SettingsObserver>>& observers, | 23 const scoped_refptr<base::ObserverListThreadSafe<SettingsObserver>>& |
| 24 observers, |
24 std::map<settings_namespace::Namespace, ValueStoreCache*>* caches) | 25 std::map<settings_namespace::Namespace, ValueStoreCache*>* caches) |
25 override; | 26 override; |
26 AppViewGuestDelegate* CreateAppViewGuestDelegate() const override; | 27 AppViewGuestDelegate* CreateAppViewGuestDelegate() const override; |
27 ExtensionOptionsGuestDelegate* CreateExtensionOptionsGuestDelegate( | 28 ExtensionOptionsGuestDelegate* CreateExtensionOptionsGuestDelegate( |
28 ExtensionOptionsGuest* guest) const override; | 29 ExtensionOptionsGuest* guest) const override; |
29 ExtensionViewGuestDelegate* CreateExtensionViewGuestDelegate( | 30 ExtensionViewGuestDelegate* CreateExtensionViewGuestDelegate( |
30 ExtensionViewGuest* guest) const override; | 31 ExtensionViewGuest* guest) const override; |
31 scoped_ptr<MimeHandlerViewGuestDelegate> CreateMimeHandlerViewGuestDelegate( | 32 scoped_ptr<MimeHandlerViewGuestDelegate> CreateMimeHandlerViewGuestDelegate( |
32 MimeHandlerViewGuest* guest) const override; | 33 MimeHandlerViewGuest* guest) const override; |
33 WebViewGuestDelegate* CreateWebViewGuestDelegate( | 34 WebViewGuestDelegate* CreateWebViewGuestDelegate( |
(...skipping 11 matching lines...) Expand all Loading... |
45 const override; | 46 const override; |
46 ManagementAPIDelegate* CreateManagementAPIDelegate() const override; | 47 ManagementAPIDelegate* CreateManagementAPIDelegate() const override; |
47 | 48 |
48 private: | 49 private: |
49 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsAPIClient); | 50 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsAPIClient); |
50 }; | 51 }; |
51 | 52 |
52 } // namespace extensions | 53 } // namespace extensions |
53 | 54 |
54 #endif // CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ | 55 #endif // CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ |
OLD | NEW |