Give user access to the URL that is attempting to be openExternal'ed

This commit is contained in:
Samuel Attard 2017-11-11 14:27:30 +11:00 committed by Cheng Zhao
parent 39ec40b901
commit 98e9311669
6 changed files with 83 additions and 11 deletions

View file

@ -33,7 +33,8 @@ class WebContentsPermissionHelper
void RequestPointerLockPermission(bool user_gesture);
void RequestOpenExternalPermission(
const base::Callback<void(bool)>& callback,
bool user_gesture);
bool user_gesture,
const GURL& url);
private:
explicit WebContentsPermissionHelper(content::WebContents* web_contents);
@ -43,6 +44,11 @@ class WebContentsPermissionHelper
content::PermissionType permission,
const base::Callback<void(bool)>& callback,
bool user_gesture = false);
void RequestPermissionWithDetails(
content::PermissionType permission,
const base::Callback<void(bool)>& callback,
bool user_gesture,
const base::DictionaryValue* details);
content::WebContents* web_contents_;