Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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_ |
| OLD | NEW |