| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_MOJO_SERVICES_INTERFACE_FACTORY_IMPL_H_ | 5 #ifndef MEDIA_MOJO_SERVICES_INTERFACE_FACTORY_IMPL_H_ |
| 6 #define MEDIA_MOJO_SERVICES_INTERFACE_FACTORY_IMPL_H_ | 6 #define MEDIA_MOJO_SERVICES_INTERFACE_FACTORY_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "media/mojo/interfaces/interface_factory.mojom.h" | 11 #include "media/mojo/interfaces/interface_factory.mojom.h" |
| 12 #include "media/mojo/services/mojo_cdm_service_context.h" | 12 #include "media/mojo/services/mojo_cdm_service_context.h" |
| 13 #include "services/service_manager/public/cpp/connector.h" | 13 #include "services/service_manager/public/cpp/connector.h" |
| 14 #include "services/service_manager/public/cpp/service_context_ref.h" | 14 #include "services/service_manager/public/cpp/service_context_ref.h" |
| 15 | 15 |
| 16 namespace service_manager { | |
| 17 namespace mojom { | |
| 18 class InterfaceProvider; | |
| 19 } | |
| 20 } | |
| 21 | |
| 22 namespace media { | 16 namespace media { |
| 23 | 17 |
| 24 class CdmFactory; | 18 class CdmFactory; |
| 25 class MediaLog; | 19 class MediaLog; |
| 26 class MojoMediaClient; | 20 class MojoMediaClient; |
| 27 class RendererFactory; | 21 class RendererFactory; |
| 28 | 22 |
| 29 class InterfaceFactoryImpl : public mojom::InterfaceFactory { | 23 class InterfaceFactoryImpl : public mojom::InterfaceFactory { |
| 30 public: | 24 public: |
| 31 InterfaceFactoryImpl( | 25 InterfaceFactoryImpl( |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 scoped_refptr<MediaLog> media_log_; | 59 scoped_refptr<MediaLog> media_log_; |
| 66 std::unique_ptr<service_manager::ServiceContextRef> connection_ref_; | 60 std::unique_ptr<service_manager::ServiceContextRef> connection_ref_; |
| 67 MojoMediaClient* mojo_media_client_; | 61 MojoMediaClient* mojo_media_client_; |
| 68 | 62 |
| 69 DISALLOW_COPY_AND_ASSIGN(InterfaceFactoryImpl); | 63 DISALLOW_COPY_AND_ASSIGN(InterfaceFactoryImpl); |
| 70 }; | 64 }; |
| 71 | 65 |
| 72 } // namespace media | 66 } // namespace media |
| 73 | 67 |
| 74 #endif // MEDIA_MOJO_SERVICES_INTERFACE_FACTORY_IMPL_H_ | 68 #endif // MEDIA_MOJO_SERVICES_INTERFACE_FACTORY_IMPL_H_ |
| OLD | NEW |