From 48878af0db76979d4677eacdaa3220bf83d24324 Mon Sep 17 00:00:00 2001 From: Adam Roben Date: Tue, 23 Apr 2013 15:50:17 -0400 Subject: [PATCH] Let embedders add their own protocol handlers --- brightray/browser/browser_client.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/brightray/browser/browser_client.h b/brightray/browser/browser_client.h index 9a4f3a3bb524..cb8143b71c98 100644 --- a/brightray/browser/browser_client.h +++ b/brightray/browser/browser_client.h @@ -29,9 +29,12 @@ protected: // lifetime of the returned instance is managed by the caller. virtual BrowserMainParts* OverrideCreateBrowserMainParts(const content::MainFunctionParams&); + // Subclasses that override this (e.g., to provide their own protocol handlers) should call this + // implementation after doing their own work. + virtual net::URLRequestContextGetter* CreateRequestContext(content::BrowserContext*, content::ProtocolHandlerMap*) OVERRIDE; + private: virtual content::BrowserMainParts* CreateBrowserMainParts(const content::MainFunctionParams&) OVERRIDE; - virtual net::URLRequestContextGetter* CreateRequestContext(content::BrowserContext*, content::ProtocolHandlerMap*) OVERRIDE; virtual void ShowDesktopNotification( const content::ShowDesktopNotificationHostMsgParams&, int render_process_id,