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_stun_relay_config| is set to true then | 47 // When |fetch_stun_relay_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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 scoped_ptr<TransportFactory> transport_factory_; | 93 scoped_ptr<TransportFactory> transport_factory_; |
95 bool fetch_stun_relay_config_; | 94 bool fetch_stun_relay_config_; |
96 | 95 |
97 SignalStrategy* signal_strategy_; | 96 SignalStrategy* signal_strategy_; |
98 scoped_ptr<AuthenticatorFactory> authenticator_factory_; | 97 scoped_ptr<AuthenticatorFactory> authenticator_factory_; |
99 scoped_ptr<IqSender> iq_sender_; | 98 scoped_ptr<IqSender> iq_sender_; |
100 SessionManager::Listener* listener_; | 99 SessionManager::Listener* listener_; |
101 | 100 |
102 bool ready_; | 101 bool ready_; |
103 | 102 |
104 TransportConfig transport_config_; | |
105 | |
106 scoped_ptr<JingleInfoRequest> jingle_info_request_; | 103 scoped_ptr<JingleInfoRequest> jingle_info_request_; |
107 | 104 |
108 SessionsMap sessions_; | 105 SessionsMap sessions_; |
109 | 106 |
110 DISALLOW_COPY_AND_ASSIGN(JingleSessionManager); | 107 DISALLOW_COPY_AND_ASSIGN(JingleSessionManager); |
111 }; | 108 }; |
112 | 109 |
113 } // namespace protocol | 110 } // namespace protocol |
114 } // namespace remoting | 111 } // namespace remoting |
115 | 112 |
116 #endif // REMOTING_PROTOCOL_PEPPER_SESSION_MANAGER_H_ | 113 #endif // REMOTING_PROTOCOL_PEPPER_SESSION_MANAGER_H_ |
OLD | NEW |