| Index: chrome/browser/profiles/profile_impl.cc
|
| diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
|
| index df8a22a8a051f181dcd855a330ba4a32e330fb51..3db74121b562a899fd77aa777cfd8093a4eeeffc 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"
|
| @@ -979,6 +981,30 @@ 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,
|
| + 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 ProfileImpl::CancelProtectedMediaIdentifierPermissionRequests(
|
| + int group_id) {
|
| + ProtectedMediaIdentifierPermissionContext* context =
|
| + ProtectedMediaIdentifierPermissionContextFactory::GetForProfile(this);
|
| + context->CancelProtectedMediaIdentifierPermissionRequests(group_id);
|
| +}
|
| +
|
| content::ResourceContext* ProfileImpl::GetResourceContext() {
|
| return io_data_.GetResourceContext();
|
| }
|
|
|