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

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

Issue 819463002: Implement RevokePermission() method in PermissionService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, fix todo comments Created 5 years, 11 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.h
diff --git a/content/browser/permissions/permission_service_impl.h b/content/browser/permissions/permission_service_impl.h
index d9faa41bc1e8904f665fd05839d76470b01bd6ad..afbb8d76f34d33e9de70d48d94db5287bcdc7ed7 100644
--- a/content/browser/permissions/permission_service_impl.h
+++ b/content/browser/permissions/permission_service_impl.h
@@ -52,6 +52,10 @@ class PermissionServiceImpl : public mojo::InterfaceImpl<PermissionService> {
const mojo::String& origin,
bool user_gesture,
const mojo::Callback<void(PermissionStatus)>& callback) override;
+ void RevokePermission(
+ PermissionName permission,
+ const mojo::String& origin,
+ const mojo::Callback<void(PermissionStatus)>& callback) override;
// mojo::InterfaceImpl.
void OnConnectionError() override;
@@ -61,6 +65,9 @@ class PermissionServiceImpl : public mojo::InterfaceImpl<PermissionService> {
int request_id,
bool allowed);
+ PermissionStatus GetPermissionStatus(PermissionType type, GURL origin);
+ void ResetPermissionStatus(PermissionType type, GURL origin);
+
RequestsMap pending_requests_;
// context_ owns |this|.
PermissionServiceContext* context_;

Powered by Google App Engine
This is Rietveld 408576698