[ServiceWorker] Implement WebServiceWorkerContextClient::openWindow().
[chromium-blink-merge.git] / content / renderer / media / media_renderer_service_provider.h
blob5da97278e7553dbbe4b9cf6c19f09965d8106e37
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"
12 namespace content {
14 class ServiceRegistry;
16 // ServiceRegistry based media::MojoRendererFactory::ServiceProvider
17 // implementation.
18 class CONTENT_EXPORT MediaRendererServiceProvider
19 : public media::MojoRendererFactory::ServiceProvider {
20 public:
21 explicit MediaRendererServiceProvider(ServiceRegistry* service_registry);
22 ~MediaRendererServiceProvider() final;
24 void ConnectToService(
25 mojo::InterfacePtr<mojo::MediaRenderer>* media_renderer_ptr) final;
27 private:
28 ServiceRegistry* service_registry_;
30 DISALLOW_COPY_AND_ASSIGN(MediaRendererServiceProvider);
33 } // namespace content
35 #endif // CONTENT_RENDERER_MEDIA_MEDIA_RENDERER_SERVICE_PROVIDER_H_