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

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

Issue 2476063002: Service Manager: Rework Service and ServiceContext lifetime (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
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/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
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_
OLDNEW
« no previous file with comments | « services/ui/ws/window_tree_client_unittest.cc ('k') | services/video_capture/video_capture_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698