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 EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_API_CLIENT_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_API_CLIENT_H_ |
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_API_CLIENT_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_API_CLIENT_H_ |
7 | 7 |
| 8 #include <memory> |
| 9 |
8 #include "extensions/browser/api/extensions_api_client.h" | 10 #include "extensions/browser/api/extensions_api_client.h" |
| 11 #include "extensions/browser/kiosk/kiosk_delegate.h" |
9 | 12 |
10 namespace extensions { | 13 namespace extensions { |
11 | 14 |
12 class ShellExtensionsAPIClient : public ExtensionsAPIClient { | 15 class ShellExtensionsAPIClient : public ExtensionsAPIClient { |
13 public: | 16 public: |
14 ShellExtensionsAPIClient(); | 17 ShellExtensionsAPIClient(); |
| 18 ~ShellExtensionsAPIClient() override; |
15 | 19 |
16 // ExtensionsAPIClient implementation. | 20 // ExtensionsAPIClient implementation. |
17 void AttachWebContentsHelpers(content::WebContents* web_contents) const | 21 void AttachWebContentsHelpers(content::WebContents* web_contents) const |
18 override; | 22 override; |
19 AppViewGuestDelegate* CreateAppViewGuestDelegate() const override; | 23 AppViewGuestDelegate* CreateAppViewGuestDelegate() const override; |
| 24 KioskDelegate* GetKioskDelegate() override; |
| 25 |
| 26 private: |
| 27 std::unique_ptr<KioskDelegate> kiosk_delegate_; |
| 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsAPIClient); |
20 }; | 30 }; |
21 | 31 |
22 } // namespace extensions | 32 } // namespace extensions |
23 | 33 |
24 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_API_CLIENT_H_ | 34 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_API_CLIENT_H_ |
OLD | NEW |