| 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 20 matching lines...) Expand all Loading... |
| 31 rtc::scoped_refptr<webrtc::PortAllocatorFactoryInterface> | 31 rtc::scoped_refptr<webrtc::PortAllocatorFactoryInterface> |
| 32 port_allocator_factory, | 32 port_allocator_factory, |
| 33 TransportRole role, | 33 TransportRole role, |
| 34 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner); | 34 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner); |
| 35 ~WebrtcTransport() override; | 35 ~WebrtcTransport() override; |
| 36 | 36 |
| 37 // Transport interface. | 37 // Transport interface. |
| 38 void Start(EventHandler* event_handler, | 38 void Start(EventHandler* event_handler, |
| 39 Authenticator* authenticator) override; | 39 Authenticator* authenticator) override; |
| 40 bool ProcessTransportInfo(buzz::XmlElement* transport_info) override; | 40 bool ProcessTransportInfo(buzz::XmlElement* transport_info) override; |
| 41 DatagramChannelFactory* GetDatagramChannelFactory() override; | |
| 42 StreamChannelFactory* GetStreamChannelFactory() override; | 41 StreamChannelFactory* GetStreamChannelFactory() override; |
| 43 StreamChannelFactory* GetMultiplexedChannelFactory() override; | 42 StreamChannelFactory* GetMultiplexedChannelFactory() override; |
| 44 | 43 |
| 45 private: | 44 private: |
| 46 void DoStart(rtc::Thread* worker_thread); | 45 void DoStart(rtc::Thread* worker_thread); |
| 47 void OnLocalSessionDescriptionCreated( | 46 void OnLocalSessionDescriptionCreated( |
| 48 scoped_ptr<webrtc::SessionDescriptionInterface> description, | 47 scoped_ptr<webrtc::SessionDescriptionInterface> description, |
| 49 const std::string& error); | 48 const std::string& error); |
| 50 void OnLocalDescriptionSet(bool success, const std::string& error); | 49 void OnLocalDescriptionSet(bool success, const std::string& error); |
| 51 void OnRemoteDescriptionSet(bool success, const std::string& error); | 50 void OnRemoteDescriptionSet(bool success, const std::string& error); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 117 |
| 119 base::Thread worker_thread_; | 118 base::Thread worker_thread_; |
| 120 | 119 |
| 121 DISALLOW_COPY_AND_ASSIGN(WebrtcTransportFactory); | 120 DISALLOW_COPY_AND_ASSIGN(WebrtcTransportFactory); |
| 122 }; | 121 }; |
| 123 | 122 |
| 124 } // namespace protocol | 123 } // namespace protocol |
| 125 } // namespace remoting | 124 } // namespace remoting |
| 126 | 125 |
| 127 #endif // REMOTING_PROTOCOL_WEBRTC_TRANSPORT_H_ | 126 #endif // REMOTING_PROTOCOL_WEBRTC_TRANSPORT_H_ |
| OLD | NEW |