1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_RENDERER_SERVICE_PROVIDER_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_RENDERER_SERVICE_PROVIDER_H_
8 #include "base/macros.h"
9 #include "content/common/content_export.h"
10 #include "media/mojo/services/mojo_renderer_factory.h"
14 class ServiceRegistry
;
16 // ServiceRegistry based media::MojoRendererFactory::ServiceProvider
18 class CONTENT_EXPORT MediaRendererServiceProvider
19 : public media::MojoRendererFactory::ServiceProvider
{
21 explicit MediaRendererServiceProvider(ServiceRegistry
* service_registry
);
22 ~MediaRendererServiceProvider() final
;
24 void ConnectToService(
25 mojo::InterfacePtr
<mojo::MediaRenderer
>* media_renderer_ptr
) final
;
28 ServiceRegistry
* service_registry_
;
30 DISALLOW_COPY_AND_ASSIGN(MediaRendererServiceProvider
);
33 } // namespace content
35 #endif // CONTENT_RENDERER_MEDIA_MEDIA_RENDERER_SERVICE_PROVIDER_H_