| 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/macros.h" | 9 #include "base/macros.h" |
| 10 #include "extensions/browser/api/extensions_api_client.h" | 10 #include "extensions/browser/api/extensions_api_client.h" |
| 11 | 11 |
| 12 namespace extensions { | 12 namespace extensions { |
| 13 | 13 |
| 14 class ChromeMetricsPrivateDelegate; | 14 class ChromeMetricsPrivateDelegate; |
| 15 class ClipboardExtensionHelper; |
| 15 | 16 |
| 16 // Extra support for extensions APIs in Chrome. | 17 // Extra support for extensions APIs in Chrome. |
| 17 class ChromeExtensionsAPIClient : public ExtensionsAPIClient { | 18 class ChromeExtensionsAPIClient : public ExtensionsAPIClient { |
| 18 public: | 19 public: |
| 19 ChromeExtensionsAPIClient(); | 20 ChromeExtensionsAPIClient(); |
| 20 ~ChromeExtensionsAPIClient() override; | 21 ~ChromeExtensionsAPIClient() override; |
| 21 | 22 |
| 22 // ExtensionsApiClient implementation. | 23 // ExtensionsApiClient implementation. |
| 23 void AddAdditionalValueStoreCaches( | 24 void AddAdditionalValueStoreCaches( |
| 24 content::BrowserContext* context, | 25 content::BrowserContext* context, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 47 scoped_refptr<ContentRulesRegistry> CreateContentRulesRegistry( | 48 scoped_refptr<ContentRulesRegistry> CreateContentRulesRegistry( |
| 48 content::BrowserContext* browser_context, | 49 content::BrowserContext* browser_context, |
| 49 RulesCacheDelegate* cache_delegate) const override; | 50 RulesCacheDelegate* cache_delegate) const override; |
| 50 std::unique_ptr<DevicePermissionsPrompt> CreateDevicePermissionsPrompt( | 51 std::unique_ptr<DevicePermissionsPrompt> CreateDevicePermissionsPrompt( |
| 51 content::WebContents* web_contents) const override; | 52 content::WebContents* web_contents) const override; |
| 52 std::unique_ptr<VirtualKeyboardDelegate> CreateVirtualKeyboardDelegate() | 53 std::unique_ptr<VirtualKeyboardDelegate> CreateVirtualKeyboardDelegate() |
| 53 const override; | 54 const override; |
| 54 ManagementAPIDelegate* CreateManagementAPIDelegate() const override; | 55 ManagementAPIDelegate* CreateManagementAPIDelegate() const override; |
| 55 MetricsPrivateDelegate* GetMetricsPrivateDelegate() override; | 56 MetricsPrivateDelegate* GetMetricsPrivateDelegate() override; |
| 56 | 57 |
| 58 #if defined(OS_CHROMEOS) |
| 59 void SaveImageDataToClipboard( |
| 60 const std::vector<char>& image_data, |
| 61 api::clipboard::ImageType type, |
| 62 const base::Closure& success_callback, |
| 63 const base::Callback<void(const std::string&)>& error_callback) override; |
| 64 #endif |
| 65 |
| 57 private: | 66 private: |
| 58 std::unique_ptr<ChromeMetricsPrivateDelegate> metrics_private_delegate_; | 67 std::unique_ptr<ChromeMetricsPrivateDelegate> metrics_private_delegate_; |
| 59 | 68 |
| 69 #if defined(OS_CHROMEOS) |
| 70 std::unique_ptr<ClipboardExtensionHelper> clipboard_extension_helper_; |
| 71 #endif |
| 72 |
| 60 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsAPIClient); | 73 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsAPIClient); |
| 61 }; | 74 }; |
| 62 | 75 |
| 63 } // namespace extensions | 76 } // namespace extensions |
| 64 | 77 |
| 65 #endif // CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ | 78 #endif // CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ |
| OLD | NEW |