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

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

Issue 2850743004: Replace ServiceInfo with BindSourceInfo. (Closed)
Patch Set: . Created 3 years, 7 months 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/ui/ws/window_tree_client_unittest.cc ('k') | services/video_capture/service_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/device_factory_provider_impl.h" 5 #include "services/video_capture/device_factory_provider_impl.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "media/capture/video/fake_video_capture_device_factory.h" 8 #include "media/capture/video/fake_video_capture_device_factory.h"
9 #include "media/capture/video/video_capture_buffer_pool.h" 9 #include "media/capture/video/video_capture_buffer_pool.h"
10 #include "media/capture/video/video_capture_buffer_tracker.h" 10 #include "media/capture/video/video_capture_buffer_tracker.h"
11 #include "media/capture/video/video_capture_jpeg_decoder.h" 11 #include "media/capture/video/video_capture_jpeg_decoder.h"
12 #include "media/capture/video/video_capture_system_impl.h" 12 #include "media/capture/video/video_capture_system_impl.h"
13 #include "services/service_manager/public/cpp/service_info.h" 13 #include "services/service_manager/public/cpp/bind_source_info.h"
14 #include "services/video_capture/device_factory_media_to_mojo_adapter.h" 14 #include "services/video_capture/device_factory_media_to_mojo_adapter.h"
15 15
16 namespace { 16 namespace {
17 17
18 // TODO(chfremer): Replace with an actual decoder factory. 18 // TODO(chfremer): Replace with an actual decoder factory.
19 // https://crbug.com/584797 19 // https://crbug.com/584797
20 std::unique_ptr<media::VideoCaptureJpegDecoder> CreateJpegDecoder() { 20 std::unique_ptr<media::VideoCaptureJpegDecoder> CreateJpegDecoder() {
21 return nullptr; 21 return nullptr;
22 } 22 }
23 23
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 auto factory = base::MakeUnique<media::FakeVideoCaptureDeviceFactory>(); 76 auto factory = base::MakeUnique<media::FakeVideoCaptureDeviceFactory>();
77 auto video_capture_system = 77 auto video_capture_system =
78 base::MakeUnique<media::VideoCaptureSystemImpl>(std::move(factory)); 78 base::MakeUnique<media::VideoCaptureSystemImpl>(std::move(factory));
79 79
80 fake_device_factory_ = base::MakeUnique<DeviceFactoryMediaToMojoAdapter>( 80 fake_device_factory_ = base::MakeUnique<DeviceFactoryMediaToMojoAdapter>(
81 service_ref_->Clone(), std::move(video_capture_system), 81 service_ref_->Clone(), std::move(video_capture_system),
82 base::Bind(&CreateJpegDecoder)); 82 base::Bind(&CreateJpegDecoder));
83 } 83 }
84 84
85 } // namespace video_capture 85 } // namespace video_capture
OLDNEW
« no previous file with comments | « services/ui/ws/window_tree_client_unittest.cc ('k') | services/video_capture/service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698