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_JINGLE_SESSION_MANAGER_H_ | 5 #ifndef REMOTING_PROTOCOL_JINGLE_SESSION_MANAGER_H_ |
6 #define REMOTING_PROTOCOL_JINGLE_SESSION_MANAGER_H_ | 6 #define REMOTING_PROTOCOL_JINGLE_SESSION_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/sequence_checker.h" |
12 #include "remoting/protocol/jingle_messages.h" | 13 #include "remoting/protocol/jingle_messages.h" |
13 #include "remoting/protocol/session_manager.h" | 14 #include "remoting/protocol/session_manager.h" |
14 #include "remoting/signaling/signal_strategy.h" | 15 #include "remoting/signaling/signal_strategy.h" |
15 | 16 |
16 namespace buzz { | 17 namespace buzz { |
17 class XmlElement; | 18 class XmlElement; |
18 } // namespace buzz | 19 } // namespace buzz |
19 | 20 |
20 namespace remoting { | 21 namespace remoting { |
21 | 22 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 65 |
65 SignalStrategy* signal_strategy_ = nullptr; | 66 SignalStrategy* signal_strategy_ = nullptr; |
66 IncomingSessionCallback incoming_session_callback_; | 67 IncomingSessionCallback incoming_session_callback_; |
67 std::unique_ptr<CandidateSessionConfig> protocol_config_; | 68 std::unique_ptr<CandidateSessionConfig> protocol_config_; |
68 | 69 |
69 std::unique_ptr<AuthenticatorFactory> authenticator_factory_; | 70 std::unique_ptr<AuthenticatorFactory> authenticator_factory_; |
70 std::unique_ptr<IqSender> iq_sender_; | 71 std::unique_ptr<IqSender> iq_sender_; |
71 | 72 |
72 SessionsMap sessions_; | 73 SessionsMap sessions_; |
73 | 74 |
| 75 SEQUENCE_CHECKER(sequence_checker_); |
| 76 |
74 DISALLOW_COPY_AND_ASSIGN(JingleSessionManager); | 77 DISALLOW_COPY_AND_ASSIGN(JingleSessionManager); |
75 }; | 78 }; |
76 | 79 |
77 } // namespace protocol | 80 } // namespace protocol |
78 } // namespace remoting | 81 } // namespace remoting |
79 | 82 |
80 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_MANAGER_H_ | 83 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_MANAGER_H_ |
OLD | NEW |