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