| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_QUEUE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_QUEUE_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_QUEUE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_QUEUE_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/lazy_instance.h" |
| 9 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "chrome/browser/permissions/permission_prompt_decision_log.h" |
| 10 #include "components/content_settings/core/common/content_settings.h" | 12 #include "components/content_settings/core/common/content_settings.h" |
| 11 #include "components/content_settings/core/common/content_settings_types.h" | 13 #include "components/content_settings/core/common/content_settings_types.h" |
| 12 #include "content/public/browser/notification_observer.h" | 14 #include "content/public/browser/notification_observer.h" |
| 13 #include "content/public/browser/notification_registrar.h" | 15 #include "content/public/browser/notification_registrar.h" |
| 14 #include "content/public/browser/permission_type.h" | 16 #include "content/public/browser/permission_type.h" |
| 15 | 17 |
| 16 class GURL; | 18 class GURL; |
| 17 class PermissionRequestID; | 19 class PermissionRequestID; |
| 18 class InfoBarService; | 20 class InfoBarService; |
| 19 class Profile; | 21 class Profile; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // tab. | 86 // tab. |
| 85 void ShowQueuedInfoBarForTab(const PermissionRequestID& id); | 87 void ShowQueuedInfoBarForTab(const PermissionRequestID& id); |
| 86 | 88 |
| 87 void ClearPendingInfobarRequestsForTab(const PermissionRequestID& id); | 89 void ClearPendingInfobarRequestsForTab(const PermissionRequestID& id); |
| 88 | 90 |
| 89 void RegisterForInfoBarNotifications(InfoBarService* infobar_service); | 91 void RegisterForInfoBarNotifications(InfoBarService* infobar_service); |
| 90 void UnregisterForInfoBarNotifications(InfoBarService* infobar_service); | 92 void UnregisterForInfoBarNotifications(InfoBarService* infobar_service); |
| 91 | 93 |
| 92 content::NotificationRegistrar registrar_; | 94 content::NotificationRegistrar registrar_; |
| 93 | 95 |
| 96 base::LazyInstance<PermissionPromptDecisionLog> prompt_decision_log_ = |
| 97 LAZY_INSTANCE_INITIALIZER; |
| 98 |
| 94 Profile* const profile_; | 99 Profile* const profile_; |
| 95 content::PermissionType permission_type_; | 100 content::PermissionType permission_type_; |
| 96 ContentSettingsType content_settings_type_; | 101 ContentSettingsType content_settings_type_; |
| 97 PendingInfobarRequests pending_infobar_requests_; | 102 PendingInfobarRequests pending_infobar_requests_; |
| 98 bool in_shutdown_; | 103 bool in_shutdown_; |
| 99 | 104 |
| 100 DISALLOW_COPY_AND_ASSIGN(PermissionQueueController); | 105 DISALLOW_COPY_AND_ASSIGN(PermissionQueueController); |
| 101 }; | 106 }; |
| 102 | 107 |
| 103 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_QUEUE_CONTROLLER_H_ | 108 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_QUEUE_CONTROLLER_H_ |
| OLD | NEW |