Chromium Code Reviews| 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 <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 82 | 82 |
| 83 // Start connection by sending session-initiate message. | 83 // Start connection by sending session-initiate message. |
| 84 void StartConnection(const std::string& peer_jid, | 84 void StartConnection(const std::string& peer_jid, |
| 85 scoped_ptr<Authenticator> authenticator, | 85 scoped_ptr<Authenticator> authenticator, |
| 86 scoped_ptr<CandidateSessionConfig> config); | 86 scoped_ptr<CandidateSessionConfig> config); |
| 87 | 87 |
| 88 // Called by JingleSessionManager for incoming connections. | 88 // Called by JingleSessionManager for incoming connections. |
| 89 void InitializeIncomingConnection(const JingleMessage& initiate_message, | 89 void InitializeIncomingConnection(const JingleMessage& initiate_message, |
| 90 scoped_ptr<Authenticator> authenticator); | 90 scoped_ptr<Authenticator> authenticator); |
| 91 void AcceptIncomingConnection(const JingleMessage& initiate_message); | 91 void AcceptIncomingConnection(const JingleMessage& initiate_message); |
| 92 void ContinueAcceptIncomingConnection(); | |
|
Sergey Ulanov
2013/02/28 08:05:16
The comment above doesn't apply to this method, so
rmsousa
2013/02/28 23:29:23
Yeah, this actually belongs together with ProcessA
| |
| 92 | 93 |
| 93 // Sends |message| to the peer. The session is closed if the send fails or no | 94 // Sends |message| to the peer. The session is closed if the send fails or no |
| 94 // response is received within a reasonable time. All other responses are | 95 // response is received within a reasonable time. All other responses are |
| 95 // ignored. | 96 // ignored. |
| 96 void SendMessage(const JingleMessage& message); | 97 void SendMessage(const JingleMessage& message); |
| 97 | 98 |
| 98 // Iq response handler. | 99 // Iq response handler. |
| 99 void OnMessageResponse(JingleMessage::ActionType request_type, | 100 void OnMessageResponse(JingleMessage::ActionType request_type, |
| 100 IqRequest* request, | 101 IqRequest* request, |
| 101 const buzz::XmlElement* response); | 102 const buzz::XmlElement* response); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 162 base::OneShotTimer<JingleSession> transport_infos_timer_; | 163 base::OneShotTimer<JingleSession> transport_infos_timer_; |
| 163 std::list<JingleMessage::NamedCandidate> pending_candidates_; | 164 std::list<JingleMessage::NamedCandidate> pending_candidates_; |
| 164 | 165 |
| 165 DISALLOW_COPY_AND_ASSIGN(JingleSession); | 166 DISALLOW_COPY_AND_ASSIGN(JingleSession); |
| 166 }; | 167 }; |
| 167 | 168 |
| 168 } // namespace protocol | 169 } // namespace protocol |
| 169 } // namespace remoting | 170 } // namespace remoting |
| 170 | 171 |
| 171 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_H_ | 172 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_H_ |
| OLD | NEW |