| 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/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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 class AudioManager; | 50 class AudioManager; |
| 51 } | 51 } |
| 52 | 52 |
| 53 namespace url { | 53 namespace url { |
| 54 class Origin; | 54 class Origin; |
| 55 } | 55 } |
| 56 | 56 |
| 57 namespace content { | 57 namespace content { |
| 58 | 58 |
| 59 class AudioInputDeviceManager; | 59 class AudioInputDeviceManager; |
| 60 class AudioOutputDeviceEnumerator; | |
| 61 class BrowserContext; | |
| 62 class FakeMediaStreamUIProxy; | 60 class FakeMediaStreamUIProxy; |
| 63 class MediaStreamDeviceSettings; | |
| 64 class MediaStreamRequester; | 61 class MediaStreamRequester; |
| 65 class MediaStreamUIProxy; | 62 class MediaStreamUIProxy; |
| 66 class VideoCaptureManager; | 63 class VideoCaptureManager; |
| 67 | 64 |
| 68 // MediaStreamManager is used to generate and close new media devices, not to | 65 // MediaStreamManager is used to generate and close new media devices, not to |
| 69 // start the media flow. The classes requesting new media streams are answered | 66 // start the media flow. The classes requesting new media streams are answered |
| 70 // using MediaStreamRequester. | 67 // using MediaStreamRequester. |
| 71 class CONTENT_EXPORT MediaStreamManager | 68 class CONTENT_EXPORT MediaStreamManager |
| 72 : public MediaStreamProviderListener, | 69 : public MediaStreamProviderListener, |
| 73 public base::MessageLoop::DestructionObserver, | 70 public base::MessageLoop::DestructionObserver, |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 std::vector<MediaStreamRequester*> device_change_subscribers_; | 455 std::vector<MediaStreamRequester*> device_change_subscribers_; |
| 459 | 456 |
| 460 GenerateStreamTestCallback generate_stream_test_callback_; | 457 GenerateStreamTestCallback generate_stream_test_callback_; |
| 461 | 458 |
| 462 DISALLOW_COPY_AND_ASSIGN(MediaStreamManager); | 459 DISALLOW_COPY_AND_ASSIGN(MediaStreamManager); |
| 463 }; | 460 }; |
| 464 | 461 |
| 465 } // namespace content | 462 } // namespace content |
| 466 | 463 |
| 467 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_MANAGER_H_ | 464 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_MANAGER_H_ |
| OLD | NEW |