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

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

Issue 189443010: Mac AVFoundation/QTKit: delay DeviceMonitorMac startup to first GetUserMedia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
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/enumerate media capture devices (video 5 // MediaStreamManager is used to open/enumerate media capture devices (video
6 // supported now). Call flow: 6 // supported 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 // list of currently available devices. 300 // list of currently available devices.
301 void StopRemovedDevices(const StreamDeviceInfoArray& old_devices, 301 void StopRemovedDevices(const StreamDeviceInfoArray& old_devices,
302 const StreamDeviceInfoArray& new_devices); 302 const StreamDeviceInfoArray& new_devices);
303 // Helper method used by StopRemovedDevices to stop the use of a certain 303 // Helper method used by StopRemovedDevices to stop the use of a certain
304 // device. 304 // device.
305 void StopRemovedDevice(const MediaStreamDevice& device); 305 void StopRemovedDevice(const MediaStreamDevice& device);
306 306
307 // Helpers to start and stop monitoring devices. 307 // Helpers to start and stop monitoring devices.
308 void StartMonitoring(); 308 void StartMonitoring();
309 void StopMonitoring(); 309 void StopMonitoring();
310 void StartMonitoringOnUIThread();
310 311
311 // Finds the requested device id from constraints. The requested device type 312 // Finds the requested device id from constraints. The requested device type
312 // must be MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. 313 // must be MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE.
313 bool GetRequestedDeviceCaptureId(const DeviceRequest* request, 314 bool GetRequestedDeviceCaptureId(const DeviceRequest* request,
314 MediaStreamType type, 315 MediaStreamType type,
315 std::string* device_id) const; 316 std::string* device_id) const;
316 317
317 void TranslateDeviceIdToSourceId(DeviceRequest* request, 318 void TranslateDeviceIdToSourceId(DeviceRequest* request,
318 MediaStreamDevice* device); 319 MediaStreamDevice* device);
319 320
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 364
364 bool use_fake_ui_; 365 bool use_fake_ui_;
365 scoped_ptr<FakeMediaStreamUIProxy> fake_ui_; 366 scoped_ptr<FakeMediaStreamUIProxy> fake_ui_;
366 367
367 DISALLOW_COPY_AND_ASSIGN(MediaStreamManager); 368 DISALLOW_COPY_AND_ASSIGN(MediaStreamManager);
368 }; 369 };
369 370
370 } // namespace content 371 } // namespace content
371 372
372 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_MANAGER_H_ 373 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698