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

Unified Diff: chrome/browser/profiles/off_the_record_profile_impl.cc

Issue 107413006: Dismiss EME infobar when WebMediaPlayer is destroyed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make FakeProfile class happy Created 6 years, 11 months 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
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.h ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d1a0b27719569df077218ff664aa4b7a583f3998..3fd940a667dcd165d73c07b79e218f34c707500e 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -55,6 +55,11 @@
#include "net/http/transport_security_state.h"
#include "webkit/browser/database/database_tracker.h"
+#if defined(OS_ANDROID)
+#include "chrome/browser/media/protected_media_identifier_permission_context.h"
+#include "chrome/browser/media/protected_media_identifier_permission_context_factory.h"
+#endif // defined(OS_ANDROID)
+
#if defined(OS_ANDROID) || defined(OS_IOS)
#include "base/prefs/scoped_user_pref_update.h"
#include "chrome/browser/prefs/proxy_prefs.h"
@@ -321,6 +326,39 @@ 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,
+ int group_id,
+ const GURL& requesting_frame,
+ const ProtectedMediaIdentifierPermissionCallback& callback) {
+#if defined(OS_ANDROID)
+ ProtectedMediaIdentifierPermissionContext* context =
+ ProtectedMediaIdentifierPermissionContextFactory::GetForProfile(this);
+ context->RequestProtectedMediaIdentifierPermission(render_process_id,
+ render_view_id,
+ bridge_id,
+ group_id,
+ requesting_frame,
+ callback);
+#else
+ NOTIMPLEMENTED();
+ callback.Run(false);
+#endif // defined(OS_ANDROID)
+}
+
+void OffTheRecordProfileImpl::CancelProtectedMediaIdentifierPermissionRequests(
+ int group_id) {
+#if defined(OS_ANDROID)
+ ProtectedMediaIdentifierPermissionContext* context =
+ ProtectedMediaIdentifierPermissionContextFactory::GetForProfile(this);
+ context->CancelProtectedMediaIdentifierPermissionRequests(group_id);
+#else
+ NOTIMPLEMENTED();
+#endif // defined(OS_ANDROID)
+}
+
net::URLRequestContextGetter*
OffTheRecordProfileImpl::GetRequestContextForExtensions() {
return io_data_.GetExtensionsRequestContextGetter().get();
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.h ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698