Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(429)

Unified Diff: content/public/browser/browser_context.h

Issue 107413006: Dismiss EME infobar when WebMediaPlayer is destroyed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698