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

Side by Side Diff: content/browser/renderer_host/media/media_stream_manager.h

Issue 2606983002: Media Capture Depth Stream Extensions API: focal length and depth range. (Closed)
Patch Set: 80-char line fix in test html. Created 3 years, 10 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // MediaStreamManager is used to open media capture devices (video supported 5 // MediaStreamManager is used to open media capture devices (video supported
6 // now). Call flow: 6 // now). Call flow:
7 // 1. GenerateStream is called when a render process wants to use a capture 7 // 1. GenerateStream is called when a render process wants to use a capture
8 // device. 8 // device.
9 // 2. MediaStreamManager will ask MediaStreamUIController for permission to 9 // 2. MediaStreamManager will ask MediaStreamUIController for permission to
10 // use devices and for which device to use. 10 // use devices and for which device to use.
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 void DoNativeLogCallbackRegistration(int renderer_host_id, 375 void DoNativeLogCallbackRegistration(int renderer_host_id,
376 const base::Callback<void(const std::string&)>& callback); 376 const base::Callback<void(const std::string&)>& callback);
377 void DoNativeLogCallbackUnregistration(int renderer_host_id); 377 void DoNativeLogCallbackUnregistration(int renderer_host_id);
378 378
379 // Callback to handle the reply to a low-level enumeration request. 379 // Callback to handle the reply to a low-level enumeration request.
380 void DevicesEnumerated(bool requested_audio_input, 380 void DevicesEnumerated(bool requested_audio_input,
381 bool requested_video_input, 381 bool requested_video_input,
382 const std::string& label, 382 const std::string& label,
383 const MediaDeviceEnumeration& enumeration); 383 const MediaDeviceEnumeration& enumeration);
384 384
385 // Creates MediaStreamDevices for |devices_infos| of |stream_type|. For video
386 // capture device it also uses cached content from |video_capture_manager_| to
387 // set the MediaStreamDevice fields.
388 MediaStreamDevices ConvertToMediaStreamDevices(
389 MediaStreamType stream_type,
390 const MediaDeviceInfoArray& device_infos);
391
385 // Task runner shared by VideoCaptureManager and AudioInputDeviceManager and 392 // Task runner shared by VideoCaptureManager and AudioInputDeviceManager and
386 // used for enumerating audio output devices. 393 // used for enumerating audio output devices.
387 // Note: Enumeration tasks may take seconds to complete so must never be run 394 // Note: Enumeration tasks may take seconds to complete so must never be run
388 // on any of the BrowserThreads (UI, IO, etc). See http://crbug.com/256945. 395 // on any of the BrowserThreads (UI, IO, etc). See http://crbug.com/256945.
389 scoped_refptr<base::SingleThreadTaskRunner> device_task_runner_; 396 scoped_refptr<base::SingleThreadTaskRunner> device_task_runner_;
390 397
391 media::AudioManager* const audio_manager_; // not owned 398 media::AudioManager* const audio_manager_; // not owned
392 scoped_refptr<AudioInputDeviceManager> audio_input_device_manager_; 399 scoped_refptr<AudioInputDeviceManager> audio_input_device_manager_;
393 scoped_refptr<VideoCaptureManager> video_capture_manager_; 400 scoped_refptr<VideoCaptureManager> video_capture_manager_;
394 #if defined(OS_WIN) 401 #if defined(OS_WIN)
(...skipping 12 matching lines...) Expand all
407 std::map<int, base::Callback<void(const std::string&)>> log_callbacks_; 414 std::map<int, base::Callback<void(const std::string&)>> log_callbacks_;
408 415
409 GenerateStreamTestCallback generate_stream_test_callback_; 416 GenerateStreamTestCallback generate_stream_test_callback_;
410 417
411 DISALLOW_COPY_AND_ASSIGN(MediaStreamManager); 418 DISALLOW_COPY_AND_ASSIGN(MediaStreamManager);
412 }; 419 };
413 420
414 } // namespace content 421 } // namespace content
415 422
416 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_MANAGER_H_ 423 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698