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

Side by Side Diff: content/renderer/media/media_stream_dependency_factory.h

Issue 129923002: Implements MediaStreamVideoSource. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 // Creates and adds libjingle representation of a MediaStreamTrack to |stream| 115 // Creates and adds libjingle representation of a MediaStreamTrack to |stream|
116 // based on the desired |track_id| and |capturer|. 116 // based on the desired |track_id| and |capturer|.
117 bool AddNativeVideoMediaTrack(const std::string& track_id, 117 bool AddNativeVideoMediaTrack(const std::string& track_id,
118 blink::WebMediaStream* stream, 118 blink::WebMediaStream* stream,
119 cricket::VideoCapturer* capturer); 119 cricket::VideoCapturer* capturer);
120 120
121 bool RemoveNativeMediaStreamTrack(const blink::WebMediaStream& stream, 121 bool RemoveNativeMediaStreamTrack(const blink::WebMediaStream& stream,
122 const blink::WebMediaStreamTrack& track); 122 const blink::WebMediaStreamTrack& track);
123 123
124 // Asks the PeerConnection factory to create an empty WebMediaStreamTrack.
125 blink::WebMediaStreamTrack CreateMediaStreamVideoTrack(
126 const std::string& id);
127
128 // Asks the PeerConnection factory to create a Video Source.
129 scoped_refptr<webrtc::VideoSourceInterface>
130 CreateVideoSource(
131 cricket::VideoCapturer* capturer,
132 const blink::WebMediaConstraints& constraints);
133
124 // Asks the libjingle PeerConnection factory to create a libjingle 134 // Asks the libjingle PeerConnection factory to create a libjingle
125 // PeerConnection object. 135 // PeerConnection object.
126 // The PeerConnection object is owned by PeerConnectionHandler. 136 // The PeerConnection object is owned by PeerConnectionHandler.
127 virtual scoped_refptr<webrtc::PeerConnectionInterface> 137 virtual scoped_refptr<webrtc::PeerConnectionInterface>
128 CreatePeerConnection( 138 CreatePeerConnection(
129 const webrtc::PeerConnectionInterface::IceServers& ice_servers, 139 const webrtc::PeerConnectionInterface::IceServers& ice_servers,
130 const webrtc::MediaConstraintsInterface* constraints, 140 const webrtc::MediaConstraintsInterface* constraints,
131 blink::WebFrame* web_frame, 141 blink::WebFrame* web_frame,
132 webrtc::PeerConnectionObserver* observer); 142 webrtc::PeerConnectionObserver* observer);
133 143
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 base::Thread chrome_worker_thread_; 276 base::Thread chrome_worker_thread_;
267 277
268 base::PlatformFile aec_dump_file_; 278 base::PlatformFile aec_dump_file_;
269 279
270 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); 280 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory);
271 }; 281 };
272 282
273 } // namespace content 283 } // namespace content
274 284
275 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ 285 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698