OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_WEBRTC_TRANSPORT_H_ | 5 #ifndef REMOTING_PROTOCOL_WEBRTC_TRANSPORT_H_ |
6 #define REMOTING_PROTOCOL_WEBRTC_TRANSPORT_H_ | 6 #define REMOTING_PROTOCOL_WEBRTC_TRANSPORT_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 webrtc::PeerConnectionFactoryInterface* peer_connection_factory() { | 38 webrtc::PeerConnectionFactoryInterface* peer_connection_factory() { |
39 return peer_connection_factory_; | 39 return peer_connection_factory_; |
40 } | 40 } |
41 | 41 |
42 // Transport interface. | 42 // Transport interface. |
43 void Start(EventHandler* event_handler, | 43 void Start(EventHandler* event_handler, |
44 Authenticator* authenticator) override; | 44 Authenticator* authenticator) override; |
45 bool ProcessTransportInfo(buzz::XmlElement* transport_info) override; | 45 bool ProcessTransportInfo(buzz::XmlElement* transport_info) override; |
46 StreamChannelFactory* GetStreamChannelFactory() override; | 46 StreamChannelFactory* GetStreamChannelFactory() override; |
47 StreamChannelFactory* GetMultiplexedChannelFactory() override; | 47 StreamChannelFactory* GetMultiplexedChannelFactory() override; |
| 48 WebrtcTransport* AsWebrtcTransport() override; |
48 | 49 |
49 private: | 50 private: |
50 void OnLocalSessionDescriptionCreated( | 51 void OnLocalSessionDescriptionCreated( |
51 scoped_ptr<webrtc::SessionDescriptionInterface> description, | 52 scoped_ptr<webrtc::SessionDescriptionInterface> description, |
52 const std::string& error); | 53 const std::string& error); |
53 void OnLocalDescriptionSet(bool success, const std::string& error); | 54 void OnLocalDescriptionSet(bool success, const std::string& error); |
54 void OnRemoteDescriptionSet(bool send_answer, | 55 void OnRemoteDescriptionSet(bool send_answer, |
55 bool success, | 56 bool success, |
56 const std::string& error); | 57 const std::string& error); |
57 | 58 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 port_allocator_factory_; | 128 port_allocator_factory_; |
128 TransportRole role_; | 129 TransportRole role_; |
129 | 130 |
130 DISALLOW_COPY_AND_ASSIGN(WebrtcTransportFactory); | 131 DISALLOW_COPY_AND_ASSIGN(WebrtcTransportFactory); |
131 }; | 132 }; |
132 | 133 |
133 } // namespace protocol | 134 } // namespace protocol |
134 } // namespace remoting | 135 } // namespace remoting |
135 | 136 |
136 #endif // REMOTING_PROTOCOL_WEBRTC_TRANSPORT_H_ | 137 #endif // REMOTING_PROTOCOL_WEBRTC_TRANSPORT_H_ |
OLD | NEW |