Index: remoting/host/disconnect_window.h |
diff --git a/remoting/host/disconnect_window.h b/remoting/host/disconnect_window.h |
index e5345ed9e69646741a458f664c60c8b99915654a..f55a90b83809a15a41aa72f84264d94f9ea49445 100644 |
--- a/remoting/host/disconnect_window.h |
+++ b/remoting/host/disconnect_window.h |
@@ -7,6 +7,7 @@ |
#include <string> |
+#include "base/callback.h" |
#include "base/memory/scoped_ptr.h" |
namespace remoting { |
@@ -20,10 +21,17 @@ class DisconnectWindow { |
kMaximumConnectedNameWidthInPixels = 400 |
}; |
+ // DisconnectCallback is called when the user clicks on the Disconnect button |
+ // to disconnect the session. This callback is provided as a parameter to the |
+ // Show() method, and will be triggered on the UI thread. |
+ typedef base::Callback<void(void)> DisconnectCallback; |
+ |
virtual ~DisconnectWindow() {} |
// Show the disconnect window allowing the user to shut down |host|. |
- virtual void Show(ChromotingHost* host, const std::string& username) = 0; |
+ virtual void Show(ChromotingHost* host, |
+ const DisconnectCallback& disconnect_callback, |
+ const std::string& username) = 0; |
// Hide the disconnect window. |
virtual void Hide() = 0; |