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

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

Issue 2462963002: Implement modal permission prompts for media permissions on Android. (Closed)
Patch Set: Rebase 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..de9c47d82abc7f9d74b10810ab0ae70dfc905338 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: remove this when media stream requests are eventually folded in with
raymes 2016/11/02 08:09:04 nit: Please add yourself as the TODO(author). Havi
dominickn 2016/11/03 00:34:09 Done.
+ // 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