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

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: Implements MediaStreamVideoSource. 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
« no previous file with comments | « no previous file | content/renderer/media/media_stream_dependency_factory.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 (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 // The video source takes ownership of |capturer|.
124 virtual scoped_refptr<webrtc::VideoSourceInterface>
125 CreateVideoSource(
126 cricket::VideoCapturer* capturer,
127 const webrtc::MediaConstraintsInterface* constraints);
128
122 // Asks the libjingle PeerConnection factory to create a libjingle 129 // Asks the libjingle PeerConnection factory to create a libjingle
123 // PeerConnection object. 130 // PeerConnection object.
124 // The PeerConnection object is owned by PeerConnectionHandler. 131 // The PeerConnection object is owned by PeerConnectionHandler.
125 virtual scoped_refptr<webrtc::PeerConnectionInterface> 132 virtual scoped_refptr<webrtc::PeerConnectionInterface>
126 CreatePeerConnection( 133 CreatePeerConnection(
127 const webrtc::PeerConnectionInterface::IceServers& ice_servers, 134 const webrtc::PeerConnectionInterface::IceServers& ice_servers,
128 const webrtc::MediaConstraintsInterface* constraints, 135 const webrtc::MediaConstraintsInterface* constraints,
129 blink::WebFrame* web_frame, 136 blink::WebFrame* web_frame,
130 webrtc::PeerConnectionObserver* observer); 137 webrtc::PeerConnectionObserver* observer);
131 138
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 base::Thread chrome_worker_thread_; 271 base::Thread chrome_worker_thread_;
265 272
266 base::PlatformFile aec_dump_file_; 273 base::PlatformFile aec_dump_file_;
267 274
268 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory); 275 DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory);
269 }; 276 };
270 277
271 } // namespace content 278 } // namespace content
272 279
273 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ 280 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DEPENDENCY_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/media_stream_dependency_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698