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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 // Disconnects the host, ready for tear-down. | 74 // Disconnects the host, ready for tear-down. |
75 // Also called internally, from the network thread. | 75 // Also called internally, from the network thread. |
76 virtual void Disconnect(); | 76 virtual void Disconnect(); |
77 | 77 |
78 // TODO (weitaosu): Remove RequestNatPolicy from It2MeHost. | 78 // TODO (weitaosu): Remove RequestNatPolicy from It2MeHost. |
79 // Request a NAT policy notification. | 79 // Request a NAT policy notification. |
80 virtual void RequestNatPolicy(); | 80 virtual void RequestNatPolicy(); |
81 | 81 |
82 // remoting::HostStatusObserver implementation. | 82 // remoting::HostStatusObserver implementation. |
83 virtual void OnAccessDenied(const std::string& jid) OVERRIDE; | 83 virtual void OnAccessDenied(const std::string& jid) override; |
84 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; | 84 virtual void OnClientAuthenticated(const std::string& jid) override; |
85 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; | 85 virtual void OnClientDisconnected(const std::string& jid) override; |
86 | 86 |
87 void SetStateForTesting(It2MeHostState state) { SetState(state); } | 87 void SetStateForTesting(It2MeHostState state) { SetState(state); } |
88 | 88 |
89 protected: | 89 protected: |
90 friend class base::RefCountedThreadSafe<It2MeHost>; | 90 friend class base::RefCountedThreadSafe<It2MeHost>; |
91 | 91 |
92 virtual ~It2MeHost(); | 92 virtual ~It2MeHost(); |
93 | 93 |
94 ChromotingHostContext* host_context() { return host_context_; } | 94 ChromotingHostContext* host_context() { return host_context_; } |
95 scoped_refptr<base::SingleThreadTaskRunner> task_runner() { | 95 scoped_refptr<base::SingleThreadTaskRunner> task_runner() { |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 const XmppSignalStrategy::XmppServerConfig& xmpp_server_config, | 188 const XmppSignalStrategy::XmppServerConfig& xmpp_server_config, |
189 const std::string& directory_bot_jid); | 189 const std::string& directory_bot_jid); |
190 | 190 |
191 private: | 191 private: |
192 DISALLOW_COPY_AND_ASSIGN(It2MeHostFactory); | 192 DISALLOW_COPY_AND_ASSIGN(It2MeHostFactory); |
193 }; | 193 }; |
194 | 194 |
195 } // namespace remoting | 195 } // namespace remoting |
196 | 196 |
197 #endif // REMOTING_HOST_IT2ME_IT2ME_HOST_H_ | 197 #endif // REMOTING_HOST_IT2ME_IT2ME_HOST_H_ |
OLD | NEW |