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 "base/memory/scoped_ptr.h" | |
10 #include "extensions/browser/api/extensions_api_client.h" | 9 #include "extensions/browser/api/extensions_api_client.h" |
11 | 10 |
12 namespace extensions { | 11 namespace extensions { |
13 | 12 |
14 // Extra support for extensions APIs in Chrome. | 13 // Extra support for extensions APIs in Chrome. |
15 class ChromeExtensionsAPIClient : public ExtensionsAPIClient { | 14 class ChromeExtensionsAPIClient : public ExtensionsAPIClient { |
16 public: | 15 public: |
17 ChromeExtensionsAPIClient(); | 16 ChromeExtensionsAPIClient(); |
18 virtual ~ChromeExtensionsAPIClient(); | 17 virtual ~ChromeExtensionsAPIClient(); |
19 | 18 |
20 // ExtensionsApiClient implementation. | 19 // ExtensionsApiClient implementation. |
21 virtual void AddAdditionalValueStoreCaches( | 20 virtual void AddAdditionalValueStoreCaches( |
22 content::BrowserContext* context, | 21 content::BrowserContext* context, |
23 const scoped_refptr<SettingsStorageFactory>& factory, | 22 const scoped_refptr<SettingsStorageFactory>& factory, |
24 const scoped_refptr<ObserverListThreadSafe<SettingsObserver> >& observers, | 23 const scoped_refptr<ObserverListThreadSafe<SettingsObserver> >& observers, |
25 std::map<settings_namespace::Namespace, ValueStoreCache*>* caches) | 24 std::map<settings_namespace::Namespace, ValueStoreCache*>* caches) |
26 OVERRIDE; | 25 OVERRIDE; |
27 virtual AppViewGuestDelegate* CreateAppViewGuestDelegate() const OVERRIDE; | 26 virtual AppViewGuestDelegate* CreateAppViewGuestDelegate() const OVERRIDE; |
28 virtual WebViewGuestDelegate* CreateWebViewGuestDelegate( | 27 virtual WebViewGuestDelegate* CreateWebViewGuestDelegate( |
29 WebViewGuest* web_view_guest) const OVERRIDE; | 28 WebViewGuest* web_view_guest) const OVERRIDE; |
30 virtual WebViewPermissionHelperDelegate* | 29 virtual WebViewPermissionHelperDelegate* |
31 CreateWebViewPermissionHelperDelegate( | 30 CreateWebViewPermissionHelperDelegate( |
32 WebViewPermissionHelper* web_view_permission_helper) const OVERRIDE; | 31 WebViewPermissionHelper* web_view_permission_helper) const OVERRIDE; |
33 virtual device::HidService* GetHidService() OVERRIDE; | |
34 virtual void RegisterGuestViewTypes() OVERRIDE; | 32 virtual void RegisterGuestViewTypes() OVERRIDE; |
35 | 33 |
36 private: | 34 private: |
37 scoped_ptr<device::HidService> hid_service_; | |
38 | |
39 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsAPIClient); | 35 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsAPIClient); |
40 }; | 36 }; |
41 | 37 |
42 } // namespace extensions | 38 } // namespace extensions |
43 | 39 |
44 #endif // CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ | 40 #endif // CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ |
OLD | NEW |