From 5b93dc74e6ce01ff4a5a6ae2b7e022976cebceb5 Mon Sep 17 00:00:00 2001 From: Adam Roben Date: Thu, 26 Jun 2014 16:27:58 -0400 Subject: [PATCH] Update BrowserContext for Chrome 35 --- brightray/browser/browser_context.cc | 26 ++++++++++++++++++++++++-- brightray/browser/browser_context.h | 19 +++++++++++++++++-- 2 files changed, 41 insertions(+), 4 deletions(-) diff --git a/brightray/browser/browser_context.cc b/brightray/browser/browser_context.cc index f2bd0e82923..d82f4bc256e 100644 --- a/brightray/browser/browser_context.cc +++ b/brightray/browser/browser_context.cc @@ -155,14 +155,36 @@ net::URLRequestContextGetter* return GetRequestContext(); } -void BrowserContext::RequestMIDISysExPermission( +void BrowserContext::RequestMidiSysExPermission( int render_process_id, int render_view_id, + int bridge_id, const GURL& requesting_frame, - const MIDISysExPermissionCallback& callback) { + bool user_gesture, + const MidiSysExPermissionCallback& callback) { callback.Run(false); } +void BrowserContext::CancelMidiSysExPermissionRequest( + int render_process_id, + int render_view_id, + int bridge_id, + const GURL& requesting_frame) { +} + +void BrowserContext::RequestProtectedMediaIdentifierPermission( + int render_process_id, + int render_view_id, + int bridge_id, + int group_id, + const GURL& requesting_frame, + const ProtectedMediaIdentifierPermissionCallback& callback) { + callback.Run(false); +} + +void BrowserContext::CancelProtectedMediaIdentifierPermissionRequests(int group_id) { +} + content::ResourceContext* BrowserContext::GetResourceContext() { return resource_context_.get(); } diff --git a/brightray/browser/browser_context.h b/brightray/browser/browser_context.h index 667d6a4802f..a43d2380da1 100644 --- a/brightray/browser/browser_context.h +++ b/brightray/browser/browser_context.h @@ -55,11 +55,26 @@ class BrowserContext : public content::BrowserContext { virtual net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( const base::FilePath& partition_path, bool in_memory); - virtual void RequestMIDISysExPermission( + virtual void RequestMidiSysExPermission( int render_process_id, int render_view_id, + int bridge_id, const GURL& requesting_frame, - const MIDISysExPermissionCallback&) OVERRIDE; + bool user_gesture, + const MidiSysExPermissionCallback& callback) OVERRIDE; + virtual void CancelMidiSysExPermissionRequest( + int render_process_id, + int render_view_id, + int bridge_id, + const GURL& requesting_frame) OVERRIDE; + virtual void RequestProtectedMediaIdentifierPermission( + int render_process_id, + int render_view_id, + int bridge_id, + int group_id, + const GURL& requesting_frame, + const ProtectedMediaIdentifierPermissionCallback& callback) OVERRIDE; + virtual void CancelProtectedMediaIdentifierPermissionRequests(int group_id) OVERRIDE; virtual content::ResourceContext* GetResourceContext() OVERRIDE; virtual content::DownloadManagerDelegate* GetDownloadManagerDelegate() OVERRIDE;