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

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

Issue 750633003: Implement HasPermission() method in PermissionService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed comments, switched to use BrowserContext, passing PermissionStatus in callback Created 6 years, 1 month 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 c67ae88ef1d1fa3e5094a5ebcb99d7ee004a12de..42875923b38f9a22c84cc64374f6d1655737efea 100644
--- a/content/browser/permissions/permission_service_impl.h
+++ b/content/browser/permissions/permission_service_impl.h
@@ -60,6 +60,10 @@ class PermissionServiceImpl : public mojo::InterfaceImpl<PermissionService> {
int request_id,
bool allowed);
+ void OnHasPermissionResponse(
+ const mojo::Callback<void(PermissionStatus)>& callback,
+ PermissionStatus content_setting);
mlamouri (slow - plz ping) 2014/11/24 19:06:01 nit: s/content_setting/permission_status/
timvolodine 2014/11/27 17:53:42 Done.
+
RequestsMap pending_requests_;
// context_ owns |this|.
PermissionServiceContext* context_;

Powered by Google App Engine
This is Rietveld 408576698