| 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> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "extensions/browser/api/extensions_api_client.h" | 10 #include "extensions/browser/api/extensions_api_client.h" |
| 11 | 11 |
| 12 #include "build/build_config.h" |
| 13 |
| 12 namespace extensions { | 14 namespace extensions { |
| 13 | 15 |
| 14 class VirtualKeyboardDelegate; | 16 class VirtualKeyboardDelegate; |
| 15 | 17 |
| 16 class ShellExtensionsAPIClient : public ExtensionsAPIClient { | 18 class ShellExtensionsAPIClient : public ExtensionsAPIClient { |
| 17 public: | 19 public: |
| 18 ShellExtensionsAPIClient(); | 20 ShellExtensionsAPIClient(); |
| 21 ~ShellExtensionsAPIClient() override; |
| 19 | 22 |
| 20 // ExtensionsAPIClient implementation. | 23 // ExtensionsAPIClient implementation. |
| 21 void AttachWebContentsHelpers(content::WebContents* web_contents) const | 24 void AttachWebContentsHelpers(content::WebContents* web_contents) const |
| 22 override; | 25 override; |
| 23 AppViewGuestDelegate* CreateAppViewGuestDelegate() const override; | 26 AppViewGuestDelegate* CreateAppViewGuestDelegate() const override; |
| 24 std::unique_ptr<VirtualKeyboardDelegate> CreateVirtualKeyboardDelegate() | 27 std::unique_ptr<VirtualKeyboardDelegate> CreateVirtualKeyboardDelegate() |
| 25 const override; | 28 const override; |
| 29 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 30 FileSystemDelegate* GetFileSystemDelegate() override; |
| 31 #endif |
| 32 |
| 33 private: |
| 34 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 35 std::unique_ptr<FileSystemDelegate> file_system_delegate_; |
| 36 #endif |
| 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsAPIClient); |
| 26 }; | 39 }; |
| 27 | 40 |
| 28 } // namespace extensions | 41 } // namespace extensions |
| 29 | 42 |
| 30 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_API_CLIENT_H_ | 43 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_API_CLIENT_H_ |
| OLD | NEW |