| 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" |
| 9 #include "extensions/browser/api/extensions_api_client.h" | 10 #include "extensions/browser/api/extensions_api_client.h" |
| 10 | 11 |
| 11 namespace extensions { | 12 namespace extensions { |
| 12 | 13 |
| 13 // Extra support for extensions APIs in Chrome. | 14 // Extra support for extensions APIs in Chrome. |
| 14 class ChromeExtensionsAPIClient : public ExtensionsAPIClient { | 15 class ChromeExtensionsAPIClient : public ExtensionsAPIClient { |
| 15 public: | 16 public: |
| 16 ChromeExtensionsAPIClient(); | 17 ChromeExtensionsAPIClient(); |
| 17 virtual ~ChromeExtensionsAPIClient(); | 18 virtual ~ChromeExtensionsAPIClient(); |
| 18 | 19 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 31 virtual bool AppViewInternalDenyRequest( | 32 virtual bool AppViewInternalDenyRequest( |
| 32 content::BrowserContext* browser_context, | 33 content::BrowserContext* browser_context, |
| 33 int guest_instance_id, | 34 int guest_instance_id, |
| 34 const std::string& guest_extension_id) OVERRIDE; | 35 const std::string& guest_extension_id) OVERRIDE; |
| 35 virtual AppViewGuestDelegate* CreateAppViewGuestDelegate() const OVERRIDE; | 36 virtual AppViewGuestDelegate* CreateAppViewGuestDelegate() const OVERRIDE; |
| 36 virtual WebViewGuestDelegate* CreateWebViewGuestDelegate( | 37 virtual WebViewGuestDelegate* CreateWebViewGuestDelegate( |
| 37 WebViewGuest* web_view_guest) const OVERRIDE; | 38 WebViewGuest* web_view_guest) const OVERRIDE; |
| 38 virtual WebViewPermissionHelperDelegate* | 39 virtual WebViewPermissionHelperDelegate* |
| 39 CreateWebViewPermissionHelperDelegate( | 40 CreateWebViewPermissionHelperDelegate( |
| 40 WebViewPermissionHelper* web_view_permission_helper) const OVERRIDE; | 41 WebViewPermissionHelper* web_view_permission_helper) const OVERRIDE; |
| 42 virtual device::HidService* GetHidService() OVERRIDE; |
| 41 virtual void RegisterGuestViewTypes() OVERRIDE; | 43 virtual void RegisterGuestViewTypes() OVERRIDE; |
| 42 | 44 |
| 43 private: | 45 private: |
| 46 scoped_ptr<device::HidService> hid_service_; |
| 47 |
| 44 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsAPIClient); | 48 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsAPIClient); |
| 45 }; | 49 }; |
| 46 | 50 |
| 47 } // namespace extensions | 51 } // namespace extensions |
| 48 | 52 |
| 49 #endif // CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ | 53 #endif // CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ |
| OLD | NEW |