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

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

Issue 415433002: Turn webspeech on/off when tab goes fore/background (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: adding a TODO for test 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
Index: chrome/browser/media/media_stream_devices_controller.h
diff --git a/chrome/browser/media/media_stream_devices_controller.h b/chrome/browser/media/media_stream_devices_controller.h
index c5325dfef192b18331b4402668ef1eb8bf7a7199..01e68492e00048f931d6047c6d89d233d3909aa3 100644
--- a/chrome/browser/media/media_stream_devices_controller.h
+++ b/chrome/browser/media/media_stream_devices_controller.h
@@ -138,6 +138,10 @@ class MediaStreamDevicesController : public PermissionBubbleRequest {
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.

Powered by Google App Engine
This is Rietveld 408576698