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

Side by Side Diff: media/filters/chunk_demuxer.h

Issue 2272293002: Introducing DemuxerHost::OnMetadata. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « media/base/pipeline_impl.cc ('k') | media/filters/chunk_demuxer.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 #ifndef MEDIA_FILTERS_CHUNK_DEMUXER_H_ 5 #ifndef MEDIA_FILTERS_CHUNK_DEMUXER_H_
6 #define MEDIA_FILTERS_CHUNK_DEMUXER_H_ 6 #define MEDIA_FILTERS_CHUNK_DEMUXER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 PARSE_ERROR, 328 PARSE_ERROR,
329 SHUTDOWN, 329 SHUTDOWN,
330 }; 330 };
331 331
332 void ChangeState_Locked(State new_state); 332 void ChangeState_Locked(State new_state);
333 333
334 // Reports an error and puts the demuxer in a state where it won't accept more 334 // Reports an error and puts the demuxer in a state where it won't accept more
335 // data. 335 // data.
336 void ReportError_Locked(PipelineStatus error); 336 void ReportError_Locked(PipelineStatus error);
337 337
338 // Reports metadata to the host.
339 void ReportMetadata_Locked() const;
340
338 // Returns true if any stream has seeked to a time without buffered data. 341 // Returns true if any stream has seeked to a time without buffered data.
339 bool IsSeekWaitingForData_Locked() const; 342 bool IsSeekWaitingForData_Locked() const;
340 343
341 // Returns true if all streams can successfully call EndOfStream, 344 // Returns true if all streams can successfully call EndOfStream,
342 // false if any can not. 345 // false if any can not.
343 bool CanEndOfStream_Locked() const; 346 bool CanEndOfStream_Locked() const;
344 347
345 // MediaSourceState callbacks. 348 // MediaSourceState callbacks.
346 void OnSourceInitDone(const StreamParser::InitParameters& params); 349 void OnSourceInitDone(const StreamParser::InitParameters& params);
347 350
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 int detected_text_track_count_; 448 int detected_text_track_count_;
446 449
447 std::map<MediaTrack::Id, const DemuxerStream*> track_id_to_demux_stream_map_; 450 std::map<MediaTrack::Id, const DemuxerStream*> track_id_to_demux_stream_map_;
448 451
449 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); 452 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer);
450 }; 453 };
451 454
452 } // namespace media 455 } // namespace media
453 456
454 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ 457 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_
OLDNEW
« no previous file with comments | « media/base/pipeline_impl.cc ('k') | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698