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

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

Issue 2435153004: Change Service contract to pass ServiceInfo instead of Identity (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_service.h ('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 #include "services/video_capture/video_capture_service.h" 5 #include "services/video_capture/video_capture_service.h"
6 6
7 #include "media/capture/video/fake_video_capture_device.h" 7 #include "media/capture/video/fake_video_capture_device.h"
8 #include "media/capture/video/video_capture_jpeg_decoder.h" 8 #include "media/capture/video/video_capture_jpeg_decoder.h"
9 #include "services/video_capture/video_capture_device_factory_impl.h" 9 #include "services/video_capture/video_capture_device_factory_impl.h"
10 10
(...skipping 11 matching lines...) Expand all
22 22
23 } // anonymous namespace 23 } // anonymous namespace
24 24
25 namespace video_capture { 25 namespace video_capture {
26 26
27 VideoCaptureService::VideoCaptureService() = default; 27 VideoCaptureService::VideoCaptureService() = default;
28 28
29 VideoCaptureService::~VideoCaptureService() = default; 29 VideoCaptureService::~VideoCaptureService() = default;
30 30
31 bool VideoCaptureService::OnConnect( 31 bool VideoCaptureService::OnConnect(
32 const service_manager::Identity& remote_identity, 32 const service_manager::ServiceInfo& remote_info,
33 service_manager::InterfaceRegistry* registry) { 33 service_manager::InterfaceRegistry* registry) {
34 registry->AddInterface<mojom::VideoCaptureService>(this); 34 registry->AddInterface<mojom::VideoCaptureService>(this);
35 return true; 35 return true;
36 } 36 }
37 37
38 void VideoCaptureService::Create( 38 void VideoCaptureService::Create(
39 const service_manager::Identity& remote_identity, 39 const service_manager::Identity& remote_identity,
40 mojom::VideoCaptureServiceRequest request) { 40 mojom::VideoCaptureServiceRequest request) {
41 service_bindings_.AddBinding(this, std::move(request)); 41 service_bindings_.AddBinding(this, std::move(request));
42 } 42 }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 } 97 }
98 98
99 void VideoCaptureService::LazyInitializeMockDeviceFactory() { 99 void VideoCaptureService::LazyInitializeMockDeviceFactory() {
100 if (mock_device_factory_) 100 if (mock_device_factory_)
101 return; 101 return;
102 mock_device_factory_ = base::MakeUnique<VideoCaptureDeviceFactoryImpl>( 102 mock_device_factory_ = base::MakeUnique<VideoCaptureDeviceFactoryImpl>(
103 base::Bind(CreateJpegDecoder)); 103 base::Bind(CreateJpegDecoder));
104 } 104 }
105 105
106 } // namespace video_capture 106 } // namespace video_capture
OLDNEW
« no previous file with comments | « services/video_capture/video_capture_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698