| 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 <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // Iq response handler. | 70 // Iq response handler. |
| 71 void OnMessageResponse(JingleMessage::ActionType request_type, | 71 void OnMessageResponse(JingleMessage::ActionType request_type, |
| 72 IqRequest* request, | 72 IqRequest* request, |
| 73 const buzz::XmlElement* response); | 73 const buzz::XmlElement* response); |
| 74 | 74 |
| 75 // Transport::EventHandler interface. | 75 // Transport::EventHandler interface. |
| 76 void OnOutgoingTransportInfo( | 76 void OnOutgoingTransportInfo( |
| 77 scoped_ptr<buzz::XmlElement> transport_info) override; | 77 scoped_ptr<buzz::XmlElement> transport_info) override; |
| 78 void OnTransportRouteChange(const std::string& component, | 78 void OnTransportRouteChange(const std::string& component, |
| 79 const TransportRoute& route) override; | 79 const TransportRoute& route) override; |
| 80 void OnTransportConnected() override; |
| 80 void OnTransportError(ErrorCode error) override; | 81 void OnTransportError(ErrorCode error) override; |
| 81 | 82 |
| 82 // Response handler for transport-info responses. Transport-info timeouts are | 83 // Response handler for transport-info responses. Transport-info timeouts are |
| 83 // ignored and don't terminate connection. | 84 // ignored and don't terminate connection. |
| 84 void OnTransportInfoResponse(IqRequest* request, | 85 void OnTransportInfoResponse(IqRequest* request, |
| 85 const buzz::XmlElement* response); | 86 const buzz::XmlElement* response); |
| 86 | 87 |
| 87 // Called by JingleSessionManager on incoming |message|. Must call | 88 // Called by JingleSessionManager on incoming |message|. Must call |
| 88 // |reply_callback| to send reply message before sending any other | 89 // |reply_callback| to send reply message before sending any other |
| 89 // messages. | 90 // messages. |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 144 |
| 144 base::WeakPtrFactory<JingleSession> weak_factory_; | 145 base::WeakPtrFactory<JingleSession> weak_factory_; |
| 145 | 146 |
| 146 DISALLOW_COPY_AND_ASSIGN(JingleSession); | 147 DISALLOW_COPY_AND_ASSIGN(JingleSession); |
| 147 }; | 148 }; |
| 148 | 149 |
| 149 } // namespace protocol | 150 } // namespace protocol |
| 150 } // namespace remoting | 151 } // namespace remoting |
| 151 | 152 |
| 152 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_H_ | 153 #endif // REMOTING_PROTOCOL_JINGLE_SESSION_H_ |
| OLD | NEW |