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

Unified Diff: content/public/child/child_thread.h

Issue 2096643002: Eliminate MojoApplicationHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mah3
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/utility_process_mojo_client.h ('k') | content/public/common/mojo_shell_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/child/child_thread.h
diff --git a/content/public/child/child_thread.h b/content/public/child/child_thread.h
index 94eb3212a0347fb4024d8cf4feb7a275af48d4b2..ae64ca0ecd0dcb20edf6ffefc65a97e4f3b8913c 100644
--- a/content/public/child/child_thread.h
+++ b/content/public/child/child_thread.h
@@ -20,8 +20,15 @@ namespace base {
struct UserMetricsAction;
}
+namespace shell {
+class InterfaceRegistry;
+class InterfaceProvider;
+}
+
namespace content {
+class MojoShellConnection;
+
// An abstract base class that contains logic shared between most child
// processes of the embedder.
class CONTENT_EXPORT ChildThread : public IPC::Sender {
@@ -59,6 +66,18 @@ class CONTENT_EXPORT ChildThread : public IPC::Sender {
// When you use this you need to also update the rules for extracting known
// actions in chrome/tools/extract_actions.py.
virtual void RecordComputedAction(const std::string& action) = 0;
+
+ // Returns the MojoShellConnection for the thread (from which a
+ // shell::Connector can be obtained).
+ virtual MojoShellConnection* GetMojoShellConnection() = 0;
+
+ // Returns the InterfaceRegistry that this process uses to expose interfaces
+ // to the browser.
+ virtual shell::InterfaceRegistry* GetInterfaceRegistry() = 0;
+
+ // Returns the InterfaceProvider that this process can use to bind
+ // interfaces exposed to it by the browser.
+ virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0;
};
} // namespace content
« no previous file with comments | « content/public/browser/utility_process_mojo_client.h ('k') | content/public/common/mojo_shell_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698