diff options
author | henrika@chromium.org <henrika@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-12 10:19:51 +0000 |
---|---|---|
committer | henrika@chromium.org <henrika@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-12 10:19:51 +0000 |
commit | f7eb0a394522b0c3d6e9c16b54072e0bbafa0957 (patch) | |
tree | 922a5de3698273b57aad5d40206514b75466fb3c /chrome/browser/media/media_internals.h | |
parent | 8b241822a6eb2ee3ae99eeeac4dd11dda343c42e (diff) | |
download | chromium_src-f7eb0a394522b0c3d6e9c16b54072e0bbafa0957.zip chromium_src-f7eb0a394522b0c3d6e9c16b54072e0bbafa0957.tar.gz chromium_src-f7eb0a394522b0c3d6e9c16b54072e0bbafa0957.tar.bz2 |
Ensures that AudioMessageFilter now lives on the main render thread.
In addition, removes usage of routing ID by utilizing control messages instead of routed messages.
BUG=none
TESTS=none
Review URL: http://codereview.chromium.org/7157001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92138 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/media/media_internals.h')
-rw-r--r-- | chrome/browser/media/media_internals.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/chrome/browser/media/media_internals.h b/chrome/browser/media/media_internals.h index 8d8e566..1bda944 100644 --- a/chrome/browser/media/media_internals.h +++ b/chrome/browser/media/media_internals.h @@ -19,14 +19,11 @@ class MediaInternals : public MediaObserver { virtual ~MediaInternals(); // MediaObserver implementation. These are called from the IO thread: - virtual void OnDeleteAudioStream(void* host, int32 render_view, - int stream_id); - virtual void OnSetAudioStreamPlaying(void* host, int32 render_view, - int stream_id, bool playing); - virtual void OnSetAudioStreamStatus(void* host, int32 render_view, - int stream_id, const std::string& status); - virtual void OnSetAudioStreamVolume(void* host, int32 render_view, - int stream_id, double volume); + virtual void OnDeleteAudioStream(void* host, int stream_id); + virtual void OnSetAudioStreamPlaying(void* host, int stream_id, bool playing); + virtual void OnSetAudioStreamStatus(void* host, int stream_id, + const std::string& status); + virtual void OnSetAudioStreamVolume(void* host, int stream_id, double volume); // Methods for observers. Called from the observer's own thread: // UIs should add themselves on construction and remove themselves @@ -42,9 +39,9 @@ class MediaInternals : public MediaObserver { MediaInternals(); // Sets |property| of an audio stream to |value| and notifies observers. - // (host, render_view, stream_id) is a unique id for the audio stream. + // (host, stream_id) is a unique id for the audio stream. // |host| will never be dereferenced. - void UpdateAudioStream(void* host, int32 render_view, int stream_id, + void UpdateAudioStream(void* host, int stream_id, const std::string& property, Value* value); // Removes |item| from |data_|. |