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

Unified Diff: chrome/utility/chrome_content_utility_client.h

Issue 865543002: WIP: Browser image decoding using Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup and add DecodeImageBase64. Created 5 years, 11 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/BUILD.gn ('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 92e26f7ef7a7e217cbc1251f122e0968317bb590..d6bf6d2b41c00330919898c1d3c2cdc19c2919e8 100644
--- a/chrome/utility/chrome_content_utility_client.h
+++ b/chrome/utility/chrome_content_utility_client.h
@@ -28,15 +28,10 @@ class ChromeContentUtilityClient : public content::ContentUtilityClient {
void UtilityThreadStarted() override;
bool OnMessageReceived(const IPC::Message& message) override;
+ void RegisterMojoServices(content::ServiceRegistry* registry) override;
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);
-
static void set_max_ipc_message_size_for_test(int64_t max_message_size) {
max_ipc_message_size_ = max_message_size;
}
@@ -44,10 +39,6 @@ class ChromeContentUtilityClient : public content::ContentUtilityClient {
private:
// 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);
#if defined(OS_CHROMEOS)
void OnCreateZipFile(const base::FilePath& src_dir,
« no previous file with comments | « chrome/utility/BUILD.gn ('k') | chrome/utility/chrome_content_utility_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698