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

Unified Diff: remoting/host/continue_window.h

Issue 8624009: Refactor ContinueWindow::Show() to accept a callback parameter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac compile Created 9 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 | « no previous file | remoting/host/continue_window_linux.cc » ('j') | remoting/host/desktop_environment.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/continue_window.h
diff --git a/remoting/host/continue_window.h b/remoting/host/continue_window.h
index 0c52416817de502a72bbc2c068f351631adad317..18406643d4429ea88274c7996c10d58e7b1871fa 100644
--- a/remoting/host/continue_window.h
+++ b/remoting/host/continue_window.h
@@ -5,17 +5,26 @@
#ifndef REMOTING_HOST_CONTINUE_WINDOW_H
#define REMOTING_HOST_CONTINUE_WINDOW_H
+#include "base/callback.h"
+
namespace remoting {
class ChromotingHost;
class ContinueWindow {
public:
+ // ContinueSessionCallback is called when the user clicks on the
+ // Continue button to resume the session, or dismisses the window to
+ // terminate 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(bool)> ContinueSessionCallback;
+
virtual ~ContinueWindow() {}
// Show the continuation window requesting that the user approve continuing
// the session.
- virtual void Show(ChromotingHost* host) = 0;
+ virtual void Show(ChromotingHost* host,
Sergey Ulanov 2011/11/23 19:23:15 I think the point of this CL is to remove dependen
Lambros 2011/11/23 19:39:28 My main purpose was to get rid of the unnecessary
+ const ContinueSessionCallback& callback) = 0;
// Hide the continuation window if it is visible.
virtual void Hide() = 0;
« no previous file with comments | « no previous file | remoting/host/continue_window_linux.cc » ('j') | remoting/host/desktop_environment.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698