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

Side by Side Diff: remoting/host/it2me/it2me_host.h

Issue 886913002: Always run PolicyWatcher on UI thread in It2Me host. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | remoting/host/it2me/it2me_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_IT2ME_IT2ME_HOST_H_ 5 #ifndef REMOTING_HOST_IT2ME_IT2ME_HOST_H_
6 #define REMOTING_HOST_IT2ME_IT2ME_HOST_H_ 6 #define REMOTING_HOST_IT2ME_IT2ME_HOST_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 const base::TimeDelta& lifetime); 125 const base::TimeDelta& lifetime);
126 126
127 // Shuts down |host_| on the network thread and posts ShutdownOnUiThread() 127 // Shuts down |host_| on the network thread and posts ShutdownOnUiThread()
128 // to shut down UI thread resources. 128 // to shut down UI thread resources.
129 void ShutdownOnNetworkThread(); 129 void ShutdownOnNetworkThread();
130 130
131 // Shuts down |desktop_environment_factory_| and |policy_watcher_| on 131 // Shuts down |desktop_environment_factory_| and |policy_watcher_| on
132 // the UI thread. 132 // the UI thread.
133 void ShutdownOnUiThread(); 133 void ShutdownOnUiThread();
134 134
135 // Called when |policy_watcher_| has stopped listening for changes and it is
136 // safe to delete it.
137 void OnPolicyWatcherShutdown();
138
139 // Called when initial policies are read, and when they change. 135 // Called when initial policies are read, and when they change.
140 void OnPolicyUpdate(scoped_ptr<base::DictionaryValue> policies); 136 void OnPolicyUpdate(scoped_ptr<base::DictionaryValue> policies);
141 137
142 // Called when malformed policies are detected. 138 // Called when malformed policies are detected.
143 void OnPolicyError(); 139 void OnPolicyError();
144 140
145 // Handlers for NAT traversal and host domain policies. 141 // Handlers for NAT traversal and host domain policies.
146 void UpdateNatPolicy(bool nat_traversal_enabled); 142 void UpdateNatPolicy(bool nat_traversal_enabled);
147 void UpdateHostDomainPolicy(const std::string& host_domain); 143 void UpdateHostDomainPolicy(const std::string& host_domain);
148 144
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 const std::string& directory_bot_jid); 206 const std::string& directory_bot_jid);
211 207
212 private: 208 private:
213 policy::PolicyService* policy_service_; 209 policy::PolicyService* policy_service_;
214 DISALLOW_COPY_AND_ASSIGN(It2MeHostFactory); 210 DISALLOW_COPY_AND_ASSIGN(It2MeHostFactory);
215 }; 211 };
216 212
217 } // namespace remoting 213 } // namespace remoting
218 214
219 #endif // REMOTING_HOST_IT2ME_IT2ME_HOST_H_ 215 #endif // REMOTING_HOST_IT2ME_IT2ME_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/it2me/it2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698