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

Side by Side Diff: webkit/media/webmediaplayer_impl.h

Issue 10879056: Support setting an explicit duration on MediaSource objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: response to CR Created 8 years, 3 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
« no previous file with comments | « media/filters/source_buffer_stream_unittest.cc ('k') | webkit/media/webmediaplayer_impl.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 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. 5 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player.
6 // It contains Pipeline which is the actual media player pipeline, it glues 6 // It contains Pipeline which is the actual media player pipeline, it glues
7 // the media player pipeline, data source, audio renderer and renderer. 7 // the media player pipeline, data source, audio renderer and renderer.
8 // Pipeline would creates multiple threads and access some public methods 8 // Pipeline would creates multiple threads and access some public methods
9 // of this class, so we need to be extra careful about concurrent access of 9 // of this class, so we need to be extra careful about concurrent access of
10 // methods and members. 10 // methods and members.
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 virtual AddIdStatus sourceAddId( 191 virtual AddIdStatus sourceAddId(
192 const WebKit::WebString& id, 192 const WebKit::WebString& id,
193 const WebKit::WebString& type, 193 const WebKit::WebString& type,
194 const WebKit::WebVector<WebKit::WebString>& codecs); 194 const WebKit::WebVector<WebKit::WebString>& codecs);
195 virtual bool sourceRemoveId(const WebKit::WebString& id); 195 virtual bool sourceRemoveId(const WebKit::WebString& id);
196 virtual WebKit::WebTimeRanges sourceBuffered(const WebKit::WebString& id); 196 virtual WebKit::WebTimeRanges sourceBuffered(const WebKit::WebString& id);
197 virtual bool sourceAppend(const WebKit::WebString& id, 197 virtual bool sourceAppend(const WebKit::WebString& id,
198 const unsigned char* data, 198 const unsigned char* data,
199 unsigned length); 199 unsigned length);
200 virtual bool sourceAbort(const WebKit::WebString& id); 200 virtual bool sourceAbort(const WebKit::WebString& id);
201 virtual void sourceSetDuration(double new_duration);
201 virtual void sourceEndOfStream(EndOfStreamStatus status); 202 virtual void sourceEndOfStream(EndOfStreamStatus status);
202 virtual bool sourceSetTimestampOffset(const WebKit::WebString& id, 203 virtual bool sourceSetTimestampOffset(const WebKit::WebString& id,
203 double offset); 204 double offset);
204 205
205 virtual MediaKeyException generateKeyRequest( 206 virtual MediaKeyException generateKeyRequest(
206 const WebKit::WebString& key_system, 207 const WebKit::WebString& key_system,
207 const unsigned char* init_data, 208 const unsigned char* init_data,
208 unsigned init_data_length); 209 unsigned init_data_length);
209 210
210 virtual MediaKeyException addKey(const WebKit::WebString& key_system, 211 virtual MediaKeyException addKey(const WebKit::WebString& key_system,
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 ProxyDecryptor decryptor_; 344 ProxyDecryptor decryptor_;
344 345
345 bool starting_; 346 bool starting_;
346 347
347 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 348 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
348 }; 349 };
349 350
350 } // namespace webkit_media 351 } // namespace webkit_media
351 352
352 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ 353 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « media/filters/source_buffer_stream_unittest.cc ('k') | webkit/media/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698