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

Side by Side Diff: remoting/protocol/webrtc_connection_to_client.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
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_connection_to_client.h" 5 #include "remoting/protocol/webrtc_connection_to_client.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 void WebrtcConnectionToClient::OnWebrtcTransportConnected() { 150 void WebrtcConnectionToClient::OnWebrtcTransportConnected() {
151 DCHECK(thread_checker_.CalledOnValidThread()); 151 DCHECK(thread_checker_.CalledOnValidThread());
152 event_handler_->OnConnectionChannelsConnected(this); 152 event_handler_->OnConnectionChannelsConnected(this);
153 } 153 }
154 154
155 void WebrtcConnectionToClient::OnWebrtcTransportError(ErrorCode error) { 155 void WebrtcConnectionToClient::OnWebrtcTransportError(ErrorCode error) {
156 DCHECK(thread_checker_.CalledOnValidThread()); 156 DCHECK(thread_checker_.CalledOnValidThread());
157 Disconnect(error); 157 Disconnect(error);
158 } 158 }
159 159
160 void WebrtcConnectionToClient::OnWebrtcTransportMediaStreamAdded(
161 scoped_refptr<webrtc::MediaStreamInterface> stream) {
162 LOG(WARNING) << "The client created an unexpected media stream.";
163 }
164
165 void WebrtcConnectionToClient::OnWebrtcTransportMediaStreamRemoved(
166 scoped_refptr<webrtc::MediaStreamInterface> stream) {}
167
160 void WebrtcConnectionToClient::OnChannelInitialized( 168 void WebrtcConnectionToClient::OnChannelInitialized(
161 ChannelDispatcherBase* channel_dispatcher) { 169 ChannelDispatcherBase* channel_dispatcher) {
162 DCHECK(thread_checker_.CalledOnValidThread()); 170 DCHECK(thread_checker_.CalledOnValidThread());
163 } 171 }
164 172
165 void WebrtcConnectionToClient::OnChannelError( 173 void WebrtcConnectionToClient::OnChannelError(
166 ChannelDispatcherBase* channel_dispatcher, 174 ChannelDispatcherBase* channel_dispatcher,
167 ErrorCode error) { 175 ErrorCode error) {
168 DCHECK(thread_checker_.CalledOnValidThread()); 176 DCHECK(thread_checker_.CalledOnValidThread());
169 177
170 LOG(ERROR) << "Failed to connect channel " 178 LOG(ERROR) << "Failed to connect channel "
171 << channel_dispatcher->channel_name(); 179 << channel_dispatcher->channel_name();
172 Disconnect(error); 180 Disconnect(error);
173 } 181 }
174 182
175 } // namespace protocol 183 } // namespace protocol
176 } // namespace remoting 184 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/webrtc_connection_to_client.h ('k') | remoting/protocol/webrtc_connection_to_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698