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

Unified Diff: chrome/browser/profiles/off_the_record_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: added comments in PermissionQueueController 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/off_the_record_profile_impl.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc
index d1a0b27719569df077218ff664aa4b7a583f3998..41d9a7e15f33e806f3000fbac0cf244ea20a89b2 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -29,6 +29,8 @@
#include "chrome/browser/io_thread.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/net/pref_proxy_config_tracker.h"
#include "chrome/browser/net/proxy_service_factory.h"
#include "chrome/browser/plugins/chrome_plugin_service_filter.h"
@@ -321,6 +323,30 @@ void OffTheRecordProfileImpl::CancelMIDISysExPermissionRequest(
render_process_id, render_view_id, bridge_id, requesting_frame);
}
+void OffTheRecordProfileImpl::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 OffTheRecordProfileImpl::CancelProtectedMediaIdentifierPermissionRequests(
+ int group_id) {
+ ProtectedMediaIdentifierPermissionContext* context =
+ ProtectedMediaIdentifierPermissionContextFactory::GetForProfile(this);
+ context->CancelProtectedMediaIdentifierPermissionRequests(group_id);
+}
+
net::URLRequestContextGetter*
OffTheRecordProfileImpl::GetRequestContextForExtensions() {
return io_data_.GetExtensionsRequestContextGetter().get();

Powered by Google App Engine
This is Rietveld 408576698