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

Unified Diff: content/public/browser/utility_process_host.h

Issue 2099063002: Migrate RenderProcessHost, ChildThread to InterfaceRegistry/Provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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 | « content/public/browser/render_process_host.h ('k') | content/public/browser/utility_process_mojo_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/utility_process_host.h
diff --git a/content/public/browser/utility_process_host.h b/content/public/browser/utility_process_host.h
index 98cca9b3bbc17316aecf987e577dcf81df5b33f5..6fa815a91c7a5f231d2cc83de9fb18d48fa7df46 100644
--- a/content/public/browser/utility_process_host.h
+++ b/content/public/browser/utility_process_host.h
@@ -17,8 +17,12 @@ class FilePath;
class SequencedTaskRunner;
}
+namespace shell {
+class InterfaceProvider;
+class InterfaceRegistry;
+}
+
namespace content {
-class ServiceRegistry;
class UtilityProcessHostClient;
struct ChildProcessData;
@@ -29,9 +33,9 @@ struct ChildProcessData;
// If you need multiple batches of work to be done in the process, use
// StartBatchMode(), then multiple calls to StartFooBar(p), then finish with
// EndBatchMode().
-// If you need to call Mojo services, use Start() to start the child
-// process and GetServiceRegistry() to get the service registry to connect to
-// the child's Mojo services.
+// If you need to bind Mojo interfaces, use Start() to start the child
+// process and GetRemoteInterfaces() to get the utility process'
+// shell::InterfaceProvider.
//
// Note: If your class keeps a ptr to an object of this type, grab a weak ptr to
// avoid a use after free since this object is deleted synchronously but the
@@ -79,8 +83,13 @@ class UtilityProcessHost : public IPC::Sender {
// Starts the utility process.
virtual bool Start() = 0;
- // Returns the ServiceRegistry for this process. Will never return nullptr.
- virtual ServiceRegistry* GetServiceRegistry() = 0;
+ // Returns the shell::InterfaceRegistry the browser process uses to expose
+ // interfaces to the utility process.
+ virtual shell::InterfaceRegistry* GetInterfaceRegistry() = 0;
+
+ // Returns the shell::InterfaceProvider the browser process can use to bind
+ // interfaces exposed to it from the utility process.
+ virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0;
// Set the name of the process to appear in the task manager.
virtual void SetName(const base::string16& name) = 0;
« no previous file with comments | « content/public/browser/render_process_host.h ('k') | content/public/browser/utility_process_mojo_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698