| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #include "base/basictypes.h" | 29 #include "base/basictypes.h" |
| 30 #include "base/memory/scoped_ptr.h" | 30 #include "base/memory/scoped_ptr.h" |
| 31 #include "base/memory/ref_counted.h" | 31 #include "base/memory/ref_counted.h" |
| 32 #include "base/message_loop.h" | 32 #include "base/message_loop.h" |
| 33 #include "base/system_monitor/system_monitor.h" | 33 #include "base/system_monitor/system_monitor.h" |
| 34 #include "content/browser/renderer_host/media/media_stream_provider.h" | 34 #include "content/browser/renderer_host/media/media_stream_provider.h" |
| 35 #include "content/browser/renderer_host/media/media_stream_settings_requester.h" | 35 #include "content/browser/renderer_host/media/media_stream_settings_requester.h" |
| 36 #include "content/common/media/media_stream_options.h" | 36 #include "content/common/media/media_stream_options.h" |
| 37 #include "content/common/content_export.h" | 37 #include "content/common/content_export.h" |
| 38 #include "content/public/browser/browser_thread.h" | |
| 39 | 38 |
| 40 namespace base { | 39 namespace base { |
| 41 class Thread; | 40 class Thread; |
| 42 } | 41 } |
| 43 | 42 |
| 44 namespace media { | 43 namespace media { |
| 45 class AudioManager; | 44 class AudioManager; |
| 46 } | 45 } |
| 47 | 46 |
| 48 namespace content { | 47 namespace content { |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 // Hold a pointer to the IO loop to check we delete the device thread and | 250 // Hold a pointer to the IO loop to check we delete the device thread and |
| 252 // managers on the right thread. | 251 // managers on the right thread. |
| 253 MessageLoop* io_loop_; | 252 MessageLoop* io_loop_; |
| 254 | 253 |
| 255 DISALLOW_COPY_AND_ASSIGN(MediaStreamManager); | 254 DISALLOW_COPY_AND_ASSIGN(MediaStreamManager); |
| 256 }; | 255 }; |
| 257 | 256 |
| 258 } // namespace content | 257 } // namespace content |
| 259 | 258 |
| 260 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_MANAGER_H_ | 259 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_MANAGER_H_ |
| OLD | NEW |