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

Unified Diff: chrome/browser/media/webrtc/media_permission.h

Issue 2696703006: Move media permission checking logic for ChromeOS login pages (Closed)
Patch Set: Move media permission checking logic for ChromeOS login pages Created 3 years, 10 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/webrtc/media_permission.h
diff --git a/chrome/browser/media/webrtc/media_permission.h b/chrome/browser/media/webrtc/media_permission.h
index 708ae39877ac20dd05e61dd105158de7514164ba..1ab54717a243b81ff139bebf3c8c17e5ec4fcaae 100644
--- a/chrome/browser/media/webrtc/media_permission.h
+++ b/chrome/browser/media/webrtc/media_permission.h
@@ -15,13 +15,18 @@
class Profile;
+namespace content {
+class WebContents;
+}
+
// Represents a permission for microphone/camera access.
class MediaPermission {
public:
MediaPermission(ContentSettingsType content_type,
const GURL& requesting_origin,
const GURL& embedding_origin,
- Profile* profile);
+ Profile* profile,
+ content::WebContents* web_contents);
// Returns the status of the permission. If the setting is
// CONTENT_SETTING_BLOCK, |denial_reason| will output the reason for it being
@@ -43,6 +48,7 @@ class MediaPermission {
const GURL embedding_origin_;
const std::string device_id_;
Profile* const profile_;
+ content::WebContents* const web_contents_;
DISALLOW_COPY_AND_ASSIGN(MediaPermission);
};
« no previous file with comments | « chrome/browser/chromeos/login/ui/webui_login_view.cc ('k') | chrome/browser/media/webrtc/media_permission.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698