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

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: Get rid of IDMap 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 1d244197b55103bf0a95ed9f1dfd4691b7232d0d..503d684d1baf841c4a4170e94703237b19f7d3c1 100644
--- a/chrome/utility/chrome_content_utility_client.h
+++ b/chrome/utility/chrome_content_utility_client.h
@@ -36,7 +36,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;
@@ -46,9 +46,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