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

Unified Diff: chrome/browser/content_settings/permission_queue_controller.h

Issue 107413006: Dismiss EME infobar when WebMediaPlayer is destroyed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make FakeProfile class happy Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/content_settings/permission_queue_controller.h
diff --git a/chrome/browser/content_settings/permission_queue_controller.h b/chrome/browser/content_settings/permission_queue_controller.h
index eabe256cbcfa90a35e1e263f58a532ca6fd9832f..c95a28fc9c2a95e14a436709e37b340090390bc6 100644
--- a/chrome/browser/content_settings/permission_queue_controller.h
+++ b/chrome/browser/content_settings/permission_queue_controller.h
@@ -40,6 +40,9 @@ class PermissionQueueController : public content::NotificationObserver {
// Cancels a specific infobar request.
void CancelInfoBarRequest(const PermissionRequestID& id);
+ // Cancels all infobar requests that match |group_id|.
+ void CancelInfoBarRequests(int group_id);
+
// Called by the InfoBarDelegate to notify permission has been set.
// It'll notify and dismiss any other pending InfoBar request for the same
// |requesting_frame| and embedder.
@@ -56,10 +59,10 @@ class PermissionQueueController : public content::NotificationObserver {
const content::NotificationDetails& details) OVERRIDE;
private:
- class PendingInfoBarRequest;
+ class PendingInfobarRequest;
class RequestEquals;
- typedef std::vector<PendingInfoBarRequest> PendingInfoBarRequests;
+ typedef std::vector<PendingInfobarRequest> PendingInfobarRequests;
// Returns true if a geolocation infobar is already visible for the tab
// corresponding to |id|.
@@ -72,7 +75,7 @@ class PermissionQueueController : public content::NotificationObserver {
// tab.
void ShowQueuedInfoBarForTab(const PermissionRequestID& id);
- void ClearPendingInfoBarRequestsForTab(const PermissionRequestID& id);
+ void ClearPendingInfobarRequestsForTab(const PermissionRequestID& id);
void RegisterForInfoBarNotifications(InfoBarService* infobar_service);
void UnregisterForInfoBarNotifications(InfoBarService* infobar_service);
@@ -84,7 +87,7 @@ class PermissionQueueController : public content::NotificationObserver {
Profile* const profile_;
ContentSettingsType type_;
- PendingInfoBarRequests pending_infobar_requests_;
+ PendingInfobarRequests pending_infobar_requests_;
bool in_shutdown_;
DISALLOW_COPY_AND_ASSIGN(PermissionQueueController);

Powered by Google App Engine
This is Rietveld 408576698