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

Unified Diff: content/browser/utility_process_host_impl.h

Issue 940813003: Use a utility process for the Mojo v8 proxy resolver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v8-pac-in-process-enable
Patch Set: Remove unneeded forward decl. 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
« no previous file with comments | « chrome/utility/chrome_content_utility_client.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 d9e4aaf681be390b0784955c0f9f30fa438ec3c6..00b72e0cbc5a5db29ca7246e2b3559d20a5a603f 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,10 @@ class CONTENT_EXPORT UtilityProcessHostImpl
// Used in single-process mode instead of process_.
scoped_ptr<base::Thread> in_process_thread_;
+ // Browser-side Mojo endpoint which sets up a Mojo channel with the child
+ // process and contains the browser's ServiceRegistry.
+ scoped_ptr<MojoApplicationHost> mojo_application_host_;
+
DISALLOW_COPY_AND_ASSIGN(UtilityProcessHostImpl);
};
« no previous file with comments | « chrome/utility/chrome_content_utility_client.cc ('k') | content/browser/utility_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698