| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 event_handler_->OnWebrtcTransportError(error); | 341 event_handler_->OnWebrtcTransportError(error); |
| 342 } | 342 } |
| 343 | 343 |
| 344 void WebrtcTransport::OnSignalingChange( | 344 void WebrtcTransport::OnSignalingChange( |
| 345 webrtc::PeerConnectionInterface::SignalingState new_state) { | 345 webrtc::PeerConnectionInterface::SignalingState new_state) { |
| 346 DCHECK(thread_checker_.CalledOnValidThread()); | 346 DCHECK(thread_checker_.CalledOnValidThread()); |
| 347 } | 347 } |
| 348 | 348 |
| 349 void WebrtcTransport::OnAddStream(webrtc::MediaStreamInterface* stream) { | 349 void WebrtcTransport::OnAddStream(webrtc::MediaStreamInterface* stream) { |
| 350 DCHECK(thread_checker_.CalledOnValidThread()); | 350 DCHECK(thread_checker_.CalledOnValidThread()); |
| 351 LOG(ERROR) << "Stream added " << stream->label(); | 351 event_handler_->OnWebrtcTransportMediaStreamAdded(stream); |
| 352 } | 352 } |
| 353 | 353 |
| 354 void WebrtcTransport::OnRemoveStream(webrtc::MediaStreamInterface* stream) { | 354 void WebrtcTransport::OnRemoveStream(webrtc::MediaStreamInterface* stream) { |
| 355 DCHECK(thread_checker_.CalledOnValidThread()); | 355 DCHECK(thread_checker_.CalledOnValidThread()); |
| 356 LOG(ERROR) << "Stream removed " << stream->label(); | 356 event_handler_->OnWebrtcTransportMediaStreamRemoved(stream); |
| 357 } | 357 } |
| 358 | 358 |
| 359 void WebrtcTransport::OnDataChannel( | 359 void WebrtcTransport::OnDataChannel( |
| 360 webrtc::DataChannelInterface* data_channel) { | 360 webrtc::DataChannelInterface* data_channel) { |
| 361 DCHECK(thread_checker_.CalledOnValidThread()); | 361 DCHECK(thread_checker_.CalledOnValidThread()); |
| 362 incoming_data_stream_adapter_.OnIncomingDataChannel(data_channel); | 362 incoming_data_stream_adapter_.OnIncomingDataChannel(data_channel); |
| 363 } | 363 } |
| 364 | 364 |
| 365 void WebrtcTransport::OnRenegotiationNeeded() { | 365 void WebrtcTransport::OnRenegotiationNeeded() { |
| 366 DCHECK(thread_checker_.CalledOnValidThread()); | 366 DCHECK(thread_checker_.CalledOnValidThread()); |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 Close(INCOMPATIBLE_PROTOCOL); | 482 Close(INCOMPATIBLE_PROTOCOL); |
| 483 return; | 483 return; |
| 484 } | 484 } |
| 485 } | 485 } |
| 486 pending_incoming_candidates_.clear(); | 486 pending_incoming_candidates_.clear(); |
| 487 } | 487 } |
| 488 } | 488 } |
| 489 | 489 |
| 490 } // namespace protocol | 490 } // namespace protocol |
| 491 } // namespace remoting | 491 } // namespace remoting |
| OLD | NEW |