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

Unified Diff: remoting/host/it2me_host_user_interface.h

Issue 10440107: Replace ScopedThreadProxy with MessageLoopProxy & WeakPtrs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use correct TaskRunner reference, and copy instance reference in lock. Created 8 years, 6 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/host_user_interface.cc ('k') | remoting/host/it2me_host_user_interface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/it2me_host_user_interface.h
diff --git a/remoting/host/it2me_host_user_interface.h b/remoting/host/it2me_host_user_interface.h
index b054c653983fd637de4b295ff5f8c071db4107a0..71619eaf5360135c169527bffd6b83197d9226ce 100644
--- a/remoting/host/it2me_host_user_interface.h
+++ b/remoting/host/it2me_host_user_interface.h
@@ -11,6 +11,7 @@
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
#include "remoting/host/host_user_interface.h"
@@ -67,8 +68,9 @@ class It2MeHostUserInterface : public HostUserInterface {
// the connection.
scoped_ptr<ContinueWindow> continue_window_;
- // Timer controlling the "continue session" dialog.
- scoped_ptr<TimerTask> timer_task_;
+ // Weak pointer factory used to abandon the "continue session" timer when
+ // hiding the "continue session" dialog, or tearing down the IT2Me UI.
+ base::WeakPtrFactory<It2MeHostUserInterface> timer_weak_factory_;
DISALLOW_COPY_AND_ASSIGN(It2MeHostUserInterface);
};
« no previous file with comments | « remoting/host/host_user_interface.cc ('k') | remoting/host/it2me_host_user_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698