Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(765)

Side by Side Diff: services/video_capture/video_capture_service.h

Issue 2457003002: [Mojo Video Capture] Simplify API and some cleanups (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/video_capture/video_capture_device_proxy_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « services/video_capture/video_capture_device_proxy_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698