OLD | NEW |
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 // Used to access VideoCaptureManager. | 99 // Used to access VideoCaptureManager. |
100 VideoCaptureManager* video_capture_manager(); | 100 VideoCaptureManager* video_capture_manager(); |
101 | 101 |
102 // Used to access AudioInputDeviceManager. | 102 // Used to access AudioInputDeviceManager. |
103 AudioInputDeviceManager* audio_input_device_manager(); | 103 AudioInputDeviceManager* audio_input_device_manager(); |
104 | 104 |
105 // Used to access MediaDevicesManager. | 105 // Used to access MediaDevicesManager. |
106 MediaDevicesManager* media_devices_manager(); | 106 MediaDevicesManager* media_devices_manager(); |
107 | 107 |
| 108 // Used to access AudioSystem. |
| 109 media::AudioSystem* audio_system(); |
| 110 |
108 // AddVideoCaptureObserver() and RemoveAllVideoCaptureObservers() must be | 111 // AddVideoCaptureObserver() and RemoveAllVideoCaptureObservers() must be |
109 // called after InitializeDeviceManagersOnIOThread() and before | 112 // called after InitializeDeviceManagersOnIOThread() and before |
110 // WillDestroyCurrentMessageLoop(). They can be called more than once and it's | 113 // WillDestroyCurrentMessageLoop(). They can be called more than once and it's |
111 // ok to not call at all if the client is not interested in receiving | 114 // ok to not call at all if the client is not interested in receiving |
112 // media::VideoCaptureObserver callbacks. | 115 // media::VideoCaptureObserver callbacks. |
113 // The methods must be called on BrowserThread::IO threads. The callbacks of | 116 // The methods must be called on BrowserThread::IO threads. The callbacks of |
114 // media::VideoCaptureObserver also arrive on BrowserThread::IO threads. | 117 // media::VideoCaptureObserver also arrive on BrowserThread::IO threads. |
115 void AddVideoCaptureObserver(media::VideoCaptureObserver* capture_observer); | 118 void AddVideoCaptureObserver(media::VideoCaptureObserver* capture_observer); |
116 void RemoveAllVideoCaptureObservers(); | 119 void RemoveAllVideoCaptureObservers(); |
117 | 120 |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 std::map<int, base::Callback<void(const std::string&)>> log_callbacks_; | 427 std::map<int, base::Callback<void(const std::string&)>> log_callbacks_; |
425 | 428 |
426 GenerateStreamTestCallback generate_stream_test_callback_; | 429 GenerateStreamTestCallback generate_stream_test_callback_; |
427 | 430 |
428 DISALLOW_COPY_AND_ASSIGN(MediaStreamManager); | 431 DISALLOW_COPY_AND_ASSIGN(MediaStreamManager); |
429 }; | 432 }; |
430 | 433 |
431 } // namespace content | 434 } // namespace content |
432 | 435 |
433 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_MANAGER_H_ | 436 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_MANAGER_H_ |
OLD | NEW |