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

Unified Diff: chrome/utility/chrome_content_utility_client.h

Issue 1844103004: Convert the utility process image decoder into a Mojo service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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
« no previous file with comments | « chrome/utility/DEPS ('k') | chrome/utility/chrome_content_utility_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 049b1b158d30e4f51b1d52f66468388b99897ada..823c3452782dad64fb3775faaaf771d5b470c24f 100644
--- a/chrome/utility/chrome_content_utility_client.h
+++ b/chrome/utility/chrome_content_utility_client.h
@@ -38,29 +38,10 @@ class ChromeContentUtilityClient : public content::ContentUtilityClient {
static void PreSandboxStartup();
- // Shared with extensions::ExtensionsHandler.
- 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,
- int request_id);
-
- static void set_max_ipc_message_size_for_test(int64_t max_message_size) {
- max_ipc_message_size_ = max_message_size;
- }
-
private:
// IPC message handlers.
void OnUnpackWebResource(const std::string& resource_data);
- void OnDecodeImage(const std::vector<unsigned char>& encoded_data,
- bool shrink_to_fit,
- int request_id);
#if defined(OS_CHROMEOS)
- void OnRobustJPEGDecodeImage(const std::vector<unsigned char>& encoded_data,
- int request_id);
- void OnRobustPNGDecodeImage(const std::vector<unsigned char>& encoded_data,
- int request_id);
-
void OnCreateZipFile(const base::FilePath& src_dir,
const std::vector<base::FilePath>& src_relative_paths,
const base::FileDescriptor& dest_fd);
@@ -90,8 +71,6 @@ class ChromeContentUtilityClient : public content::ContentUtilityClient {
bool filter_messages_;
// A list of message_ids to filter.
std::set<int> message_id_whitelist_;
- // Maximum IPC msg size (default to kMaximumMessageSize; override for testing)
- static int64_t max_ipc_message_size_;
DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient);
};
« no previous file with comments | « chrome/utility/DEPS ('k') | chrome/utility/chrome_content_utility_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698