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

Unified Diff: media/mojo/services/utility_mojo_media_client.h

Issue 2643733002: Allow to use {FFmpeg/Vpx}VideoDecoder from a UtilityProcess (Closed)
Patch Set: Rebase 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/services/media_service_factory.cc ('k') | media/mojo/services/utility_mojo_media_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/utility_mojo_media_client.h
diff --git a/media/mojo/services/utility_mojo_media_client.h b/media/mojo/services/utility_mojo_media_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..ec8560186f085aa400427e13ccf41f36b80f9e2a
--- /dev/null
+++ b/media/mojo/services/utility_mojo_media_client.h
@@ -0,0 +1,37 @@
+// 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_SERVICES_UTILITY_MOJO_MEDIA_CLIENT_H_
+#define MEDIA_MOJO_SERVICES_UTILITY_MOJO_MEDIA_CLIENT_H_
+
+#include <memory>
+
+#include "media/mojo/services/mojo_media_client.h"
+
+namespace base {
+class SingleThreadTaskRunner;
+}
+
+namespace media {
+
+class VideoDecoder;
+
+// Default MojoMediaClient for MediaService.
+class UtilityMojoMediaClient : public MojoMediaClient {
+ public:
+ UtilityMojoMediaClient();
+ ~UtilityMojoMediaClient() final;
+
+ // MojoMediaClient implementation.
+ void Initialize(service_manager::Connector* connector) final;
+ std::unique_ptr<VideoDecoder> CreateVideoDecoder(
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner,
+ mojom::CommandBufferIdPtr command_buffer_id) final;
+
+ DISALLOW_COPY_AND_ASSIGN(UtilityMojoMediaClient);
+};
+
+} // namespace media
+
+#endif // MEDIA_MOJO_SERVICES_UTILITY_MOJO_MEDIA_CLIENT_H_
« no previous file with comments | « media/mojo/services/media_service_factory.cc ('k') | media/mojo/services/utility_mojo_media_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698