Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Side by Side Diff: remoting/protocol/webrtc_transport.cc

Issue 1580823003: Implement client-side video stream support for WebRTC-based protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@packet_options_rem
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/protocol/webrtc_transport.h ('k') | remoting/protocol/webrtc_transport_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « remoting/protocol/webrtc_transport.h ('k') | remoting/protocol/webrtc_transport_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698