Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Side by Side Diff: extensions/shell/browser/shell_extensions_browser_client.h

Issue 2379573008: Add SetImageData api to chrome.clipboard. (Closed)
Patch Set: Address code review comments and add test cases. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_BROWSER_CLIENT_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 const ComponentExtensionResourceManager* 83 const ComponentExtensionResourceManager*
84 GetComponentExtensionResourceManager() override; 84 GetComponentExtensionResourceManager() override;
85 void BroadcastEventToRenderers( 85 void BroadcastEventToRenderers(
86 events::HistogramValue histogram_value, 86 events::HistogramValue histogram_value,
87 const std::string& event_name, 87 const std::string& event_name,
88 std::unique_ptr<base::ListValue> args) override; 88 std::unique_ptr<base::ListValue> args) override;
89 net::NetLog* GetNetLog() override; 89 net::NetLog* GetNetLog() override;
90 ExtensionCache* GetExtensionCache() override; 90 ExtensionCache* GetExtensionCache() override;
91 bool IsBackgroundUpdateAllowed() override; 91 bool IsBackgroundUpdateAllowed() override;
92 bool IsMinBrowserVersionSupported(const std::string& min_version) override; 92 bool IsMinBrowserVersionSupported(const std::string& min_version) override;
93 void SaveImageDataToClipboard(const std::vector<char>& image_data,
94 clipboard::ImageType type,
95 const base::Closure& success_callback,
96 const base::Closure& error_callback) override;
93 ExtensionWebContentsObserver* GetExtensionWebContentsObserver( 97 ExtensionWebContentsObserver* GetExtensionWebContentsObserver(
94 content::WebContents* web_contents) override; 98 content::WebContents* web_contents) override;
95 ExtensionNavigationUIData* GetExtensionNavigationUIData( 99 ExtensionNavigationUIData* GetExtensionNavigationUIData(
96 net::URLRequest* request) override; 100 net::URLRequest* request) override;
97 KioskDelegate* GetKioskDelegate() override; 101 KioskDelegate* GetKioskDelegate() override;
98 102
99 // Sets the API client. 103 // Sets the API client.
100 void SetAPIClientForTest(ExtensionsAPIClient* api_client); 104 void SetAPIClientForTest(ExtensionsAPIClient* api_client);
101 105
102 private: 106 private:
(...skipping 10 matching lines...) Expand all
113 std::unique_ptr<ExtensionCache> extension_cache_; 117 std::unique_ptr<ExtensionCache> extension_cache_;
114 118
115 std::unique_ptr<KioskDelegate> kiosk_delegate_; 119 std::unique_ptr<KioskDelegate> kiosk_delegate_;
116 120
117 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsBrowserClient); 121 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsBrowserClient);
118 }; 122 };
119 123
120 } // namespace extensions 124 } // namespace extensions
121 125
122 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_ 126 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698