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

Unified Diff: content/public/browser/permission_manager.h

Issue 990303002: Implement PermissionService::GetNextPermissionChange. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission_impl
Patch Set: fix chromecast/ Created 5 years, 9 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
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/shell/browser/shell_permission_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/permission_manager.h
diff --git a/content/public/browser/permission_manager.h b/content/public/browser/permission_manager.h
index e7300751d00b1479d3a9a0c8a7622cbb0fc229f7..6a56e0b6a58b7be2cf05246d4e8371e7d766711b 100644
--- a/content/public/browser/permission_manager.h
+++ b/content/public/browser/permission_manager.h
@@ -43,6 +43,17 @@ class CONTENT_EXPORT PermissionManager {
virtual void RegisterPermissionUsage(PermissionType permission,
const GURL& requesting_origin,
const GURL& embedding_origin) = 0;
+
+ // Runs the given |callback| whenever the |permission| associated with the
+ // pair { requesting_origin, embedding_origin } changes.
+ // Returns the subscription_id to be used to unsubscribe.
+ virtual int SubscribePermissionStatusChange(
+ PermissionType permission,
+ const GURL& requesting_origin,
+ const GURL& embedding_origin,
+ const base::Callback<void(PermissionStatus)>& callback) = 0;
+
+ virtual void UnsubscribePermissionStatusChange(int subscription_id) = 0;
};
} // namespace content
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/shell/browser/shell_permission_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698