OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |