OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PROTOCOL_PEPPER_SESSION_MANAGER_H_ | 5 #ifndef REMOTING_PROTOCOL_PEPPER_SESSION_MANAGER_H_ |
6 #define REMOTING_PROTOCOL_PEPPER_SESSION_MANAGER_H_ | 6 #define REMOTING_PROTOCOL_PEPPER_SESSION_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <list> | 9 #include <list> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "net/base/x509_certificate.h" | 13 #include "net/base/x509_certificate.h" |
14 #include "remoting/jingle_glue/signal_strategy.h" | 14 #include "remoting/jingle_glue/signal_strategy.h" |
15 #include "remoting/protocol/jingle_messages.h" | 15 #include "remoting/protocol/jingle_messages.h" |
16 #include "remoting/protocol/session_manager.h" | 16 #include "remoting/protocol/session_manager.h" |
17 #include "remoting/protocol/transport.h" | |
18 #include "remoting/protocol/transport_config.h" | |
19 | 17 |
20 namespace pp { | 18 namespace pp { |
21 class Instance; | 19 class Instance; |
22 } // namespace pp | 20 } // namespace pp |
23 | 21 |
24 namespace buzz { | 22 namespace buzz { |
25 class XmlElement; | 23 class XmlElement; |
26 } // namespace buzz | 24 } // namespace buzz |
27 | 25 |
28 namespace talk_base { | 26 namespace talk_base { |
29 class SocketAddress; | 27 class SocketAddress; |
30 } // namespace talk_base | 28 } // namespace talk_base |
31 | 29 |
32 namespace remoting { | 30 namespace remoting { |
33 | 31 |
34 class IqSender; | 32 class IqSender; |
35 class JingleInfoRequest; | 33 class JingleInfoRequest; |
36 | 34 |
37 namespace protocol { | 35 namespace protocol { |
38 | 36 |
39 class JingleSession; | 37 class JingleSession; |
| 38 class TransportFactory; |
40 | 39 |
41 // JingleSessionManager and JingleSession implement the subset of the | 40 // JingleSessionManager and JingleSession implement the subset of the |
42 // Jingle protocol used in Chromoting. JingleSessionManager provides | 41 // Jingle protocol used in Chromoting. JingleSessionManager provides |
43 // the protocol::SessionManager interface for accepting incoming and | 42 // the protocol::SessionManager interface for accepting incoming and |
44 // creating outgoing sessions. | 43 // creating outgoing sessions. |
45 class JingleSessionManager : public SessionManager, | 44 class JingleSessionManager : public SessionManager, |
46 public SignalStrategy::Listener { | 45 public SignalStrategy::Listener { |
47 public: | 46 public: |
48 // When |fetch_nat_traversal_config| is set to true then | 47 // When |fetch_nat_traversal_config| is set to true then |
49 // JingleSessionManager will also try to query configuration of STUN | 48 // JingleSessionManager will also try to query configuration of STUN |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 bool fetch_nat_traversal_config_; | 94 bool fetch_nat_traversal_config_; |
96 | 95 |
97 SignalStrategy* signal_strategy_; | 96 SignalStrategy* signal_strategy_; |
98 bool nat_travesal_; | 97 bool nat_travesal_; |
99 scoped_ptr<AuthenticatorFactory> authenticator_factory_; | 98 scoped_ptr<AuthenticatorFactory> authenticator_factory_; |
100 scoped_ptr<IqSender> iq_sender_; | 99 scoped_ptr<IqSender> iq_sender_; |
101 SessionManager::Listener* listener_; | 100 SessionManager::Listener* listener_; |
102 | 101 |
103 bool ready_; | 102 bool ready_; |
104 | 103 |
105 TransportConfig transport_config_; | |
106 | |
107 scoped_ptr<JingleInfoRequest> jingle_info_request_; | 104 scoped_ptr<JingleInfoRequest> jingle_info_request_; |
108 | 105 |
109 SessionsMap sessions_; | 106 SessionsMap sessions_; |
110 | 107 |
111 DISALLOW_COPY_AND_ASSIGN(JingleSessionManager); | 108 DISALLOW_COPY_AND_ASSIGN(JingleSessionManager); |
112 }; | 109 }; |
113 | 110 |
114 } // namespace protocol | 111 } // namespace protocol |
115 } // namespace remoting | 112 } // namespace remoting |
116 | 113 |
117 #endif // REMOTING_PROTOCOL_PEPPER_SESSION_MANAGER_H_ | 114 #endif // REMOTING_PROTOCOL_PEPPER_SESSION_MANAGER_H_ |
OLD | NEW |