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

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

Issue 2115603002: Use FFmpegVideoDecoder from a UtilityProcess (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build error on win Created 4 years 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
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..bf1992a5e1cd96320b9e689f45aead93cd5cd417
--- /dev/null
+++ b/media/mojo/services/utility_mojo_media_client.h
@@ -0,0 +1,36 @@
+// Copyright 2016 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() final;
+ std::unique_ptr<VideoDecoder> CreateVideoDecoder(
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner) final;
+
+ DISALLOW_COPY_AND_ASSIGN(UtilityMojoMediaClient);
+};
+
+} // namespace media
+
+#endif // MEDIA_MOJO_SERVICES_UTILITY_MOJO_MEDIA_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698