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

Unified Diff: content/renderer/media/audio_device.h

Issue 10835025: Plumb render view ID to media observer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « content/public/browser/media_observer.h ('k') | content/renderer/media/audio_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_device.h
diff --git a/content/renderer/media/audio_device.h b/content/renderer/media/audio_device.h
index 1eee2c33480e8a24def1a997cfd716b902cfb160..e2b41d28a8353b6d5fbae234491dcd36a33dc903 100644
--- a/content/renderer/media/audio_device.h
+++ b/content/renderer/media/audio_device.h
@@ -81,6 +81,7 @@ class AudioParameters;
namespace content {
class AudioDeviceFactory;
+class RenderView;
}
class CONTENT_EXPORT AudioDevice
@@ -116,7 +117,8 @@ class CONTENT_EXPORT AudioDevice
// access to the constructor.
// TODO(tommi): When all dependencies on |content| have been removed
// from AudioDevice, move this class over to media/audio.
- explicit AudioDevice(const scoped_refptr<base::MessageLoopProxy>& io_loop);
+ AudioDevice(content::RenderView* render_view,
+ const scoped_refptr<base::MessageLoopProxy>& io_loop);
// Magic required by ref_counted.h to avoid any code deleting the object
// accidentally while there are references to it.
@@ -140,6 +142,8 @@ class CONTENT_EXPORT AudioDevice
// If the IO loop dies before we do, we shut down the audio thread from here.
virtual void WillDestroyCurrentMessageLoop() OVERRIDE;
+ content::RenderView* render_view_;
+
media::AudioParameters audio_parameters_;
RenderCallback* callback_;
« no previous file with comments | « content/public/browser/media_observer.h ('k') | content/renderer/media/audio_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698