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

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 11880009: Introduce AudioHardwareConfig for renderer side audio device info. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style nits. Created 7 years, 10 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 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 27 matching lines...) Expand all
38 namespace win { 38 namespace win {
39 class ScopedCOMInitializer; 39 class ScopedCOMInitializer;
40 } 40 }
41 #endif 41 #endif
42 } 42 }
43 43
44 namespace IPC { 44 namespace IPC {
45 class ForwardingMessageFilter; 45 class ForwardingMessageFilter;
46 } 46 }
47 47
48 namespace media {
49 class AudioHardwareConfig;
50 }
51
48 namespace v8 { 52 namespace v8 {
49 class Extension; 53 class Extension;
50 } 54 }
51 55
52 namespace content { 56 namespace content {
53 57
54 class AppCacheDispatcher; 58 class AppCacheDispatcher;
55 class AudioInputMessageFilter; 59 class AudioInputMessageFilter;
56 class AudioMessageFilter; 60 class AudioMessageFilter;
57 class AudioRendererMixerManager; 61 class AudioRendererMixerManager;
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 WebGraphicsContext3DCommandBufferImpl* GetGpuVDAContext3D(); 243 WebGraphicsContext3DCommandBufferImpl* GetGpuVDAContext3D();
240 244
241 // Handle loss of the shared GpuVDAContext3D context above. 245 // Handle loss of the shared GpuVDAContext3D context above.
242 static void OnGpuVDAContextLoss(); 246 static void OnGpuVDAContextLoss();
243 247
244 // AudioRendererMixerManager instance which manages renderer side mixer 248 // AudioRendererMixerManager instance which manages renderer side mixer
245 // instances shared based on configured audio parameters. Lazily created on 249 // instances shared based on configured audio parameters. Lazily created on
246 // first call. 250 // first call.
247 AudioRendererMixerManager* GetAudioRendererMixerManager(); 251 AudioRendererMixerManager* GetAudioRendererMixerManager();
248 252
253 // AudioHardwareConfig contains audio hardware configuration for
254 // renderer side clients. Creation requires a synchronous IPC call so it is
255 // lazily created on the first call.
256 media::AudioHardwareConfig* GetAudioHardwareConfig();
257
249 #if defined(OS_WIN) 258 #if defined(OS_WIN)
250 void PreCacheFontCharacters(const LOGFONT& log_font, const string16& str); 259 void PreCacheFontCharacters(const LOGFONT& log_font, const string16& str);
251 #endif 260 #endif
252 261
253 // For producing custom V8 histograms. Custom histograms are produced if all 262 // For producing custom V8 histograms. Custom histograms are produced if all
254 // RenderViews share the same host, and the host is in the pre-specified set 263 // RenderViews share the same host, and the host is in the pre-specified set
255 // of hosts we want to produce custom diagrams for. The name for a custom 264 // of hosts we want to produce custom diagrams for. The name for a custom
256 // diagram is the name of the corresponding generic diagram plus a 265 // diagram is the name of the corresponding generic diagram plus a
257 // host-specific suffix. 266 // host-specific suffix.
258 class CONTENT_EXPORT HistogramCustomizer { 267 class CONTENT_EXPORT HistogramCustomizer {
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 scoped_ptr<CompositorThread> compositor_thread_; 383 scoped_ptr<CompositorThread> compositor_thread_;
375 scoped_refptr<IPC::ForwardingMessageFilter> compositor_output_surface_filter_; 384 scoped_refptr<IPC::ForwardingMessageFilter> compositor_output_surface_filter_;
376 385
377 ObserverList<RenderProcessObserver> observers_; 386 ObserverList<RenderProcessObserver> observers_;
378 387
379 class GpuVDAContextLostCallback; 388 class GpuVDAContextLostCallback;
380 scoped_ptr<GpuVDAContextLostCallback> context_lost_cb_; 389 scoped_ptr<GpuVDAContextLostCallback> context_lost_cb_;
381 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; 390 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_;
382 391
383 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_; 392 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_;
393 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_;
384 394
385 HistogramCustomizer histogram_customizer_; 395 HistogramCustomizer histogram_customizer_;
386 396
387 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 397 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
388 }; 398 };
389 399
390 } // namespace content 400 } // namespace content
391 401
392 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 402 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698