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

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

Issue 783003002: Introduce media::RendererFactory interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 6 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
« no previous file with comments | « media/mojo/services/BUILD.gn ('k') | media/mojo/services/mojo_renderer_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_renderer_factory.h
diff --git a/media/mojo/services/mojo_renderer_factory.h b/media/mojo/services/mojo_renderer_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..3290b74ca0df5cac495e47e2abc863dc21ea6d71
--- /dev/null
+++ b/media/mojo/services/mojo_renderer_factory.h
@@ -0,0 +1,32 @@
+// Copyright 2014 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_MOJO_RENDERER_FACTORY_H_
+#define MEDIA_MOJO_SERVICES_MOJO_RENDERER_FACTORY_H_
+
+#include "media/base/media_export.h"
+#include "media/base/renderer_factory.h"
+#include "mojo/public/interfaces/application/service_provider.mojom.h"
+
+namespace media {
+
+// The default factory class for creating MojoRendererImpl.
+class MEDIA_EXPORT MojoRendererFactory : public RendererFactory {
+ public:
+ MojoRendererFactory(mojo::ServiceProviderPtr renderer_service_provider);
+ ~MojoRendererFactory() final;
+
+ scoped_ptr<Renderer> CreateRenderer(
+ const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
+ AudioRendererSink* audio_renderer_sink) final;
+
+ private:
+ mojo::ServiceProviderPtr renderer_service_provider_;
+
+ DISALLOW_COPY_AND_ASSIGN(MojoRendererFactory);
+};
+
+} // namespace media
+
+#endif // MEDIA_MOJO_SERVICES_MOJO_RENDERER_FACTORY_H_
« no previous file with comments | « media/mojo/services/BUILD.gn ('k') | media/mojo/services/mojo_renderer_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698