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

Unified Diff: content/renderer/render_view_impl.h

Issue 10537121: Adds AudioDevice factory for all audio clients in Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed DVLOGs Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_view_impl.h
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
index f2401940df8e6b487475b1c811c863ede7eca6e5..2f1cbdd4ddbd9d503a737978f70a5bf3dec1c6bd 100644
--- a/content/renderer/render_view_impl.h
+++ b/content/renderer/render_view_impl.h
@@ -61,6 +61,7 @@
#pragma warning(disable: 4250)
#endif
+class AudioDeviceFactoryInterface;
class CommandLine;
class DeviceOrientationDispatcher;
class DevToolsAgent;
@@ -228,6 +229,10 @@ class RenderViewImpl : public RenderWidget,
int history_list_offset() const { return history_list_offset_; }
+ AudioDeviceFactoryInterface* audio_device_factory() const {
+ return audio_device_factory_.get();
+ }
+
const webkit_glue::WebPreferences& webkit_preferences() const {
return webkit_preferences_;
}
@@ -1332,6 +1337,10 @@ class RenderViewImpl : public RenderWidget,
// Misc ----------------------------------------------------------------------
+ // Allows users to create media::AudioRendererSink objects with different
+ // implementations.
+ scoped_ptr<AudioDeviceFactoryInterface> audio_device_factory_;
+
// The current and pending file chooser completion objects. If the queue is
// nonempty, the first item represents the currently running file chooser
// callback, and the remaining elements are the other file chooser completion

Powered by Google App Engine
This is Rietveld 408576698