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

Unified Diff: content/browser/permissions/permission_service_impl.cc

Issue 1260193009: renderer: implement multiple permission requesting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permissions-request-multiple
Patch Set: Split off all browser sections Created 5 years, 3 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: content/browser/permissions/permission_service_impl.cc
diff --git a/content/browser/permissions/permission_service_impl.cc b/content/browser/permissions/permission_service_impl.cc
index 4a78ccf8b251564bcee25434f39e87b3aaa304ea..4c63a1d13708fcc6f86cdeb5cd4b0f08716abcfc 100644
--- a/content/browser/permissions/permission_service_impl.cc
+++ b/content/browser/permissions/permission_service_impl.cc
@@ -131,6 +131,19 @@ void PermissionServiceImpl::RequestPermission(
request_id));
}
+void PermissionServiceImpl::RequestPermissions(
+ mojo::Array<PermissionName> permissions,
+ const mojo::String& origin,
+ bool user_gesture,
+ const PermissionsStatusCallback& callback) {
+ NOTIMPLEMENTED();
+
+ mojo::Array<PermissionStatus> result(permissions.size());
mlamouri (slow - plz ping) 2015/09/04 15:04:13 add: TODO(lalitm,mlamouri): this is returning the
Lalit Maganti 2015/09/04 16:07:28 Done.
+ for (size_t i = 0; i < permissions.size(); ++i)
+ result[i] = GetPermissionStatusFromName(permissions[i], GURL(origin));
+ callback.Run(result.Pass());
+}
+
void PermissionServiceImpl::OnRequestPermissionResponse(
int request_id,
PermissionStatus status) {

Powered by Google App Engine
This is Rietveld 408576698