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

Side by Side Diff: media/base/demuxer_factory.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/demuxer.h ('k') | media/base/demuxer_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_BASE_DEMUXER_FACTORY_H_
6 #define MEDIA_BASE_DEMUXER_FACTORY_H_
7
8 #include <memory>
9
10 #include "base/callback.h"
11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h"
13 #include "media/base/demuxer.h"
14 #include "media/base/media_export.h"
15 #include "media/base/source_buffer.h"
16
17 namespace base {
18 class SingleThreadTaskRunner;
19 }
20
21 namespace media {
22
23 // A factory class for creating media::Demuxer to be used by media pipeline.
24 class MEDIA_EXPORT DemuxerFactory {
25 public:
26 DemuxerFactory();
27 virtual ~DemuxerFactory();
28
29 virtual std::unique_ptr<Demuxer> CreateDemuxer(
30 const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner,
31 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
32 DataSource* data_source,
33 const Demuxer::EncryptedMediaInitDataCB& encrypted_media_init_data_cb,
34 const Demuxer::MediaTracksUpdatedCB& media_tracks_updated_cb) = 0;
35
36 virtual std::unique_ptr<Demuxer> CreateDemuxerSourceBuffer(
37 const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner,
38 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
39 const base::Closure& open_cb,
40 const Demuxer::EncryptedMediaInitDataCB& encrypted_media_init_data_cb,
41 media::SourceBuffer** source_buffer_out) = 0;
42
43 private:
44 DISALLOW_COPY_AND_ASSIGN(DemuxerFactory);
45 };
46
47 } // namespace media
48
49 #endif // MEDIA_BASE_DEMUXER_FACTORY_H_
OLDNEW
« no previous file with comments | « media/base/demuxer.h ('k') | media/base/demuxer_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698