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/service.h" | 11 #include "services/service_manager/public/cpp/service.h" |
12 #include "services/video_capture/public/interfaces/video_capture_service.mojom.h
" | 12 #include "services/video_capture/public/interfaces/video_capture_service.mojom.h
" |
13 | 13 |
14 namespace video_capture { | 14 namespace video_capture { |
15 | 15 |
16 class VideoCaptureDeviceFactoryImpl; | 16 class VideoCaptureDeviceFactoryImpl; |
17 class FakeVideoCaptureDeviceFactoryConfiguratorImpl; | |
18 | 17 |
19 // Implementation of mojom::VideoCaptureService as a Service Manager service. | 18 // Implementation of mojom::VideoCaptureService as a Service Manager service. |
20 class VideoCaptureService | 19 class VideoCaptureService |
21 : public service_manager::Service, | 20 : public service_manager::Service, |
22 public service_manager::InterfaceFactory<mojom::VideoCaptureService>, | 21 public service_manager::InterfaceFactory<mojom::VideoCaptureService>, |
23 public mojom::VideoCaptureService { | 22 public mojom::VideoCaptureService { |
24 public: | 23 public: |
25 VideoCaptureService(); | 24 VideoCaptureService(); |
26 ~VideoCaptureService() override; | 25 ~VideoCaptureService() override; |
27 | 26 |
(...skipping 27 matching lines...) Expand all Loading... |
55 mojo::BindingSet<mojom::VideoCaptureDeviceFactory> fake_factory_bindings_; | 54 mojo::BindingSet<mojom::VideoCaptureDeviceFactory> fake_factory_bindings_; |
56 mojo::BindingSet<mojom::VideoCaptureDeviceFactory> mock_factory_bindings_; | 55 mojo::BindingSet<mojom::VideoCaptureDeviceFactory> mock_factory_bindings_; |
57 std::unique_ptr<VideoCaptureDeviceFactoryImpl> device_factory_; | 56 std::unique_ptr<VideoCaptureDeviceFactoryImpl> device_factory_; |
58 std::unique_ptr<VideoCaptureDeviceFactoryImpl> fake_device_factory_; | 57 std::unique_ptr<VideoCaptureDeviceFactoryImpl> fake_device_factory_; |
59 std::unique_ptr<VideoCaptureDeviceFactoryImpl> mock_device_factory_; | 58 std::unique_ptr<VideoCaptureDeviceFactoryImpl> mock_device_factory_; |
60 }; | 59 }; |
61 | 60 |
62 } // namespace video_capture | 61 } // namespace video_capture |
63 | 62 |
64 #endif // SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_SERVICE_H_ | 63 #endif // SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_SERVICE_H_ |
OLD | NEW |