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

Unified Diff: chromecast/browser/cast_permission_manager.cc

Issue 1316863010: browser: implement multiple permission requesting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@request-multiple-content
Patch Set: Rebase on master Created 5 years, 2 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: chromecast/browser/cast_permission_manager.cc
diff --git a/chromecast/browser/cast_permission_manager.cc b/chromecast/browser/cast_permission_manager.cc
index eaa6b940a03cf7ee1f6b241f678d5e312e58e691..5146fcfd35f315b97df7aed2d8af5eb03c454503 100644
--- a/chromecast/browser/cast_permission_manager.cc
+++ b/chromecast/browser/cast_permission_manager.cc
@@ -29,11 +29,21 @@ int CastPermissionManager::RequestPermission(
return kNoPendingOperation;
}
-void CastPermissionManager::CancelPermissionRequest(
- content::PermissionType permission,
+int CastPermissionManager::RequestPermissions(
+ const std::vector<content::PermissionType>& permissions,
content::RenderFrameHost* render_frame_host,
- int request_id,
- const GURL& origin) {
+ const GURL& requesting_origin,
+ bool user_gesture,
+ const base::Callback<void(
+ const std::vector<content::PermissionStatus>&)>& callback) {
+ std::vector<content::PermissionStatus> result;
+ for (size_t i = 0; i < permissions.size(); ++i)
+ result.push_back(content::PermissionStatus::PERMISSION_STATUS_GRANTED);
+ callback.Run(result);
+ return kNoPendingOperation;
+}
+
+void CastPermissionManager::CancelPermissionRequest(int request_id) {
}
void CastPermissionManager::ResetPermission(
« no previous file with comments | « chromecast/browser/cast_permission_manager.h ('k') | content/browser/permissions/permission_service_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698