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

Unified Diff: content/public/common/mojo_shell_connection.h

Issue 1476643002: mustash: Enable connections to mus from the Chrome renderer [take 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comment on RenderWidgetWindowTreeClientFactory lifetime Created 5 years, 1 month 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/common/render_widget_window_tree_client_factory.mojom ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/mojo_shell_connection.h
diff --git a/content/public/common/mojo_shell_connection.h b/content/public/common/mojo_shell_connection.h
index af4cce1341484871827a2450e83114662ce8155e..41f82b7fecb276b332173ddb211215ed7bd19c5b 100644
--- a/content/public/common/mojo_shell_connection.h
+++ b/content/public/common/mojo_shell_connection.h
@@ -6,6 +6,7 @@
#define CONTENT_PUBLIC_COMMON_MOJO_SHELL_CONNECTION_H_
#include "content/common/content_export.h"
+#include "mojo/public/cpp/system/message_pipe.h"
namespace mojo {
class ApplicationConnection;
@@ -29,7 +30,6 @@ class CONTENT_EXPORT MojoShellConnection {
virtual bool ConfigureIncomingConnection(
mojo::ApplicationConnection* connection) = 0;
- protected:
virtual ~Listener() {}
};
@@ -42,11 +42,21 @@ class CONTENT_EXPORT MojoShellConnection {
// created on.
static void Destroy();
+ // Blocks the calling thread until calling GetApplication() will return an
+ // Initialized() application with a bound ShellPtr. This call is a no-op
+ // if the connection has already been initialized.
+ virtual void BindToCommandLinePlatformChannel() = 0;
jam 2015/11/25 21:26:15 these are only used by internal content code, so t
+
+ // Same as BindToCommandLinePlatformChannel(), but receives a handle instead
+ // of looking for one on the command line.
+ virtual void BindToMessagePipe(mojo::ScopedMessagePipeHandle handle) = 0;
+
// Returns an Initialized() ApplicationImpl.
virtual mojo::ApplicationImpl* GetApplication() = 0;
// [De]Register an impl of Listener that will be consulted when the wrapped
// ApplicationImpl exposes services to inbound connections.
+ // Registered listeners are owned by this MojoShellConnection.
virtual void AddListener(Listener* listener) = 0;
virtual void RemoveListener(Listener* listener) = 0;
« no previous file with comments | « content/common/render_widget_window_tree_client_factory.mojom ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698