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

Unified Diff: chrome/browser/memory/tab_manager.h

Issue 1630443002: [Merge M49] [TabManager] Protect tabs that are using camera/microphone. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2623
Patch Set: Created 4 years, 11 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 | « no previous file | chrome/browser/memory/tab_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/memory/tab_manager.h
diff --git a/chrome/browser/memory/tab_manager.h b/chrome/browser/memory/tab_manager.h
index cc838c9e2da793ec6225b9737f3bccb69f143231..52b84d382b9526fa8374605f5b7cc2cdbc900fe2 100644
--- a/chrome/browser/memory/tab_manager.h
+++ b/chrome/browser/memory/tab_manager.h
@@ -167,8 +167,9 @@ class TabManager : public TabStripModelObserver {
int reason) override;
// Returns true if the tab is currently playing audio or has played audio
- // recently.
- bool IsAudioTab(content::WebContents* contents) const;
+ // recently, or if the tab is currently accessing the camera, microphone or
+ // mirroring the display.
+ bool IsMediaTab(content::WebContents* contents) const;
// Returns the WebContentsData associated with |contents|. Also takes care of
// creating one if needed.
« no previous file with comments | « no previous file | chrome/browser/memory/tab_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698