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

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

Issue 155853002: Chrome MediaStream VideoTrack implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed whitespaces... Created 6 years, 9 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 // 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_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 ~UserMediaRequestInfo(); 139 ~UserMediaRequestInfo();
140 int request_id; 140 int request_id;
141 // True if MediaStreamDispatcher has generated the stream, see 141 // True if MediaStreamDispatcher has generated the stream, see
142 // OnStreamGenerated. 142 // OnStreamGenerated.
143 bool generated; 143 bool generated;
144 const bool enable_automatic_output_device_selection; 144 const bool enable_automatic_output_device_selection;
145 blink::WebFrame* frame; // WebFrame that requested the MediaStream. 145 blink::WebFrame* frame; // WebFrame that requested the MediaStream.
146 blink::WebMediaStream web_stream; 146 blink::WebMediaStream web_stream;
147 blink::WebUserMediaRequest request; 147 blink::WebUserMediaRequest request;
148 148
149 void StartTrack(const blink::WebMediaStreamTrack& track, 149 void StartAudioTrack(const blink::WebMediaStreamTrack& track,
150 const blink::WebMediaConstraints& constraints); 150 const blink::WebMediaConstraints& constraints);
151
152 blink::WebMediaStreamTrack CreateAndStartVideoTrack(
153 const blink::WebMediaStreamSource& source,
154 const blink::WebMediaConstraints& constraints,
155 MediaStreamDependencyFactory* factory);
151 156
152 // Triggers |callback| when all sources used in this request have either 157 // Triggers |callback| when all sources used in this request have either
153 // successfully started, or a source has failed to start. 158 // successfully started, or a source has failed to start.
154 void CallbackOnTracksStarted(const ResourcesReady& callback); 159 void CallbackOnTracksStarted(const ResourcesReady& callback);
155 160
156 bool IsSourceUsed(const blink::WebMediaStreamSource& source) const; 161 bool IsSourceUsed(const blink::WebMediaStreamSource& source) const;
157 void RemoveSource(const blink::WebMediaStreamSource& source); 162 void RemoveSource(const blink::WebMediaStreamSource& source);
158 163
159 bool AreAllSourcesRemoved() const { return sources_.empty(); }; 164 bool AreAllSourcesRemoved() const { return sources_.empty(); };
160 165
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 UserMediaRequests user_media_requests_; 261 UserMediaRequests user_media_requests_;
257 262
258 LocalStreamSources local_sources_; 263 LocalStreamSources local_sources_;
259 264
260 DISALLOW_COPY_AND_ASSIGN(MediaStreamImpl); 265 DISALLOW_COPY_AND_ASSIGN(MediaStreamImpl);
261 }; 266 };
262 267
263 } // namespace content 268 } // namespace content
264 269
265 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_ 270 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_dependency_factory_unittest.cc ('k') | content/renderer/media/media_stream_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698