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

Side by Side Diff: Source/core/platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp

Issue 16753003: Revert "Remove MediaStreamDescriptor and call/use WebMediaStream directly" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 32
33 #include "core/platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.h" 33 #include "core/platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.h"
34 34
35 #include "core/platform/mediastream/MediaConstraints.h" 35 #include "core/platform/mediastream/MediaConstraints.h"
36 #include "core/platform/mediastream/MediaStreamComponent.h" 36 #include "core/platform/mediastream/MediaStreamComponent.h"
37 #include "core/platform/mediastream/MediaStreamSource.h"
38 #include "core/platform/mediastream/RTCConfiguration.h" 37 #include "core/platform/mediastream/RTCConfiguration.h"
39 #include "core/platform/mediastream/RTCDTMFSenderHandler.h" 38 #include "core/platform/mediastream/RTCDTMFSenderHandler.h"
40 #include "core/platform/mediastream/RTCPeerConnectionHandlerClient.h" 39 #include "core/platform/mediastream/RTCPeerConnectionHandlerClient.h"
41 #include "core/platform/mediastream/RTCSessionDescriptionRequest.h" 40 #include "core/platform/mediastream/RTCSessionDescriptionRequest.h"
42 #include "core/platform/mediastream/RTCStatsRequest.h" 41 #include "core/platform/mediastream/RTCStatsRequest.h"
43 #include "core/platform/mediastream/RTCVoidRequest.h" 42 #include "core/platform/mediastream/RTCVoidRequest.h"
44 #include "core/platform/mediastream/chromium/RTCDTMFSenderHandlerChromium.h" 43 #include "core/platform/mediastream/chromium/RTCDTMFSenderHandlerChromium.h"
45 #include "core/platform/mediastream/chromium/RTCDataChannelHandlerChromium.h" 44 #include "core/platform/mediastream/chromium/RTCDataChannelHandlerChromium.h"
46 #include "public/platform/Platform.h" 45 #include "public/platform/Platform.h"
47 #include "public/platform/WebMediaConstraints.h" 46 #include "public/platform/WebMediaConstraints.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 WebKit::WebRTCSessionDescription RTCPeerConnectionHandlerChromium::localDescript ion() 127 WebKit::WebRTCSessionDescription RTCPeerConnectionHandlerChromium::localDescript ion()
129 { 128 {
130 return m_webHandler->localDescription(); 129 return m_webHandler->localDescription();
131 } 130 }
132 131
133 WebKit::WebRTCSessionDescription RTCPeerConnectionHandlerChromium::remoteDescrip tion() 132 WebKit::WebRTCSessionDescription RTCPeerConnectionHandlerChromium::remoteDescrip tion()
134 { 133 {
135 return m_webHandler->remoteDescription(); 134 return m_webHandler->remoteDescription();
136 } 135 }
137 136
138 bool RTCPeerConnectionHandlerChromium::addStream(WebKit::WebMediaStream mediaStr eam, PassRefPtr<MediaConstraints> constraints) 137 bool RTCPeerConnectionHandlerChromium::addStream(PassRefPtr<MediaStreamDescripto r> mediaStream, PassRefPtr<MediaConstraints> constraints)
139 { 138 {
140 return m_webHandler->addStream(mediaStream, constraints); 139 return m_webHandler->addStream(mediaStream, constraints);
141 } 140 }
142 141
143 void RTCPeerConnectionHandlerChromium::removeStream(WebKit::WebMediaStream media Stream) 142 void RTCPeerConnectionHandlerChromium::removeStream(PassRefPtr<MediaStreamDescri ptor> mediaStream)
144 { 143 {
145 m_webHandler->removeStream(mediaStream); 144 m_webHandler->removeStream(mediaStream);
146 } 145 }
147 146
148 void RTCPeerConnectionHandlerChromium::getStats(PassRefPtr<RTCStatsRequest> requ est) 147 void RTCPeerConnectionHandlerChromium::getStats(PassRefPtr<RTCStatsRequest> requ est)
149 { 148 {
150 m_webHandler->getStats(request); 149 m_webHandler->getStats(request);
151 } 150 }
152 151
153 PassOwnPtr<RTCDataChannelHandler> RTCPeerConnectionHandlerChromium::createDataCh annel(const String& label, const WebKit::WebRTCDataChannelInit& init) 152 PassOwnPtr<RTCDataChannelHandler> RTCPeerConnectionHandlerChromium::createDataCh annel(const String& label, const WebKit::WebRTCDataChannelInit& init)
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 void RTCPeerConnectionHandlerChromium::didChangeICEGatheringState(WebKit::WebRTC PeerConnectionHandlerClient::ICEGatheringState state) 190 void RTCPeerConnectionHandlerChromium::didChangeICEGatheringState(WebKit::WebRTC PeerConnectionHandlerClient::ICEGatheringState state)
192 { 191 {
193 m_client->didChangeIceGatheringState(static_cast<RTCPeerConnectionHandlerCli ent::IceGatheringState>(state)); 192 m_client->didChangeIceGatheringState(static_cast<RTCPeerConnectionHandlerCli ent::IceGatheringState>(state));
194 } 193 }
195 194
196 void RTCPeerConnectionHandlerChromium::didChangeICEConnectionState(WebKit::WebRT CPeerConnectionHandlerClient::ICEConnectionState state) 195 void RTCPeerConnectionHandlerChromium::didChangeICEConnectionState(WebKit::WebRT CPeerConnectionHandlerClient::ICEConnectionState state)
197 { 196 {
198 m_client->didChangeIceConnectionState(static_cast<RTCPeerConnectionHandlerCl ient::IceConnectionState>(state)); 197 m_client->didChangeIceConnectionState(static_cast<RTCPeerConnectionHandlerCl ient::IceConnectionState>(state));
199 } 198 }
200 199
201 void RTCPeerConnectionHandlerChromium::didAddRemoteStream(const WebKit::WebMedia Stream& webMediaStream) 200 void RTCPeerConnectionHandlerChromium::didAddRemoteStream(const WebKit::WebMedia Stream& webMediaStreamDescriptor)
202 { 201 {
203 m_client->didAddRemoteStream(webMediaStream); 202 m_client->didAddRemoteStream(webMediaStreamDescriptor);
204 } 203 }
205 204
206 void RTCPeerConnectionHandlerChromium::didRemoveRemoteStream(const WebKit::WebMe diaStream& webMediaStream) 205 void RTCPeerConnectionHandlerChromium::didRemoveRemoteStream(const WebKit::WebMe diaStream& webMediaStreamDescriptor)
207 { 206 {
208 m_client->didRemoveRemoteStream(webMediaStream); 207 m_client->didRemoveRemoteStream(webMediaStreamDescriptor);
209 } 208 }
210 209
211 void RTCPeerConnectionHandlerChromium::didAddRemoteDataChannel(WebKit::WebRTCDat aChannelHandler* webHandler) 210 void RTCPeerConnectionHandlerChromium::didAddRemoteDataChannel(WebKit::WebRTCDat aChannelHandler* webHandler)
212 { 211 {
213 ASSERT(webHandler); 212 ASSERT(webHandler);
214 m_client->didAddRemoteDataChannel(RTCDataChannelHandlerChromium::create(webH andler)); 213 m_client->didAddRemoteDataChannel(RTCDataChannelHandlerChromium::create(webH andler));
215 } 214 }
216 215
217 } // namespace WebCore 216 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.h ('k') | Source/modules/mediastream/MediaStream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698