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

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

Issue 827013005: Avoid double task trampoline for Pipeline state transitions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 5 years, 11 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 | « no previous file | media/base/pipeline.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_DEMUXER_H_ 5 #ifndef MEDIA_BASE_DEMUXER_H_
6 #define MEDIA_BASE_DEMUXER_H_ 6 #define MEDIA_BASE_DEMUXER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 typedef base::Callback<void(const std::string& type, 51 typedef base::Callback<void(const std::string& type,
52 const std::vector<uint8>& init_data)> 52 const std::vector<uint8>& init_data)>
53 EncryptedMediaInitDataCB; 53 EncryptedMediaInitDataCB;
54 54
55 Demuxer(); 55 Demuxer();
56 ~Demuxer() override; 56 ~Demuxer() override;
57 57
58 // Completes initialization of the demuxer. 58 // Completes initialization of the demuxer.
59 // 59 //
60 // The demuxer does not own |host| as it is guaranteed to outlive the 60 // The demuxer does not own |host| as it is guaranteed to outlive the
61 // lifetime of the demuxer. Don't delete it! 61 // lifetime of the demuxer. Don't delete it! |status_cb| must only be run
62 // after this method has returned.
62 virtual void Initialize(DemuxerHost* host, 63 virtual void Initialize(DemuxerHost* host,
63 const PipelineStatusCB& status_cb, 64 const PipelineStatusCB& status_cb,
64 bool enable_text_tracks) = 0; 65 bool enable_text_tracks) = 0;
65 66
66 // Carry out any actions required to seek to the given time, executing the 67 // Carry out any actions required to seek to the given time, executing the
67 // callback upon completion. 68 // callback upon completion.
68 virtual void Seek(base::TimeDelta time, 69 virtual void Seek(base::TimeDelta time,
69 const PipelineStatusCB& status_cb) = 0; 70 const PipelineStatusCB& status_cb) = 0;
70 71
71 // Stops this demuxer. 72 // Stops this demuxer.
(...skipping 10 matching lines...) Expand all
82 // a null Time is returned. 83 // a null Time is returned.
83 virtual base::Time GetTimelineOffset() const = 0; 84 virtual base::Time GetTimelineOffset() const = 0;
84 85
85 private: 86 private:
86 DISALLOW_COPY_AND_ASSIGN(Demuxer); 87 DISALLOW_COPY_AND_ASSIGN(Demuxer);
87 }; 88 };
88 89
89 } // namespace media 90 } // namespace media
90 91
91 #endif // MEDIA_BASE_DEMUXER_H_ 92 #endif // MEDIA_BASE_DEMUXER_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/pipeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698