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

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
« no previous file with comments | « remoting/host/chromoting_host.cc ('k') | remoting/host/desktop_environment.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_environment.h
diff --git a/remoting/host/desktop_environment.h b/remoting/host/desktop_environment.h
index 9537461a15b51e22370a34755d3ef3e55f560617..0fc00c9d511ffc46208a22e862835b0a42c3b5a4 100644
--- a/remoting/host/desktop_environment.h
+++ b/remoting/host/desktop_environment.h
@@ -58,6 +58,12 @@ class DesktopEnvironment {
void OnPause(bool pause);
private:
+ enum ContinueTimerState {
+ 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.
+ };
+
void ProcessOnConnect(const std::string& username);
void ProcessOnLastDisconnect();
void ProcessOnPause(bool pause);
@@ -105,7 +111,7 @@ class DesktopEnvironment {
bool is_monitoring_local_inputs_;
// Timer controlling the "continue session" dialog.
- bool continue_timer_started_;
+ ContinueTimerState continue_timer_state_;
base::Time continue_timer_target_time_;
scoped_refptr<UIThreadProxy> proxy_;
« no previous file with comments | « remoting/host/chromoting_host.cc ('k') | remoting/host/desktop_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698