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

Unified Diff: media/base/stream_parser.h

Issue 20123002: Add Chromium-side support for SourceBuffer.appendWindowStart and SourceBuffer.appendWindowEnd. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and remove URL in comment to make presubmit happy. Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/media/websourcebuffer_impl.cc ('k') | media/filters/chunk_demuxer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/stream_parser.h
diff --git a/media/base/stream_parser.h b/media/base/stream_parser.h
index dfa4db9d28690c9daad0973a9c41c25f1cc34d0b..a0fbb71a9243c12cef9b54fab39ee3a8506abcf8 100644
--- a/media/base/stream_parser.h
+++ b/media/base/stream_parser.h
@@ -50,11 +50,13 @@ class MEDIA_EXPORT StreamParser {
const VideoDecoderConfig&)> NewConfigCB;
// New stream buffers have been parsed.
- // First parameter - A queue of newly parsed buffers.
+ // First parameter - A queue of newly parsed audio buffers.
+ // Second parameter - A queue of newly parsed video buffers.
// Return value - True indicates that the buffers are accepted.
// False if something was wrong with the buffers and a parsing
// error should be signalled.
- typedef base::Callback<bool(const BufferQueue&)> NewBuffersCB;
+ typedef base::Callback<bool(const BufferQueue&,
+ const BufferQueue&)> NewBuffersCB;
// New stream buffers of inband text have been parsed.
// First parameter - The text track to which these cues will be added.
@@ -65,8 +67,7 @@ class MEDIA_EXPORT StreamParser {
typedef base::Callback<bool(TextTrack*, const BufferQueue&)> NewTextBuffersCB;
// Signals the beginning of a new media segment.
- // First parameter - The earliest timestamp of all the streams in the segment.
- typedef base::Callback<void(base::TimeDelta)> NewMediaSegmentCB;
+ typedef base::Callback<void()> NewMediaSegmentCB;
// A new potentially encrypted stream has been parsed.
// First parameter - The type of the initialization data associated with the
@@ -82,8 +83,7 @@ class MEDIA_EXPORT StreamParser {
// start time, and duration.
virtual void Init(const InitCB& init_cb,
const NewConfigCB& config_cb,
- const NewBuffersCB& audio_cb,
- const NewBuffersCB& video_cb,
+ const NewBuffersCB& new_buffers_cb,
const NewTextBuffersCB& text_cb,
const NeedKeyCB& need_key_cb,
const AddTextTrackCB& add_text_track_cb,
« no previous file with comments | « content/renderer/media/websourcebuffer_impl.cc ('k') | media/filters/chunk_demuxer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698