summaryrefslogtreecommitdiffstats
path: root/src/core/permission_manager_qt.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-01-26 10:49:54 +0100
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-03-07 17:08:49 +0000
commit88b1f81187018921a04b0ec0726eb8b567d4abe9 (patch)
tree7f99582769a7657e03d09af8b1d814b6961bba73 /src/core/permission_manager_qt.h
parent93ca852dbf00e93c07269e8cca389bc1222130d3 (diff)
Add stub for RequestPermissions
This doesn't appear used yet, and our implementation mirrors that of the Android WebView. Task-number: QTBUG-51173 Change-Id: I53396b8b97febd45441cf0add54de4f47b289348 Reviewed-by: Michael BrĂ¼ning <michael.bruning@theqtcompany.com>
Diffstat (limited to 'src/core/permission_manager_qt.h')
-rw-r--r--src/core/permission_manager_qt.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/permission_manager_qt.h b/src/core/permission_manager_qt.h
index 0caeb4bd8..7c42a06e7 100644
--- a/src/core/permission_manager_qt.h
+++ b/src/core/permission_manager_qt.h
@@ -78,6 +78,14 @@ public:
const GURL& requesting_origin,
const GURL& embedding_origin) override;
+ int RequestPermissions(
+ const std::vector<content::PermissionType>& permission,
+ content::RenderFrameHost* render_frame_host,
+ const GURL& requesting_origin,
+ bool user_gesture,
+ const base::Callback<void(
+ const std::vector<content::PermissionStatus>&)>& callback) override;
+
void RegisterPermissionUsage(
content::PermissionType permission,
const GURL& requesting_origin,