| 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 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 public: | 34 public: |
| 35 explicit JingleSessionManager(SignalStrategy* signal_strategy); | 35 explicit JingleSessionManager(SignalStrategy* signal_strategy); |
| 36 ~JingleSessionManager() override; | 36 ~JingleSessionManager() override; |
| 37 | 37 |
| 38 // SessionManager interface. | 38 // SessionManager interface. |
| 39 void AcceptIncoming( | 39 void AcceptIncoming( |
| 40 const IncomingSessionCallback& incoming_session_callback) override; | 40 const IncomingSessionCallback& incoming_session_callback) override; |
| 41 void set_protocol_config( | 41 void set_protocol_config( |
| 42 std::unique_ptr<CandidateSessionConfig> config) override; | 42 std::unique_ptr<CandidateSessionConfig> config) override; |
| 43 std::unique_ptr<Session> Connect( | 43 std::unique_ptr<Session> Connect( |
| 44 const std::string& host_jid, | 44 const SignalingAddress& peer_address, |
| 45 std::unique_ptr<Authenticator> authenticator) override; | 45 std::unique_ptr<Authenticator> authenticator) override; |
| 46 void set_authenticator_factory( | 46 void set_authenticator_factory( |
| 47 std::unique_ptr<AuthenticatorFactory> authenticator_factory) override; | 47 std::unique_ptr<AuthenticatorFactory> authenticator_factory) override; |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 friend class JingleSession; | 50 friend class JingleSession; |
| 51 | 51 |
| 52 // SignalStrategy::Listener interface. | 52 // SignalStrategy::Listener interface. |
| 53 void OnSignalStrategyStateChange(SignalStrategy::State state) override; | 53 void OnSignalStrategyStateChange(SignalStrategy::State state) override; |
| 54 bool OnSignalStrategyIncomingStanza(const buzz::XmlElement* stanza) override; | 54 bool OnSignalStrategyIncomingStanza(const buzz::XmlElement* stanza) override; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 71 | 71 |
| 72 SessionsMap sessions_; | 72 SessionsMap sessions_; |
| 73 | 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(JingleSessionManager); | 74 DISALLOW_COPY_AND_ASSIGN(JingleSessionManager); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace protocol | 77 } // namespace protocol |
| 78 } // namespace remoting | 78 } // namespace remoting |
| 79 | 79 |
| 80 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_MANAGER_H_ | 80 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_MANAGER_H_ |
| OLD | NEW |