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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 // to shut down UI thread resources. | 119 // to shut down UI thread resources. |
120 void ShutdownOnNetworkThread(); | 120 void ShutdownOnNetworkThread(); |
121 | 121 |
122 // Shuts down |desktop_environment_factory_| and |policy_watcher_| on | 122 // Shuts down |desktop_environment_factory_| and |policy_watcher_| on |
123 // the UI thread. | 123 // the UI thread. |
124 void ShutdownOnUiThread(); | 124 void ShutdownOnUiThread(); |
125 | 125 |
126 // Called when initial policies are read, and when they change. | 126 // Called when initial policies are read, and when they change. |
127 void OnPolicyUpdate(scoped_ptr<base::DictionaryValue> policies); | 127 void OnPolicyUpdate(scoped_ptr<base::DictionaryValue> policies); |
128 | 128 |
| 129 // Called when malformed policies are detected |
| 130 void OnPolicyError(); |
| 131 |
129 // Handlers for NAT traversal and host domain policies. | 132 // Handlers for NAT traversal and host domain policies. |
130 void UpdateNatPolicy(bool nat_traversal_enabled); | 133 void UpdateNatPolicy(bool nat_traversal_enabled); |
131 void UpdateHostDomainPolicy(const std::string& host_domain); | 134 void UpdateHostDomainPolicy(const std::string& host_domain); |
132 | 135 |
133 // Caller supplied fields. | 136 // Caller supplied fields. |
134 | 137 |
135 // The creator of the It2MeHost object owns the the host context and is | 138 // The creator of the It2MeHost object owns the the host context and is |
136 // responsible for keeping it alive throughout the liftime of the host. | 139 // responsible for keeping it alive throughout the liftime of the host. |
137 ChromotingHostContext* host_context_; | 140 ChromotingHostContext* host_context_; |
138 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 141 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 const XmppSignalStrategy::XmppServerConfig& xmpp_server_config, | 191 const XmppSignalStrategy::XmppServerConfig& xmpp_server_config, |
189 const std::string& directory_bot_jid); | 192 const std::string& directory_bot_jid); |
190 | 193 |
191 private: | 194 private: |
192 DISALLOW_COPY_AND_ASSIGN(It2MeHostFactory); | 195 DISALLOW_COPY_AND_ASSIGN(It2MeHostFactory); |
193 }; | 196 }; |
194 | 197 |
195 } // namespace remoting | 198 } // namespace remoting |
196 | 199 |
197 #endif // REMOTING_HOST_IT2ME_IT2ME_HOST_H_ | 200 #endif // REMOTING_HOST_IT2ME_IT2ME_HOST_H_ |
OLD | NEW |