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

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

Issue 2643743002: Mojify demuxers and allow running {Chunk/FFmpeg}Demuxer in a Utility Process (Closed)
Patch Set: Rebase and make sure to unbind mojom::DemuxerPtr on the bound thread during termination Created 3 years, 10 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/BUILD.gn ('k') | media/base/demuxer_factory.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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // Remove |text_stream| from the presentation. 54 // Remove |text_stream| from the presentation.
55 virtual void RemoveTextStream(DemuxerStream* text_stream) = 0; 55 virtual void RemoveTextStream(DemuxerStream* text_stream) = 0;
56 56
57 protected: 57 protected:
58 virtual ~DemuxerHost(); 58 virtual ~DemuxerHost();
59 }; 59 };
60 60
61 class MEDIA_EXPORT Demuxer : public MediaResource { 61 class MEDIA_EXPORT Demuxer : public MediaResource {
62 public: 62 public:
63 enum LoadType {
64 LoadTypeURL = 0,
65 LoadTypeMediaSource = 1,
66 LoadTypeMediaStream = 2,
67 LoadTypeMax = LoadTypeMediaStream,
68 };
69
63 // A new potentially encrypted stream has been parsed. 70 // A new potentially encrypted stream has been parsed.
64 // First parameter - The type of initialization data. 71 // First parameter - The type of initialization data.
65 // Second parameter - The initialization data associated with the stream. 72 // Second parameter - The initialization data associated with the stream.
66 using EncryptedMediaInitDataCB = 73 using EncryptedMediaInitDataCB =
67 base::Callback<void(EmeInitDataType type, 74 base::Callback<void(EmeInitDataType type,
68 const std::vector<uint8_t>& init_data)>; 75 const std::vector<uint8_t>& init_data)>;
69 76
70 // Notifies demuxer clients that media track configuration has been updated 77 // Notifies demuxer clients that media track configuration has been updated
71 // (e.g. the initial stream metadata has been parsed successfully, or a new 78 // (e.g. the initial stream metadata has been parsed successfully, or a new
72 // init segment has been parsed successfully in MSE case). 79 // init segment has been parsed successfully in MSE case).
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 const std::vector<MediaTrack::Id>& track_ids, 157 const std::vector<MediaTrack::Id>& track_ids,
151 base::TimeDelta currTime) = 0; 158 base::TimeDelta currTime) = 0;
152 159
153 private: 160 private:
154 DISALLOW_COPY_AND_ASSIGN(Demuxer); 161 DISALLOW_COPY_AND_ASSIGN(Demuxer);
155 }; 162 };
156 163
157 } // namespace media 164 } // namespace media
158 165
159 #endif // MEDIA_BASE_DEMUXER_H_ 166 #endif // MEDIA_BASE_DEMUXER_H_
OLDNEW
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/demuxer_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698