| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GEOLOCATION_GEOLOCATION_INFOBAR_QUEUE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_QUEUE_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_QUEUE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_QUEUE_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "content/public/browser/notification_observer.h" | 9 #include "content/public/browser/notification_observer.h" |
| 10 #include "content/public/browser/notification_registrar.h" | 10 #include "content/public/browser/notification_registrar.h" |
| 11 | 11 |
| 12 class GURL; | 12 class GURL; |
| 13 class GeolocationConfirmInfoBarDelegate; | |
| 14 class GeolocationPermissionRequestID; | 13 class GeolocationPermissionRequestID; |
| 15 class InfoBarService; | 14 class InfoBarService; |
| 16 class Profile; | 15 class Profile; |
| 17 | 16 |
| 18 // This class controls the geolocation infobar queue per profile, and it's | 17 // This class controls the geolocation infobar queue per profile, and it's |
| 19 // used by GeolocationPermissionContext. | 18 // used by GeolocationPermissionContext. |
| 20 // An alternate approach would be to have this queue per tab, and use | 19 // An alternate approach would be to have this queue per tab, and use |
| 21 // notifications to broadcast when permission is set / listen to notification to | 20 // notifications to broadcast when permission is set / listen to notification to |
| 22 // cancel pending requests. This may be specially useful if there are other | 21 // cancel pending requests. This may be specially useful if there are other |
| 23 // things listening for such notifications. | 22 // things listening for such notifications. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 void UpdateContentSetting( | 80 void UpdateContentSetting( |
| 82 const GURL& requesting_frame, const GURL& embedder, bool allowed); | 81 const GURL& requesting_frame, const GURL& embedder, bool allowed); |
| 83 | 82 |
| 84 content::NotificationRegistrar registrar_; | 83 content::NotificationRegistrar registrar_; |
| 85 | 84 |
| 86 Profile* const profile_; | 85 Profile* const profile_; |
| 87 PendingInfoBarRequests pending_infobar_requests_; | 86 PendingInfoBarRequests pending_infobar_requests_; |
| 88 }; | 87 }; |
| 89 | 88 |
| 90 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_QUEUE_CONTROLLER_H_ | 89 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_QUEUE_CONTROLLER_H_ |
| OLD | NEW |