| 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 <memory> |
| 9 |
| 8 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 11 #include "base/macros.h" |
| 10 #include "extensions/browser/api/extensions_api_client.h" | 12 #include "extensions/browser/api/extensions_api_client.h" |
| 13 #include "extensions/browser/kiosk/kiosk_delegate.h" |
| 11 | 14 |
| 12 namespace extensions { | 15 namespace extensions { |
| 13 | 16 |
| 14 // Extra support for extensions APIs in Chrome. | 17 // Extra support for extensions APIs in Chrome. |
| 15 class ChromeExtensionsAPIClient : public ExtensionsAPIClient { | 18 class ChromeExtensionsAPIClient : public ExtensionsAPIClient { |
| 16 public: | 19 public: |
| 17 ChromeExtensionsAPIClient(); | 20 ChromeExtensionsAPIClient(); |
| 18 ~ChromeExtensionsAPIClient() override; | 21 ~ChromeExtensionsAPIClient() override; |
| 19 | 22 |
| 20 // ExtensionsApiClient implementation. | 23 // ExtensionsApiClient implementation. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 43 std::unique_ptr<WebRequestEventRouterDelegate> | 46 std::unique_ptr<WebRequestEventRouterDelegate> |
| 44 CreateWebRequestEventRouterDelegate() const override; | 47 CreateWebRequestEventRouterDelegate() const override; |
| 45 scoped_refptr<ContentRulesRegistry> CreateContentRulesRegistry( | 48 scoped_refptr<ContentRulesRegistry> CreateContentRulesRegistry( |
| 46 content::BrowserContext* browser_context, | 49 content::BrowserContext* browser_context, |
| 47 RulesCacheDelegate* cache_delegate) const override; | 50 RulesCacheDelegate* cache_delegate) const override; |
| 48 std::unique_ptr<DevicePermissionsPrompt> CreateDevicePermissionsPrompt( | 51 std::unique_ptr<DevicePermissionsPrompt> CreateDevicePermissionsPrompt( |
| 49 content::WebContents* web_contents) const override; | 52 content::WebContents* web_contents) const override; |
| 50 std::unique_ptr<VirtualKeyboardDelegate> CreateVirtualKeyboardDelegate() | 53 std::unique_ptr<VirtualKeyboardDelegate> CreateVirtualKeyboardDelegate() |
| 51 const override; | 54 const override; |
| 52 ManagementAPIDelegate* CreateManagementAPIDelegate() const override; | 55 ManagementAPIDelegate* CreateManagementAPIDelegate() const override; |
| 56 KioskDelegate* GetKioskDelegate() override; |
| 53 | 57 |
| 54 private: | 58 private: |
| 59 std::unique_ptr<KioskDelegate> kiosk_delegate_; |
| 60 |
| 55 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsAPIClient); | 61 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsAPIClient); |
| 56 }; | 62 }; |
| 57 | 63 |
| 58 } // namespace extensions | 64 } // namespace extensions |
| 59 | 65 |
| 60 #endif // CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ | 66 #endif // CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ |
| OLD | NEW |