| 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 bool AppViewInternalAttachFrame( | 26 virtual bool AppViewInternalAttachFrame( |
| 28 content::BrowserContext* browser_context, | 27 content::BrowserContext* browser_context, |
| 29 const GURL& url, | 28 const GURL& url, |
| 30 int guest_instance_id, | 29 int guest_instance_id, |
| 31 const std::string& guest_extension_id) OVERRIDE; | 30 const std::string& guest_extension_id) OVERRIDE; |
| 32 virtual bool AppViewInternalDenyRequest( | 31 virtual bool AppViewInternalDenyRequest( |
| 33 content::BrowserContext* browser_context, | 32 content::BrowserContext* browser_context, |
| 34 int guest_instance_id, | 33 int guest_instance_id, |
| 35 const std::string& guest_extension_id) OVERRIDE; | 34 const std::string& guest_extension_id) OVERRIDE; |
| 36 virtual device::HidService* GetHidService() OVERRIDE; | |
| 37 virtual void RegisterGuestViewTypes() OVERRIDE; | 35 virtual void RegisterGuestViewTypes() OVERRIDE; |
| 38 | 36 |
| 39 private: | 37 private: |
| 40 scoped_ptr<device::HidService> hid_service_; | |
| 41 | |
| 42 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsAPIClient); | 38 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsAPIClient); |
| 43 }; | 39 }; |
| 44 | 40 |
| 45 } // namespace extensions | 41 } // namespace extensions |
| 46 | 42 |
| 47 #endif // CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ | 43 #endif // CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ |
| OLD | NEW |