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

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

Issue 10803019: Chrome-side implementation of media source timestamp offset (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move logic from parser to demuxer Created 8 years, 5 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 // 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 const WebKit::WebVector<WebKit::WebString>& codecs); 193 const WebKit::WebVector<WebKit::WebString>& codecs);
194 virtual bool sourceRemoveId(const WebKit::WebString& id); 194 virtual bool sourceRemoveId(const WebKit::WebString& id);
195 virtual WebKit::WebTimeRanges sourceBuffered(const WebKit::WebString& id); 195 virtual WebKit::WebTimeRanges sourceBuffered(const WebKit::WebString& id);
196 // TODO(acolwell): Remove non-id version when http://webk.it/83788 fix lands. 196 // TODO(acolwell): Remove non-id version when http://webk.it/83788 fix lands.
197 virtual bool sourceAppend(const unsigned char* data, unsigned length); 197 virtual bool sourceAppend(const unsigned char* data, unsigned length);
198 virtual bool sourceAppend(const WebKit::WebString& id, 198 virtual bool sourceAppend(const WebKit::WebString& id,
199 const unsigned char* data, 199 const unsigned char* data,
200 unsigned length); 200 unsigned length);
201 virtual bool sourceAbort(const WebKit::WebString& id); 201 virtual bool sourceAbort(const WebKit::WebString& id);
202 virtual void sourceEndOfStream(EndOfStreamStatus status); 202 virtual void sourceEndOfStream(EndOfStreamStatus status);
203 virtual bool sourceTimestampOffset(const WebKit::WebString&, float);
203 204
204 virtual MediaKeyException generateKeyRequest( 205 virtual MediaKeyException generateKeyRequest(
205 const WebKit::WebString& key_system, 206 const WebKit::WebString& key_system,
206 const unsigned char* init_data, 207 const unsigned char* init_data,
207 unsigned init_data_length); 208 unsigned init_data_length);
208 209
209 virtual MediaKeyException addKey(const WebKit::WebString& key_system, 210 virtual MediaKeyException addKey(const WebKit::WebString& key_system,
210 const unsigned char* key, 211 const unsigned char* key,
211 unsigned key_length, 212 unsigned key_length,
212 const unsigned char* init_data, 213 const unsigned char* init_data,
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 345
345 // The decryptor that manages decryption keys and decrypts encrypted frames. 346 // The decryptor that manages decryption keys and decrypts encrypted frames.
346 ProxyDecryptor decryptor_; 347 ProxyDecryptor decryptor_;
347 348
348 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 349 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
349 }; 350 };
350 351
351 } // namespace webkit_media 352 } // namespace webkit_media
352 353
353 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ 354 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698