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

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: 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 c84558eae9f712c904cfd6206c40153c333daa2b..062229b7c6fbea4253b826c42191e339c0c37794 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"
@@ -946,6 +948,29 @@ 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,
+ const GURL& requesting_frame,
+ const ProtectedMediaIdentifierPermissionCallback& callback) {
+ ProtectedMediaIdentifierPermissionContext* context =
+ ProtectedMediaIdentifierPermissionContextFactory::GetForProfile(this);
+ context->RequestProtectedMediaIdentifierPermission(
+ render_process_id, render_view_id, bridge_id, requesting_frame, callback);
+}
+
+void ProfileImpl::CancelProtectedMediaIdentifierPermissionRequest(
+ int render_process_id,
+ int render_view_id,
+ int bridge_id,
+ const GURL& requesting_frame) {
+ ProtectedMediaIdentifierPermissionContext* context =
+ ProtectedMediaIdentifierPermissionContextFactory::GetForProfile(this);
+ context->CancelProtectedMediaIdentifierPermissionRequest(
+ render_process_id, render_view_id, bridge_id, requesting_frame);
+}
+
content::ResourceContext* ProfileImpl::GetResourceContext() {
return io_data_.GetResourceContext();
}

Powered by Google App Engine
This is Rietveld 408576698