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

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

Issue 1920033005: services/shell: Fix running the connection-lost callback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 3ad19d239df3fa46800713cf319894035da983f1..b4946da5fa2df91072d4937f50427b664ce78719 100644
--- a/content/common/mojo/mojo_shell_connection_impl.h
+++ b/content/common/mojo/mojo_shell_connection_impl.h
@@ -53,6 +53,7 @@ class MojoShellConnectionImpl : public MojoShellConnection,
const shell::Identity& identity,
uint32_t id) override;
bool AcceptConnection(shell::Connection* connection) override;
+ bool ShellConnectionLost() override;
// MojoShellConnection:
shell::Connector* GetConnector() override;
@@ -63,6 +64,7 @@ class MojoShellConnectionImpl : public MojoShellConnection,
std::unique_ptr<Listener> RemoveListener(Listener* listener) override;
const bool external_;
+ bool connection_lost_;
std::unique_ptr<shell::ShellConnection> shell_connection_;
std::vector<Listener*> listeners_;
« no previous file with comments | « no previous file | content/common/mojo/mojo_shell_connection_impl.cc » ('j') | content/common/mojo/mojo_shell_connection_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698