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

Unified Diff: chrome/browser/media/protected_media_identifier_permission_context.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/media/protected_media_identifier_permission_context.h
diff --git a/chrome/browser/media/protected_media_identifier_permission_context.h b/chrome/browser/media/protected_media_identifier_permission_context.h
index f7c8084406270144bc059cc14fb785b6258aab95..eaa53313c64c920fcd0f651b8dc4addbb62b0463 100644
--- a/chrome/browser/media/protected_media_identifier_permission_context.h
+++ b/chrome/browser/media/protected_media_identifier_permission_context.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_MEDIA_PROTECTED_MEDIA_IDENTIFIER_PERMISSION_CONTEXT_H_
#define CHROME_BROWSER_MEDIA_PROTECTED_MEDIA_IDENTIFIER_PERMISSION_CONTEXT_H_
+#include <map>
#include <string>
#include "base/memory/scoped_ptr.h"
@@ -28,12 +29,12 @@ class ProtectedMediaIdentifierPermissionContext
void RequestProtectedMediaIdentifierPermission(
int render_process_id,
int render_view_id,
+ int bridge_id,
+ int group_id,
const GURL& requesting_frame,
const base::Callback<void(bool)>& callback);
- void CancelProtectedMediaIdentifierPermissionRequest(
- int render_process_id,
- int render_view_id,
- const GURL& requesting_frame);
+ void CancelProtectedMediaIdentifierPermissionRequests(
+ int group_id);
// Called on the UI thread when the profile is about to be destroyed.
void ShutdownOnUIThread();
@@ -81,8 +82,8 @@ class ProtectedMediaIdentifierPermissionContext
// provide additional UI flow. Called on the UI thread.
PermissionQueueController* CreateQueueController();
- // Removes any pending InfoBar request.
- void CancelPendingInfoBarRequest(const PermissionRequestID& id);
+ // Removes pending InfoBar requests that match |group_id|.
+ void CancelPendingInfobarRequests(int group_id);
// These must only be accessed from the UI thread.
Profile* const profile_;

Powered by Google App Engine
This is Rietveld 408576698