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

Unified Diff: chrome/utility/chrome_content_utility_client.h

Issue 931993002: Make image_decoder a Leaky LazyInstance (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a few comments Created 5 years, 9 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/utility/chrome_content_utility_client.h
diff --git a/chrome/utility/chrome_content_utility_client.h b/chrome/utility/chrome_content_utility_client.h
index f2eee64331e8188c2265647d196bc487379fc8eb..8134fe4f72dd3a87fe022cc3b7a5b8a5580d2dfb 100644
--- a/chrome/utility/chrome_content_utility_client.h
+++ b/chrome/utility/chrome_content_utility_client.h
@@ -36,7 +36,8 @@ class ChromeContentUtilityClient : public content::ContentUtilityClient {
static SkBitmap DecodeImage(const std::vector<unsigned char>& encoded_data,
bool shrink_to_fit);
static void DecodeImageAndSend(const std::vector<unsigned char>& encoded_data,
- bool shrink_to_fit);
+ bool shrink_to_fit,
+ int request_id);
static void set_max_ipc_message_size_for_test(int64_t max_message_size) {
max_ipc_message_size_ = max_message_size;
@@ -46,9 +47,10 @@ class ChromeContentUtilityClient : public content::ContentUtilityClient {
// IPC message handlers.
void OnUnpackWebResource(const std::string& resource_data);
void OnDecodeImage(const std::vector<unsigned char>& encoded_data,
- bool shrink_to_fit);
- void OnRobustJPEGDecodeImage(
- const std::vector<unsigned char>& encoded_data);
+ bool shrink_to_fit,
+ int request_id);
+ void OnRobustJPEGDecodeImage(const std::vector<unsigned char>& encoded_data,
+ int request_id);
#if defined(OS_CHROMEOS)
void OnCreateZipFile(const base::FilePath& src_dir,
« no previous file with comments | « chrome/common/extensions/chrome_utility_extensions_messages.h ('k') | chrome/utility/chrome_content_utility_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698