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

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: Rename instance_ to image_decoder_instance_ for mac linker Created 5 years, 10 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 92e26f7ef7a7e217cbc1251f122e0968317bb590..4dc682efd067719e7ea484e80d44dbd60fb30fa8 100644
--- a/chrome/utility/chrome_content_utility_client.h
+++ b/chrome/utility/chrome_content_utility_client.h
@@ -35,7 +35,7 @@ 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 id);
static void set_max_ipc_message_size_for_test(int64_t max_message_size) {
max_ipc_message_size_ = max_message_size;
@@ -45,9 +45,9 @@ 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);
+ bool shrink_to_fit, int id);
void OnRobustJPEGDecodeImage(
- const std::vector<unsigned char>& encoded_data);
+ const std::vector<unsigned char>& encoded_data, int id);
#if defined(OS_CHROMEOS)
void OnCreateZipFile(const base::FilePath& src_dir,

Powered by Google App Engine
This is Rietveld 408576698