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_ |