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

Side by Side Diff: media/base/stream_parser.h

Issue 2815303006: Convert MediaLog from being ref counted to owned by WebMediaPlayer. (Closed)
Patch Set: Rebase. Created 3 years, 8 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 | « media/base/pipeline_impl_unittest.cc ('k') | media/blink/multibuffer_data_source.h » ('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 MEDIA_BASE_STREAM_PARSER_H_ 5 #ifndef MEDIA_BASE_STREAM_PARSER_H_
6 #define MEDIA_BASE_STREAM_PARSER_H_ 6 #define MEDIA_BASE_STREAM_PARSER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // start time, and duration. If |ignore_text_track| is true, then no text 121 // start time, and duration. If |ignore_text_track| is true, then no text
122 // buffers should be passed later by the parser to |new_buffers_cb|. 122 // buffers should be passed later by the parser to |new_buffers_cb|.
123 virtual void Init( 123 virtual void Init(
124 const InitCB& init_cb, 124 const InitCB& init_cb,
125 const NewConfigCB& config_cb, 125 const NewConfigCB& config_cb,
126 const NewBuffersCB& new_buffers_cb, 126 const NewBuffersCB& new_buffers_cb,
127 bool ignore_text_track, 127 bool ignore_text_track,
128 const EncryptedMediaInitDataCB& encrypted_media_init_data_cb, 128 const EncryptedMediaInitDataCB& encrypted_media_init_data_cb,
129 const NewMediaSegmentCB& new_segment_cb, 129 const NewMediaSegmentCB& new_segment_cb,
130 const EndMediaSegmentCB& end_of_segment_cb, 130 const EndMediaSegmentCB& end_of_segment_cb,
131 const scoped_refptr<MediaLog>& media_log) = 0; 131 MediaLog* media_log) = 0;
132 132
133 // Called during the reset parser state algorithm. This flushes the current 133 // Called during the reset parser state algorithm. This flushes the current
134 // parser and puts the parser in a state where it can receive data. This 134 // parser and puts the parser in a state where it can receive data. This
135 // method does not need to invoke the EndMediaSegmentCB since the parser reset 135 // method does not need to invoke the EndMediaSegmentCB since the parser reset
136 // algorithm already resets the segment parsing state. 136 // algorithm already resets the segment parsing state.
137 virtual void Flush() = 0; 137 virtual void Flush() = 0;
138 138
139 // Called when there is new data to parse. 139 // Called when there is new data to parse.
140 // 140 //
141 // Returns true if the parse succeeds. 141 // Returns true if the parse succeeds.
(...skipping 13 matching lines...) Expand all
155 // in |merged_buffers| in this case. Returns true on success. 155 // in |merged_buffers| in this case. Returns true on success.
156 // No validation of media type within the various buffer queues is done here. 156 // No validation of media type within the various buffer queues is done here.
157 // TODO(wolenetz/acolwell): Merge incrementally in parsers to eliminate 157 // TODO(wolenetz/acolwell): Merge incrementally in parsers to eliminate
158 // subtle issues with tie-breaking. See http://crbug.com/338484. 158 // subtle issues with tie-breaking. See http://crbug.com/338484.
159 MEDIA_EXPORT bool MergeBufferQueues(const StreamParser::BufferQueueMap& buffers, 159 MEDIA_EXPORT bool MergeBufferQueues(const StreamParser::BufferQueueMap& buffers,
160 StreamParser::BufferQueue* merged_buffers); 160 StreamParser::BufferQueue* merged_buffers);
161 161
162 } // namespace media 162 } // namespace media
163 163
164 #endif // MEDIA_BASE_STREAM_PARSER_H_ 164 #endif // MEDIA_BASE_STREAM_PARSER_H_
OLDNEW
« no previous file with comments | « media/base/pipeline_impl_unittest.cc ('k') | media/blink/multibuffer_data_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698