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_PEPPER_SESSION_H_ | 5 #ifndef REMOTING_PROTOCOL_PEPPER_SESSION_H_ |
6 #define REMOTING_PROTOCOL_PEPPER_SESSION_H_ | 6 #define REMOTING_PROTOCOL_PEPPER_SESSION_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 virtual const std::string& jid() OVERRIDE; | 56 virtual const std::string& jid() OVERRIDE; |
57 virtual const CandidateSessionConfig* candidate_config() OVERRIDE; | 57 virtual const CandidateSessionConfig* candidate_config() OVERRIDE; |
58 virtual const SessionConfig& config() OVERRIDE; | 58 virtual const SessionConfig& config() OVERRIDE; |
59 virtual void set_config(const SessionConfig& config) OVERRIDE; | 59 virtual void set_config(const SessionConfig& config) OVERRIDE; |
60 virtual void Close() OVERRIDE; | 60 virtual void Close() OVERRIDE; |
61 | 61 |
62 // Transport::EventHandler interface. | 62 // Transport::EventHandler interface. |
63 virtual void OnTransportCandidate( | 63 virtual void OnTransportCandidate( |
64 Transport* transport, | 64 Transport* transport, |
65 const cricket::Candidate& candidate) OVERRIDE; | 65 const cricket::Candidate& candidate) OVERRIDE; |
| 66 virtual void OnTransportRouteChange(Transport* transport, |
| 67 const TransportRoute& route) OVERRIDE; |
66 virtual void OnTransportDeleted(Transport* transport) OVERRIDE; | 68 virtual void OnTransportDeleted(Transport* transport) OVERRIDE; |
67 | 69 |
68 private: | 70 private: |
69 friend class PepperSessionManager; | 71 friend class PepperSessionManager; |
70 | 72 |
71 typedef std::map<std::string, Transport*> ChannelsMap; | 73 typedef std::map<std::string, Transport*> ChannelsMap; |
72 | 74 |
73 explicit PepperSession(PepperSessionManager* session_manager); | 75 explicit PepperSession(PepperSessionManager* session_manager); |
74 | 76 |
75 // Start connection by sending session-initiate message. | 77 // Start connection by sending session-initiate message. |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 base::OneShotTimer<PepperSession> transport_infos_timer_; | 140 base::OneShotTimer<PepperSession> transport_infos_timer_; |
139 std::list<cricket::Candidate> pending_candidates_; | 141 std::list<cricket::Candidate> pending_candidates_; |
140 | 142 |
141 DISALLOW_COPY_AND_ASSIGN(PepperSession); | 143 DISALLOW_COPY_AND_ASSIGN(PepperSession); |
142 }; | 144 }; |
143 | 145 |
144 } // namespace protocol | 146 } // namespace protocol |
145 } // namespace remoting | 147 } // namespace remoting |
146 | 148 |
147 #endif // REMOTING_PROTOCOL_PEPPER_SESSION_H_ | 149 #endif // REMOTING_PROTOCOL_PEPPER_SESSION_H_ |
OLD | NEW |