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 #include "content/browser/renderer_host/media/media_devices_dispatcher_host.h" | 5 #include "content/browser/renderer_host/media/media_devices_dispatcher_host.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 uint32_t subscription_id; | 91 uint32_t subscription_id; |
92 url::Origin security_origin; | 92 url::Origin security_origin; |
93 }; | 93 }; |
94 | 94 |
95 // static | 95 // static |
96 void MediaDevicesDispatcherHost::Create( | 96 void MediaDevicesDispatcherHost::Create( |
97 int render_process_id, | 97 int render_process_id, |
98 int render_frame_id, | 98 int render_frame_id, |
99 const std::string& device_id_salt, | 99 const std::string& device_id_salt, |
100 MediaStreamManager* media_stream_manager, | 100 MediaStreamManager* media_stream_manager, |
| 101 const service_manager::BindSourceInfo& source_info, |
101 ::mojom::MediaDevicesDispatcherHostRequest request) { | 102 ::mojom::MediaDevicesDispatcherHostRequest request) { |
102 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 103 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
103 mojo::MakeStrongBinding(base::MakeUnique<MediaDevicesDispatcherHost>( | 104 mojo::MakeStrongBinding(base::MakeUnique<MediaDevicesDispatcherHost>( |
104 render_process_id, render_frame_id, | 105 render_process_id, render_frame_id, |
105 device_id_salt, media_stream_manager), | 106 device_id_salt, media_stream_manager), |
106 std::move(request)); | 107 std::move(request)); |
107 } | 108 } |
108 | 109 |
109 MediaDevicesDispatcherHost::MediaDevicesDispatcherHost( | 110 MediaDevicesDispatcherHost::MediaDevicesDispatcherHost( |
110 int render_process_id, | 111 int render_process_id, |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 formats.push_back(format.value()); | 425 formats.push_back(format.value()); |
425 return formats; | 426 return formats; |
426 } | 427 } |
427 | 428 |
428 media_stream_manager_->video_capture_manager()->GetDeviceSupportedFormats( | 429 media_stream_manager_->video_capture_manager()->GetDeviceSupportedFormats( |
429 device_id, &formats); | 430 device_id, &formats); |
430 return formats; | 431 return formats; |
431 } | 432 } |
432 | 433 |
433 } // namespace content | 434 } // namespace content |
OLD | NEW |