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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 757033005: Make tab audible and muted states and cause available for an extension API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: MutedToggleCause --> muted_toggle_cause Created 6 years 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/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 665695d83390938503db2fe74338ad52b1151be5..c007e23f054a0eafa4017af27dd734946bc6152a 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -247,7 +247,8 @@ class CONTENT_EXPORT WebContentsImpl
void DecrementCapturerCount() override;
int GetCapturerCount() const override;
bool IsAudioMuted() const override;
- void SetAudioMuted(bool mute) override;
+ void SetAudioMuted(bool muted, const std::string& cause) override;
+ const std::string& GetAudioMutedCause() const override;
bool IsCrashed() const override;
void SetIsCrashed(base::TerminationStatus status, int error_code) override;
base::TerminationStatus GetCrashedStatus() const override;
@@ -1076,6 +1077,9 @@ class CONTENT_EXPORT WebContentsImpl
// to modify the blank page. Always false after the first commit.
bool has_accessed_initial_document_;
+ // Source (initial, user, capture, extensionid) for the tab's muted state
+ std::string muted_toggle_cause_;
+
// Data for misc internal state ----------------------------------------------
// When > 0, the WebContents is currently being captured (e.g., for

Powered by Google App Engine
This is Rietveld 408576698