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

Side by Side 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: Review comments 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_MANAGER_H_ 5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_MANAGER_H_
6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_MANAGER_H_ 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_MANAGER_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // Not all WebContents are able to display permission requests. If the PBM 79 // Not all WebContents are able to display permission requests. If the PBM
80 // is required but missing for |web_contents|, don't pass along the request. 80 // is required but missing for |web_contents|, don't pass along the request.
81 bool IsPermissionBubbleManagerMissing(content::WebContents* web_contents); 81 bool IsPermissionBubbleManagerMissing(content::WebContents* web_contents);
82 82
83 // content_settings::Observer implementation. 83 // content_settings::Observer implementation.
84 void OnContentSettingChanged(const ContentSettingsPattern& primary_pattern, 84 void OnContentSettingChanged(const ContentSettingsPattern& primary_pattern,
85 const ContentSettingsPattern& secondary_pattern, 85 const ContentSettingsPattern& secondary_pattern,
86 ContentSettingsType content_type, 86 ContentSettingsType content_type,
87 std::string resource_identifier) override; 87 std::string resource_identifier) override;
88 88
89 // content_settings::RevocationObserver implementation.
Bernhard Bauer 2016/03/21 11:56:31 Nit: s/Revocation//
90 void OnContentSettingRevoked(const GURL& primary_url,
91 const GURL& secondary_url,
92 ContentSettingsType content_type,
93 std::string resource_identifier) override;
94
89 Profile* profile_; 95 Profile* profile_;
90 PendingRequestsMap pending_requests_; 96 PendingRequestsMap pending_requests_;
91 SubscriptionsMap subscriptions_; 97 SubscriptionsMap subscriptions_;
92 98
93 base::WeakPtrFactory<PermissionManager> weak_ptr_factory_; 99 base::WeakPtrFactory<PermissionManager> weak_ptr_factory_;
94 100
95 DISALLOW_COPY_AND_ASSIGN(PermissionManager); 101 DISALLOW_COPY_AND_ASSIGN(PermissionManager);
96 }; 102 };
97 103
98 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_MANAGER_H_ 104 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698