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

Unified Diff: media/mojo/clients/mojo_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/mojo/clients/mojo_demuxer.cc ('k') | media/mojo/clients/mojo_demuxer_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/clients/mojo_demuxer_factory.h
diff --git a/media/mojo/clients/mojo_demuxer_factory.h b/media/mojo/clients/mojo_demuxer_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..5c6f86f3f6af0f3956fbc68947df5c2c8c46e566
--- /dev/null
+++ b/media/mojo/clients/mojo_demuxer_factory.h
@@ -0,0 +1,49 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_MOJO_CLIENTS_MOJO_DEMUXER_FACTORY_H_
+#define MEDIA_MOJO_CLIENTS_MOJO_DEMUXER_FACTORY_H_
+
+#include "media/base/demuxer_factory.h"
+
+namespace service_manager {
+namespace mojom {
+class InterfaceProvider;
+}
+}
+
+namespace media {
+
+// The Mojo factory class for creating remote Demuxers.
+class MojoDemuxerFactory : public DemuxerFactory {
+ public:
+ MojoDemuxerFactory(
+ service_manager::mojom::InterfaceProvider* interface_provider);
+ ~MojoDemuxerFactory() final;
+
+ std::unique_ptr<Demuxer> CreateDemuxer(
+ const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner,
+ const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
+ DataSource* data_source,
+ const Demuxer::EncryptedMediaInitDataCB& encrypted_media_init_data_cb,
+ const Demuxer::MediaTracksUpdatedCB& media_tracks_updated_cb) final;
+
+ std::unique_ptr<Demuxer> CreateDemuxerSourceBuffer(
+ const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner,
+ const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
+ const base::Closure& open_cb,
+ const Demuxer::EncryptedMediaInitDataCB& encrypted_media_init_data_cb,
+ media::SourceBuffer** source_buffer_out) final;
+
+ private:
+ static int32_t next_demuxer_id_;
+
+ service_manager::mojom::InterfaceProvider* interface_provider_;
+
+ DISALLOW_COPY_AND_ASSIGN(MojoDemuxerFactory);
+};
+
+} // namespace media
+
+#endif // MEDIA_MOJO_CLIENTS_MOJO_DEMUXER_FACTORY_H_
« no previous file with comments | « media/mojo/clients/mojo_demuxer.cc ('k') | media/mojo/clients/mojo_demuxer_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698