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

Unified Diff: remoting/host/desktop_environment.h

Issue 7714026: Fixed continue window bugs and added 60s auto-shutdown timeout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated comments froms sergeyu@ Created 9 years, 4 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: remoting/host/desktop_environment.h
diff --git a/remoting/host/desktop_environment.h b/remoting/host/desktop_environment.h
index 9537461a15b51e22370a34755d3ef3e55f560617..96c44e0205a90f93afa1ed1cccf4e57610edd5dc 100644
--- a/remoting/host/desktop_environment.h
+++ b/remoting/host/desktop_environment.h
@@ -105,7 +105,12 @@ class DesktopEnvironment {
bool is_monitoring_local_inputs_;
// Timer controlling the "continue session" dialog.
- bool continue_timer_started_;
+ enum ContinueTimerState {
Sergey Ulanov 2011/08/24 18:38:37 Type definition should precede methods declaration
Jamie 2011/08/25 00:16:39 Done.
+ INACTIVE, // The timer is not running or has been cancelled.
+ SHOW_DIALOG, // Show the continue dialog when the timer expires.
+ SHUTDOWN_HOST // Shutdown the Chromoting host when the timer expires.
+ };
+ ContinueTimerState continue_timer_state_;
base::Time continue_timer_target_time_;
scoped_refptr<UIThreadProxy> proxy_;

Powered by Google App Engine
This is Rietveld 408576698