| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_SERVICE_H_ | 5 #ifndef SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_SERVICE_H_ |
| 6 #define SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_SERVICE_H_ | 6 #define SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_SERVICE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "mojo/public/cpp/bindings/binding_set.h" | 10 #include "mojo/public/cpp/bindings/binding_set.h" |
| 11 #include "services/service_manager/public/cpp/interface_factory.h" |
| 11 #include "services/service_manager/public/cpp/service.h" | 12 #include "services/service_manager/public/cpp/service.h" |
| 12 #include "services/video_capture/public/interfaces/video_capture_service.mojom.h
" | 13 #include "services/video_capture/public/interfaces/video_capture_service.mojom.h
" |
| 13 | 14 |
| 14 namespace video_capture { | 15 namespace video_capture { |
| 15 | 16 |
| 16 class VideoCaptureDeviceFactoryImpl; | 17 class VideoCaptureDeviceFactoryImpl; |
| 17 | 18 |
| 18 // Implementation of mojom::VideoCaptureService as a Service Manager service. | 19 // Implementation of mojom::VideoCaptureService as a Service Manager service. |
| 19 class VideoCaptureService | 20 class VideoCaptureService |
| 20 : public service_manager::Service, | 21 : public service_manager::Service, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 mojo::BindingSet<mojom::VideoCaptureDeviceFactory> fake_factory_bindings_; | 55 mojo::BindingSet<mojom::VideoCaptureDeviceFactory> fake_factory_bindings_; |
| 55 mojo::BindingSet<mojom::VideoCaptureDeviceFactory> mock_factory_bindings_; | 56 mojo::BindingSet<mojom::VideoCaptureDeviceFactory> mock_factory_bindings_; |
| 56 std::unique_ptr<VideoCaptureDeviceFactoryImpl> device_factory_; | 57 std::unique_ptr<VideoCaptureDeviceFactoryImpl> device_factory_; |
| 57 std::unique_ptr<VideoCaptureDeviceFactoryImpl> fake_device_factory_; | 58 std::unique_ptr<VideoCaptureDeviceFactoryImpl> fake_device_factory_; |
| 58 std::unique_ptr<VideoCaptureDeviceFactoryImpl> mock_device_factory_; | 59 std::unique_ptr<VideoCaptureDeviceFactoryImpl> mock_device_factory_; |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 } // namespace video_capture | 62 } // namespace video_capture |
| 62 | 63 |
| 63 #endif // SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_SERVICE_H_ | 64 #endif // SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_SERVICE_H_ |
| OLD | NEW |