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

Unified Diff: chrome/browser/permissions/permission_dialog_delegate.h

Issue 2462963002: Implement modal permission prompts for media permissions on Android. (Closed)
Patch Set: Nits Created 4 years, 1 month 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/permissions/permission_dialog_delegate.h
diff --git a/chrome/browser/permissions/permission_dialog_delegate.h b/chrome/browser/permissions/permission_dialog_delegate.h
index 6215383d9ca7bd013c51333008e03bd1845677b5..2a71ea6eccf033107da965d6996676f214d536ca 100644
--- a/chrome/browser/permissions/permission_dialog_delegate.h
+++ b/chrome/browser/permissions/permission_dialog_delegate.h
@@ -21,6 +21,7 @@ namespace content {
class WebContents;
}
+class MediaStreamDevicesController;
class GURL;
class PermissionInfoBarDelegate;
class Profile;
@@ -46,6 +47,12 @@ class PermissionDialogDelegate : content::WebContentsObserver {
Profile* profile,
const PermissionSetCallback& callback);
+ // Creates a modal dialog for a media stream permission request.
+ // TODO(dominickn): remove this when media stream requests are eventually
+ // folded in with other permission requests.
+ static void CreateMediaStreamDialog(
+ content::WebContents* web_contents,
+ std::unique_ptr<MediaStreamDevicesController> controller);
// Returns true if we should show the user a modal permission prompt rather
// than an infobar.

Powered by Google App Engine
This is Rietveld 408576698