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

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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 // Creates and adds libjingle representation of a MediaStreamTrack to |stream| 113 // Creates and adds libjingle representation of a MediaStreamTrack to |stream|
114 // based on the desired |track_id| and |capturer|. 114 // based on the desired |track_id| and |capturer|.
115 bool AddNativeVideoMediaTrack(const std::string& track_id, 115 bool AddNativeVideoMediaTrack(const std::string& track_id,
116 blink::WebMediaStream* stream, 116 blink::WebMediaStream* stream,
117 cricket::VideoCapturer* capturer); 117 cricket::VideoCapturer* capturer);
118 118
119 bool RemoveNativeMediaStreamTrack(const blink::WebMediaStream& stream, 119 bool RemoveNativeMediaStreamTrack(const blink::WebMediaStream& stream,
120 const blink::WebMediaStreamTrack& track); 120 const blink::WebMediaStreamTrack& track);
121 121
122 // Asks the PeerConnection factory to create a Video Source.
123 virtual scoped_refptr<webrtc::VideoSourceInterface>
124 CreateVideoSource(
125 cricket::VideoCapturer* capturer,
126 const webrtc::MediaConstraintsInterface* constraints);
127
122 // Asks the libjingle PeerConnection factory to create a libjingle 128 // Asks the libjingle PeerConnection factory to create a libjingle
123 // PeerConnection object. 129 // PeerConnection object.
124 // The PeerConnection object is owned by PeerConnectionHandler. 130 // The PeerConnection object is owned by PeerConnectionHandler.
125 virtual scoped_refptr<webrtc::PeerConnectionInterface> 131 virtual scoped_refptr<webrtc::PeerConnectionInterface>
126 CreatePeerConnection( 132 CreatePeerConnection(
127 const webrtc::PeerConnectionInterface::IceServers& ice_servers, 133 const webrtc::PeerConnectionInterface::IceServers& ice_servers,
128 const webrtc::MediaConstraintsInterface* constraints, 134 const webrtc::MediaConstraintsInterface* constraints,
129 blink::WebFrame* web_frame, 135 blink::WebFrame* web_frame,
130 webrtc::PeerConnectionObserver* observer); 136 webrtc::PeerConnectionObserver* observer);
131 137
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 base::Thread chrome_worker_thread_; 269 base::Thread chrome_worker_thread_;
264 270
265 base::PlatformFile aec_dump_file_; 271 base::PlatformFile aec_dump_file_;
266 272
267 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); 273 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory);
268 }; 274 };
269 275
270 } // namespace content 276 } // namespace content
271 277
272 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ 278 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698