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(); |