| 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 6d2583624a05e87d74cee32fd102f55d2695c701..5e1bfdcd959b6294e1a084b40de1714cafa70be9 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,29 @@ 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,
|
| + 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 OffTheRecordProfileImpl::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);
|
| +}
|
| +
|
| net::URLRequestContextGetter*
|
| OffTheRecordProfileImpl::GetRequestContextForExtensions() {
|
| return io_data_.GetExtensionsRequestContextGetter().get();
|
|
|