Chromium Code Reviews| Index: extensions/browser/extensions_browser_client.h |
| diff --git a/extensions/browser/extensions_browser_client.h b/extensions/browser/extensions_browser_client.h |
| index 5ddbde70f6bb7e88071e2e6b119ebeed6427e785..c1c3630fd640cbcf8a4249d2f5d313df8dc1e716 100644 |
| --- a/extensions/browser/extensions_browser_client.h |
| +++ b/extensions/browser/extensions_browser_client.h |
| @@ -14,6 +14,7 @@ |
| #include "content/public/browser/bluetooth_chooser.h" |
| #include "extensions/browser/extension_event_histogram_value.h" |
| #include "extensions/browser/extension_prefs_observer.h" |
| +#include "extensions/common/api/clipboard.h" |
| #include "extensions/common/view_type.h" |
| class ExtensionFunctionRegistry; |
| @@ -44,6 +45,8 @@ class UpdateClient; |
| namespace extensions { |
| +namespace clipboard = api::clipboard; |
| + |
| class ComponentExtensionResourceManager; |
| class Extension; |
| class ExtensionCache; |
| @@ -223,6 +226,13 @@ class ExtensionsBrowserClient { |
| // is left up to the embedder. |
| virtual bool IsMinBrowserVersionSupported(const std::string& min_version) = 0; |
| + // Saves image data on clipboard. |
| + virtual void SaveImageDataToClipboard( |
|
Devlin
2016/11/16 02:34:33
Why does this need to be a method on ExtensionsBro
dcheng
2016/11/17 01:13:32
The problem is ImageDecoder is a content API, so /
Devlin
2016/11/17 01:25:33
//extensions already depends on //content
jennyz
2016/12/07 01:21:48
But the ImageDecoder we use is under chrome/browse
|
| + const std::vector<char>& image_data, |
| + clipboard::ImageType type, |
| + const base::Closure& success_callback, |
| + const base::Closure& error_callback) = 0; |
| + |
| // Embedders can override this function to handle extension errors. |
| virtual void ReportError(content::BrowserContext* context, |
| std::unique_ptr<ExtensionError> error); |