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

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

Issue 990303002: Implement PermissionService::GetNextPermissionChange. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission_impl
Patch Set: cosmetic changes 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
Index: content/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index c5c3942d749cc211489a01c8b1d6f7f22e961cd5..40636014c13e4de139e28e25e5560f0eeda72458 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -452,6 +452,20 @@ class CONTENT_EXPORT ContentBrowserClient {
const GURL& requesting_origin,
const GURL& embedding_origin);
+ // 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(
jochen (gone - plz use gerrit) 2015/03/11 16:11:24 why is this not on browser_context?
mlamouri (slow - plz ping) 2015/03/18 16:24:40 All the permission related method live here but I
+ PermissionType permission,
+ BrowserContext* browser_context,
+ const GURL& requesting_origin,
+ const GURL& embedding_origin,
+ const base::Callback<void(PermissionStatus)>& callback);
+
+ virtual void UnsubscribePermissionStatusChange(
+ BrowserContext* browser_context,
+ int subscription_id) {}
+
virtual void ResetPermission(PermissionType permission,
BrowserContext* browser_context,
const GURL& requesting_origin,

Powered by Google App Engine
This is Rietveld 408576698