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

Unified Diff: chrome/browser/media/media_stream_devices_controller.h

Issue 419503005: Merge 285314 "Turn webspeech on/off when tab goes fore/background" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1985_128/src/
Patch Set: Created 6 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 | « no previous file | chrome/browser/media/media_stream_devices_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/media_stream_devices_controller.h
===================================================================
--- chrome/browser/media/media_stream_devices_controller.h (revision 285314)
+++ chrome/browser/media/media_stream_devices_controller.h (working copy)
@@ -138,6 +138,10 @@
bool IsDeviceAudioCaptureRequestedAndAllowed() const;
bool IsDeviceVideoCaptureRequestedAndAllowed() const;
+ // Returns true if media capture device is allowed to be used. This could
+ // return false when tab goes to background.
+ bool IsCaptureDeviceRequestAllowed() const;
+
content::WebContents* web_contents_;
// The owner of this class needs to make sure it does not outlive the profile.
« no previous file with comments | « no previous file | chrome/browser/media/media_stream_devices_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698