OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 24 matching lines...) Expand all Loading... |
35 // Implements the protocol::Session interface using the Pepper P2P | 35 // Implements the protocol::Session interface using the Pepper P2P |
36 // Transport API. Created by PepperSessionManager for incoming and | 36 // Transport API. Created by PepperSessionManager for incoming and |
37 // outgoing connections. | 37 // outgoing connections. |
38 class PepperSession : public Session { | 38 class PepperSession : public Session { |
39 public: | 39 public: |
40 virtual ~PepperSession(); | 40 virtual ~PepperSession(); |
41 | 41 |
42 // Session interface. | 42 // Session interface. |
43 virtual void SetStateChangeCallback( | 43 virtual void SetStateChangeCallback( |
44 const StateChangeCallback& callback) OVERRIDE; | 44 const StateChangeCallback& callback) OVERRIDE; |
| 45 virtual void SetRouteChangeCallback( |
| 46 const RouteChangeCallback& callback) OVERRIDE; |
45 virtual Error error() OVERRIDE; | 47 virtual Error error() OVERRIDE; |
46 virtual void CreateStreamChannel( | 48 virtual void CreateStreamChannel( |
47 const std::string& name, | 49 const std::string& name, |
48 const StreamChannelCallback& callback) OVERRIDE; | 50 const StreamChannelCallback& callback) OVERRIDE; |
49 virtual void CreateDatagramChannel( | 51 virtual void CreateDatagramChannel( |
50 const std::string& name, | 52 const std::string& name, |
51 const DatagramChannelCallback& callback) OVERRIDE; | 53 const DatagramChannelCallback& callback) OVERRIDE; |
52 virtual void CancelChannelCreation(const std::string& name) OVERRIDE; | 54 virtual void CancelChannelCreation(const std::string& name) OVERRIDE; |
53 virtual const std::string& jid() OVERRIDE; | 55 virtual const std::string& jid() OVERRIDE; |
54 virtual const CandidateSessionConfig* candidate_config() OVERRIDE; | 56 virtual const CandidateSessionConfig* candidate_config() OVERRIDE; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 base::OneShotTimer<PepperSession> transport_infos_timer_; | 130 base::OneShotTimer<PepperSession> transport_infos_timer_; |
129 std::list<cricket::Candidate> pending_candidates_; | 131 std::list<cricket::Candidate> pending_candidates_; |
130 | 132 |
131 DISALLOW_COPY_AND_ASSIGN(PepperSession); | 133 DISALLOW_COPY_AND_ASSIGN(PepperSession); |
132 }; | 134 }; |
133 | 135 |
134 } // namespace protocol | 136 } // namespace protocol |
135 } // namespace remoting | 137 } // namespace remoting |
136 | 138 |
137 #endif // REMOTING_PROTOCOL_PEPPER_SESSION_H_ | 139 #endif // REMOTING_PROTOCOL_PEPPER_SESSION_H_ |
OLD | NEW |