| 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_H_ | 5 #ifndef REMOTING_PROTOCOL_JINGLE_SESSION_H_ |
| 6 #define REMOTING_PROTOCOL_JINGLE_SESSION_H_ | 6 #define REMOTING_PROTOCOL_JINGLE_SESSION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 void AddPlugin(SessionPlugin* plugin) override; | 46 void AddPlugin(SessionPlugin* plugin) override; |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 friend class JingleSessionManager; | 49 friend class JingleSessionManager; |
| 50 | 50 |
| 51 typedef base::Callback<void(JingleMessageReply::ErrorType)> ReplyCallback; | 51 typedef base::Callback<void(JingleMessageReply::ErrorType)> ReplyCallback; |
| 52 | 52 |
| 53 explicit JingleSession(JingleSessionManager* session_manager); | 53 explicit JingleSession(JingleSessionManager* session_manager); |
| 54 | 54 |
| 55 // Start connection by sending session-initiate message. | 55 // Start connection by sending session-initiate message. |
| 56 void StartConnection(const std::string& peer_jid, | 56 void StartConnection(const SignalingAddress& peer_address, |
| 57 std::unique_ptr<Authenticator> authenticator); | 57 std::unique_ptr<Authenticator> authenticator); |
| 58 | 58 |
| 59 // Called by JingleSessionManager for incoming connections. | 59 // Called by JingleSessionManager for incoming connections. |
| 60 void InitializeIncomingConnection( | 60 void InitializeIncomingConnection( |
| 61 const JingleMessage& initiate_message, | 61 const JingleMessage& initiate_message, |
| 62 std::unique_ptr<Authenticator> authenticator); | 62 std::unique_ptr<Authenticator> authenticator); |
| 63 void AcceptIncomingConnection(const JingleMessage& initiate_message); | 63 void AcceptIncomingConnection(const JingleMessage& initiate_message); |
| 64 | 64 |
| 65 // Callback for Transport interface to send transport-info messages. | 65 // Callback for Transport interface to send transport-info messages. |
| 66 void SendTransportInfo(std::unique_ptr<buzz::XmlElement> transport_info); | 66 void SendTransportInfo(std::unique_ptr<buzz::XmlElement> transport_info); |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 | 184 |
| 185 base::WeakPtrFactory<JingleSession> weak_factory_; | 185 base::WeakPtrFactory<JingleSession> weak_factory_; |
| 186 | 186 |
| 187 DISALLOW_COPY_AND_ASSIGN(JingleSession); | 187 DISALLOW_COPY_AND_ASSIGN(JingleSession); |
| 188 }; | 188 }; |
| 189 | 189 |
| 190 } // namespace protocol | 190 } // namespace protocol |
| 191 } // namespace remoting | 191 } // namespace remoting |
| 192 | 192 |
| 193 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_H_ | 193 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_H_ |
| OLD | NEW |