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

Unified Diff: content/common/mojo/mojo_shell_connection_impl.h

Issue 1461243002: [OLD ATTEMPT, DO NOT REVIEW] mustash: Enable connections to mus from the Chrome renderer Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Invert connection creation flow. Needs lots of work. 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
Index: content/common/mojo/mojo_shell_connection_impl.h
diff --git a/content/common/mojo/mojo_shell_connection_impl.h b/content/common/mojo/mojo_shell_connection_impl.h
index 8891acba7bc1e54927325891a6c4f7aa51cffe2d..a3c84dd77c3e378108f07099f376be4d87e3532e 100644
--- a/content/common/mojo/mojo_shell_connection_impl.h
+++ b/content/common/mojo/mojo_shell_connection_impl.h
@@ -37,6 +37,8 @@ class MojoShellConnectionImpl : public MojoShellConnection,
static void CreateWithMessagePipe(mojo::ScopedMessagePipeHandle handle);
private:
+ friend class MojoShellConnection;
+
MojoShellConnectionImpl();
~MojoShellConnectionImpl() override;
@@ -50,6 +52,8 @@ class MojoShellConnectionImpl : public MojoShellConnection,
void AddListener(Listener* listener) override;
void RemoveListener(Listener* listener) override;
+ void OnDestroy();
+
// Blocks the calling thread until a connection to the spawning shell is
// established, an Application request from it is bound, and the Initialize()
// method on that application is called.

Powered by Google App Engine
This is Rietveld 408576698