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

Unified Diff: remoting/host/it2me/it2me_host.h

Issue 639233002: Remote assistance on Chrome OS Part IV - It2MeHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedbacks Created 6 years, 2 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/it2me/it2me_host.h
diff --git a/remoting/host/it2me/it2me_host.h b/remoting/host/it2me/it2me_host.h
index c24f2d10d4e6f136f47027888180a9cd35afc276..58aba0b5c692113aec4c05d0bb0f272f077930ed 100644
--- a/remoting/host/it2me/it2me_host.h
+++ b/remoting/host/it2me/it2me_host.h
@@ -123,6 +123,10 @@ class It2MeHost : public base::RefCountedThreadSafe<It2MeHost>,
// the UI thread.
void ShutdownOnUiThread();
+ // Called when |policy_watcher_| has stopped listening for changes and it is
+ // safe to delete the |policy_watcher_| object.
Wez 2014/10/17 17:58:01 nit: ... safe to delete it.
kelvinp 2014/10/20 00:21:17 Done.
+ void OnPolicyWatcherShutdown();
+
// Called when initial policies are read, and when they change.
void OnPolicyUpdate(scoped_ptr<base::DictionaryValue> policies);
@@ -135,7 +139,10 @@ class It2MeHost : public base::RefCountedThreadSafe<It2MeHost>,
// The creator of the It2MeHost object owns the the host context and is
// responsible for keeping it alive throughout the liftime of the host.
ChromotingHostContext* host_context_;
Wez 2014/10/17 17:58:01 That doesn't make sense; the It2Me object is ref-c
kelvinp 2014/10/20 00:21:17 We can but this would mean that it2meHost would ne
+
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
Wez 2014/10/17 17:58:01 Add a comment, or better still rename this to ui_t
kelvinp 2014/10/20 00:21:17 I have removed network_task_runner.
+ scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
Wez 2014/10/17 17:58:01 Why have you pulled this out of the host context?
kelvinp 2014/10/20 00:21:18 Because It2MeHost outlives the host context and we
+
base::WeakPtr<It2MeHost::Observer> observer_;
XmppSignalStrategy::XmppServerConfig xmpp_server_config_;
std::string directory_bot_jid_;

Powered by Google App Engine
This is Rietveld 408576698