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

Unified Diff: chrome/browser/permissions/permission_manager.h

Issue 1803973002: Content Settings: Add RevocationObserver to measure when permissions are revoked (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test Created 4 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: chrome/browser/permissions/permission_manager.h
diff --git a/chrome/browser/permissions/permission_manager.h b/chrome/browser/permissions/permission_manager.h
index 79438b9ee74957bda1dec7431ddc17486b7ab07a..10144a8e1ad4e6d53d3b83722461522d354067ad 100644
--- a/chrome/browser/permissions/permission_manager.h
+++ b/chrome/browser/permissions/permission_manager.h
@@ -23,7 +23,8 @@ class WebContents;
class PermissionManager : public KeyedService,
public content::PermissionManager,
- public content_settings::Observer {
+ public content_settings::Observer,
+ public content_settings::RevocationObserver {
public:
explicit PermissionManager(Profile* profile);
~PermissionManager() override;
@@ -86,6 +87,12 @@ class PermissionManager : public KeyedService,
ContentSettingsType content_type,
std::string resource_identifier) override;
+ // content_settings::RevocationObserver implementation.
+ void OnContentSettingRevoked(const GURL& primary_url,
+ const GURL& secondary_url,
+ ContentSettingsType content_type,
+ std::string resource_identifier) override;
+
Profile* profile_;
PendingRequestsMap pending_requests_;
SubscriptionsMap subscriptions_;

Powered by Google App Engine
This is Rietveld 408576698