Chromium Code Reviews| Index: content/browser/web_contents/web_contents_impl.h |
| diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h |
| index 134b8d8860b4d24bf5cf734fb16ecbec2f22636b..aef37e85a4e1864e756b555fdcdb6d37f6aaba79 100644 |
| --- a/content/browser/web_contents/web_contents_impl.h |
| +++ b/content/browser/web_contents/web_contents_impl.h |
| @@ -67,6 +67,7 @@ class SiteInstance; |
| class TestWebContents; |
| class WebContentsDelegate; |
| class WebContentsImpl; |
| +class WebContentsAudioMuter; |
|
Avi (use Gerrit)
2014/09/21 00:20:00
alphabetical order
miu
2014/09/21 02:33:30
Done. (I had renamed the class while working the
|
| class WebContentsObserver; |
| class WebContentsView; |
| class WebContentsViewDelegate; |
| @@ -246,6 +247,8 @@ class CONTENT_EXPORT WebContentsImpl |
| virtual void IncrementCapturerCount(const gfx::Size& capture_size) OVERRIDE; |
| virtual void DecrementCapturerCount() OVERRIDE; |
| virtual int GetCapturerCount() const OVERRIDE; |
| + virtual bool IsAudioMuted() const OVERRIDE; |
| + virtual void ToggleAudioMute(bool mute) OVERRIDE; |
| virtual bool IsCrashed() const OVERRIDE; |
| virtual void SetIsCrashed(base::TerminationStatus status, |
| int error_code) OVERRIDE; |
| @@ -1241,6 +1244,9 @@ class CONTENT_EXPORT WebContentsImpl |
| // Monitors power levels for audio streams associated with this WebContents. |
| AudioStreamMonitor audio_stream_monitor_; |
| + // Created on-demand to mute all audio output from this WebContents. |
| + scoped_ptr<WebContentsAudioMuter> audio_muter_; |
| + |
| base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; |
| DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |