Let embedders add their own protocol handlers
This commit is contained in:
parent
67081a64b0
commit
48878af0db
1 changed files with 4 additions and 1 deletions
|
@ -29,9 +29,12 @@ protected:
|
||||||
// lifetime of the returned instance is managed by the caller.
|
// lifetime of the returned instance is managed by the caller.
|
||||||
virtual BrowserMainParts* OverrideCreateBrowserMainParts(const content::MainFunctionParams&);
|
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:
|
private:
|
||||||
virtual content::BrowserMainParts* CreateBrowserMainParts(const content::MainFunctionParams&) OVERRIDE;
|
virtual content::BrowserMainParts* CreateBrowserMainParts(const content::MainFunctionParams&) OVERRIDE;
|
||||||
virtual net::URLRequestContextGetter* CreateRequestContext(content::BrowserContext*, content::ProtocolHandlerMap*) OVERRIDE;
|
|
||||||
virtual void ShowDesktopNotification(
|
virtual void ShowDesktopNotification(
|
||||||
const content::ShowDesktopNotificationHostMsgParams&,
|
const content::ShowDesktopNotificationHostMsgParams&,
|
||||||
int render_process_id,
|
int render_process_id,
|
||||||
|
|
Loading…
Reference in a new issue