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

Side by Side Diff: chrome/browser/permissions/permission_manager.h

Issue 1767423002: [Do not commit] Track revocations in content_settings::Observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 content::PermissionStatus status); 77 content::PermissionStatus status);
78 78
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 ContentSetting previous_value,
87 std::string resource_identifier) override; 88 std::string resource_identifier) override;
88 89
89 Profile* profile_; 90 Profile* profile_;
90 PendingRequestsMap pending_requests_; 91 PendingRequestsMap pending_requests_;
91 SubscriptionsMap subscriptions_; 92 SubscriptionsMap subscriptions_;
92 93
93 base::WeakPtrFactory<PermissionManager> weak_ptr_factory_; 94 base::WeakPtrFactory<PermissionManager> weak_ptr_factory_;
94 95
95 DISALLOW_COPY_AND_ASSIGN(PermissionManager); 96 DISALLOW_COPY_AND_ASSIGN(PermissionManager);
96 }; 97 };
97 98
98 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_MANAGER_H_ 99 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698