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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 107413006: Dismiss EME infobar when WebMediaPlayer is destroyed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Version2: added group_id to PermissionRequestID class Created 7 years 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/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index df8a22a8a051f181dcd855a330ba4a32e330fb51..3db74121b562a899fd77aa777cfd8093a4eeeffc 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -47,6 +47,8 @@
#include "chrome/browser/history/top_sites.h"
#include "chrome/browser/media/chrome_midi_permission_context.h"
#include "chrome/browser/media/chrome_midi_permission_context_factory.h"
+#include "chrome/browser/media/protected_media_identifier_permission_context.h"
+#include "chrome/browser/media/protected_media_identifier_permission_context_factory.h"
#include "chrome/browser/metrics/metrics_service.h"
#include "chrome/browser/net/chrome_url_request_context.h"
#include "chrome/browser/net/net_pref_observer.h"
@@ -979,6 +981,30 @@ void ProfileImpl::CancelMIDISysExPermissionRequest(
render_process_id, render_view_id, bridge_id, requesting_frame);
}
+void ProfileImpl::RequestProtectedMediaIdentifierPermission(
+ int render_process_id,
+ int render_view_id,
+ int bridge_id,
+ int group_id,
+ const GURL& requesting_frame,
+ const ProtectedMediaIdentifierPermissionCallback& callback) {
+ ProtectedMediaIdentifierPermissionContext* context =
+ ProtectedMediaIdentifierPermissionContextFactory::GetForProfile(this);
+ context->RequestProtectedMediaIdentifierPermission(render_process_id,
+ render_view_id,
+ bridge_id,
+ group_id,
+ requesting_frame,
+ callback);
+}
+
+void ProfileImpl::CancelProtectedMediaIdentifierPermissionRequests(
+ int group_id) {
+ ProtectedMediaIdentifierPermissionContext* context =
+ ProtectedMediaIdentifierPermissionContextFactory::GetForProfile(this);
+ context->CancelProtectedMediaIdentifierPermissionRequests(group_id);
+}
+
content::ResourceContext* ProfileImpl::GetResourceContext() {
return io_data_.GetResourceContext();
}

Powered by Google App Engine
This is Rietveld 408576698