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

Unified Diff: content/renderer/media/media_interface_provider.cc

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 | « content/common/memory_messages.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_interface_provider.cc
diff --git a/content/renderer/media/media_interface_provider.cc b/content/renderer/media/media_interface_provider.cc
index 8f779f5bf39dddd7a374c9949ee9788350077769..cb320710a5b687cc8258e1f72deebafdd6c5d415 100644
--- a/content/renderer/media/media_interface_provider.cc
+++ b/content/renderer/media/media_interface_provider.cc
@@ -8,6 +8,7 @@
#include "base/bind.h"
#include "media/mojo/interfaces/content_decryption_module.mojom.h"
+#include "media/mojo/interfaces/demuxer.mojom.h"
#include "media/mojo/interfaces/renderer.mojom.h"
#include "mojo/public/cpp/bindings/interface_request.h"
#include "services/service_manager/public/cpp/interface_provider.h"
@@ -41,6 +42,12 @@ void MediaInterfaceProvider::GetInterface(const std::string& interface_name,
} else if (interface_name == media::mojom::VideoDecoder::Name_) {
GetMediaInterfaceFactory()->CreateVideoDecoder(
mojo::MakeRequest<media::mojom::VideoDecoder>(std::move(pipe)));
+ } else if (interface_name == media::mojom::Demuxer::Name_) {
+ GetMediaInterfaceFactory()->CreateDemuxer(
+ mojo::MakeRequest<media::mojom::Demuxer>(std::move(pipe)));
+ } else if (interface_name == media::mojom::SourceBuffer::Name_) {
+ GetMediaInterfaceFactory()->CreateSourceBuffer(
+ mojo::MakeRequest<media::mojom::SourceBuffer>(std::move(pipe)));
} else {
NOTREACHED();
}
« no previous file with comments | « content/common/memory_messages.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698