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

Unified Diff: content/browser/utility_process_host_impl.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/image_decoder_impl.cc ('k') | content/browser/utility_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/utility_process_host_impl.h
diff --git a/content/browser/utility_process_host_impl.h b/content/browser/utility_process_host_impl.h
index c310e9b4bf0c200139ac587fc77bf41342ad8355..413ff0391d5b432245f16bd68b4323885c78989d 100644
--- a/content/browser/utility_process_host_impl.h
+++ b/content/browser/utility_process_host_impl.h
@@ -24,6 +24,7 @@ class Thread;
namespace content {
class BrowserChildProcessHostImpl;
+class MojoApplicationHost;
typedef base::Thread* (*UtilityMainThreadFactoryFunction)(
const std::string& id);
@@ -54,6 +55,8 @@ class CONTENT_EXPORT UtilityProcessHostImpl
#if defined(OS_POSIX)
void SetEnv(const base::EnvironmentMap& env) override;
#endif
+ bool StartMojoMode() override;
+ ServiceRegistry* GetServiceRegistry() override;
void set_child_flags(int flags) { child_flags_ = flags; }
@@ -66,6 +69,7 @@ class CONTENT_EXPORT UtilityProcessHostImpl
bool OnMessageReceived(const IPC::Message& message) override;
void OnProcessLaunchFailed() override;
void OnProcessCrashed(int exit_code) override;
+ void OnProcessLaunched() override;
// A pointer to our client interface, who will be informed of progress.
scoped_refptr<UtilityProcessHostClient> client_;
@@ -98,6 +102,8 @@ class CONTENT_EXPORT UtilityProcessHostImpl
// Used in single-process mode instead of process_.
scoped_ptr<base::Thread> in_process_thread_;
+ scoped_ptr<MojoApplicationHost> mojo_application_host_;
+
DISALLOW_COPY_AND_ASSIGN(UtilityProcessHostImpl);
};
« no previous file with comments | « chrome/utility/image_decoder_impl.cc ('k') | content/browser/utility_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698