| Index: content/public/browser/browser_context.h
|
| diff --git a/content/public/browser/browser_context.h b/content/public/browser/browser_context.h
|
| index d6d89501039f59935b1939c271f38fb9c8af84ce..aea845215486b86c441d48eb9892a0562b50210e 100644
|
| --- a/content/public/browser/browser_context.h
|
| +++ b/content/public/browser/browser_context.h
|
| @@ -143,6 +143,24 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
|
| int bridge_id,
|
| const GURL& requesting_frame) = 0;
|
|
|
| + typedef base::Callback<void(bool)> ProtectedMediaIdentifierPermissionCallback;
|
| +
|
| + // Request permission to access protected media identifier. The callback will
|
| + // tell whether it's allowed.
|
| + virtual void RequestProtectedMediaIdentifierPermission(
|
| + int render_process_id,
|
| + int render_view_id,
|
| + int bridge_id,
|
| + const GURL& requesting_frame,
|
| + const ProtectedMediaIdentifierPermissionCallback& callback) = 0;
|
| +
|
| + // Cancels a pending protected media identifier permission request.
|
| + virtual void CancelProtectedMediaIdentifierPermissionRequest(
|
| + int render_process_id,
|
| + int render_view_id,
|
| + int bridge_id,
|
| + const GURL& requesting_frame) = 0;
|
| +
|
| // Returns the resource context.
|
| virtual ResourceContext* GetResourceContext() = 0;
|
|
|
|
|