| 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 // AudioRendererHost serves audio related requests from AudioRenderer which | 5 // AudioRendererHost serves audio related requests from AudioRenderer which |
| 6 // lives inside the render process and provide access to audio hardware. | 6 // lives inside the render process and provide access to audio hardware. |
| 7 // | 7 // |
| 8 // This class is owned by RenderProcessHostImpl, and instantiated on UI | 8 // This class is owned by RenderProcessHostImpl, and instantiated on UI |
| 9 // thread, but all other operations and method calls happen on IO thread, so we | 9 // thread, but all other operations and method calls happen on IO thread, so we |
| 10 // need to be extra careful about the lifetime of this object. AudioManager is a | 10 // need to be extra careful about the lifetime of this object. AudioManager is a |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 namespace media { | 69 namespace media { |
| 70 class AudioManager; | 70 class AudioManager; |
| 71 class AudioParameters; | 71 class AudioParameters; |
| 72 } | 72 } |
| 73 | 73 |
| 74 namespace content { | 74 namespace content { |
| 75 | 75 |
| 76 class AudioMirroringManager; | 76 class AudioMirroringManager; |
| 77 class MediaInternals; | 77 class MediaInternals; |
| 78 class MediaStreamManager; | 78 class MediaStreamManager; |
| 79 class ResourceContext; | |
| 80 | 79 |
| 81 class CONTENT_EXPORT AudioRendererHost : public BrowserMessageFilter { | 80 class CONTENT_EXPORT AudioRendererHost : public BrowserMessageFilter { |
| 82 public: | 81 public: |
| 83 // Called from UI thread from the owner of this object. | 82 // Called from UI thread from the owner of this object. |
| 84 AudioRendererHost(int render_process_id, | 83 AudioRendererHost(int render_process_id, |
| 85 media::AudioManager* audio_manager, | 84 media::AudioManager* audio_manager, |
| 86 AudioMirroringManager* mirroring_manager, | 85 AudioMirroringManager* mirroring_manager, |
| 87 MediaInternals* media_internals, | 86 MediaInternals* media_internals, |
| 88 MediaStreamManager* media_stream_manager, | 87 MediaStreamManager* media_stream_manager, |
| 89 const std::string& salt); | 88 const std::string& salt); |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 // The maximum number of simultaneous streams during the lifetime of this | 277 // The maximum number of simultaneous streams during the lifetime of this |
| 279 // host. Reported as UMA stat at shutdown. | 278 // host. Reported as UMA stat at shutdown. |
| 280 size_t max_simultaneous_streams_; | 279 size_t max_simultaneous_streams_; |
| 281 | 280 |
| 282 DISALLOW_COPY_AND_ASSIGN(AudioRendererHost); | 281 DISALLOW_COPY_AND_ASSIGN(AudioRendererHost); |
| 283 }; | 282 }; |
| 284 | 283 |
| 285 } // namespace content | 284 } // namespace content |
| 286 | 285 |
| 287 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_RENDERER_HOST_H_ | 286 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_RENDERER_HOST_H_ |
| OLD | NEW |