| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 void OnPolicyUpdate(std::unique_ptr<base::DictionaryValue> policies); | 132 void OnPolicyUpdate(std::unique_ptr<base::DictionaryValue> policies); |
| 133 | 133 |
| 134 // Called when malformed policies are detected. | 134 // Called when malformed policies are detected. |
| 135 void OnPolicyError(); | 135 void OnPolicyError(); |
| 136 | 136 |
| 137 // Handlers for NAT traversal and domain policies. | 137 // Handlers for NAT traversal and domain policies. |
| 138 void UpdateNatPolicy(bool nat_traversal_enabled); | 138 void UpdateNatPolicy(bool nat_traversal_enabled); |
| 139 void UpdateHostDomainPolicy(const std::string& host_domain); | 139 void UpdateHostDomainPolicy(const std::string& host_domain); |
| 140 void UpdateClientDomainPolicy(const std::string& client_domain); | 140 void UpdateClientDomainPolicy(const std::string& client_domain); |
| 141 | 141 |
| 142 void Shutdown(); | 142 void DisconnectOnNetworkThread(); |
| 143 | 143 |
| 144 // Caller supplied fields. | 144 // Caller supplied fields. |
| 145 std::unique_ptr<ChromotingHostContext> host_context_; | 145 std::unique_ptr<ChromotingHostContext> host_context_; |
| 146 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 146 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
| 147 base::WeakPtr<It2MeHost::Observer> observer_; | 147 base::WeakPtr<It2MeHost::Observer> observer_; |
| 148 XmppSignalStrategy::XmppServerConfig xmpp_server_config_; | 148 XmppSignalStrategy::XmppServerConfig xmpp_server_config_; |
| 149 std::string directory_bot_jid_; | 149 std::string directory_bot_jid_; |
| 150 | 150 |
| 151 It2MeHostState state_; | 151 It2MeHostState state_; |
| 152 | 152 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 const std::string& directory_bot_jid); | 206 const std::string& directory_bot_jid); |
| 207 | 207 |
| 208 private: | 208 private: |
| 209 policy::PolicyService* policy_service_; | 209 policy::PolicyService* policy_service_; |
| 210 DISALLOW_COPY_AND_ASSIGN(It2MeHostFactory); | 210 DISALLOW_COPY_AND_ASSIGN(It2MeHostFactory); |
| 211 }; | 211 }; |
| 212 | 212 |
| 213 } // namespace remoting | 213 } // namespace remoting |
| 214 | 214 |
| 215 #endif // REMOTING_HOST_IT2ME_IT2ME_HOST_H_ | 215 #endif // REMOTING_HOST_IT2ME_IT2ME_HOST_H_ |
| OLD | NEW |