| 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 #include "remoting/protocol/webrtc_transport.h" | 5 #include "remoting/protocol/webrtc_transport.h" |
| 6 | 6 |
| 7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
| 8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/task_runner_util.h" | 10 #include "base/task_runner_util.h" |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 return false; | 210 return false; |
| 211 } | 211 } |
| 212 } else { | 212 } else { |
| 213 pending_incoming_candidates_.push_back(candidate.Pass()); | 213 pending_incoming_candidates_.push_back(candidate.Pass()); |
| 214 } | 214 } |
| 215 } | 215 } |
| 216 | 216 |
| 217 return true; | 217 return true; |
| 218 } | 218 } |
| 219 | 219 |
| 220 DatagramChannelFactory* WebrtcTransport::GetDatagramChannelFactory() { | |
| 221 DCHECK(thread_checker_.CalledOnValidThread()); | |
| 222 NOTIMPLEMENTED(); | |
| 223 return nullptr; | |
| 224 } | |
| 225 | |
| 226 StreamChannelFactory* WebrtcTransport::GetStreamChannelFactory() { | 220 StreamChannelFactory* WebrtcTransport::GetStreamChannelFactory() { |
| 227 DCHECK(thread_checker_.CalledOnValidThread()); | 221 DCHECK(thread_checker_.CalledOnValidThread()); |
| 228 return &data_stream_adapter_; | 222 return &data_stream_adapter_; |
| 229 } | 223 } |
| 230 | 224 |
| 231 StreamChannelFactory* WebrtcTransport::GetMultiplexedChannelFactory() { | 225 StreamChannelFactory* WebrtcTransport::GetMultiplexedChannelFactory() { |
| 232 DCHECK(thread_checker_.CalledOnValidThread()); | 226 DCHECK(thread_checker_.CalledOnValidThread()); |
| 233 return GetStreamChannelFactory(); | 227 return GetStreamChannelFactory(); |
| 234 } | 228 } |
| 235 | 229 |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 | 486 |
| 493 WebrtcTransportFactory::~WebrtcTransportFactory() {} | 487 WebrtcTransportFactory::~WebrtcTransportFactory() {} |
| 494 | 488 |
| 495 scoped_ptr<Transport> WebrtcTransportFactory::CreateTransport() { | 489 scoped_ptr<Transport> WebrtcTransportFactory::CreateTransport() { |
| 496 return make_scoped_ptr(new WebrtcTransport(port_allocator_factory_, role_, | 490 return make_scoped_ptr(new WebrtcTransport(port_allocator_factory_, role_, |
| 497 worker_thread_.task_runner())); | 491 worker_thread_.task_runner())); |
| 498 } | 492 } |
| 499 | 493 |
| 500 } // namespace protocol | 494 } // namespace protocol |
| 501 } // namespace remoting | 495 } // namespace remoting |
| OLD | NEW |