Handle external protocols with the network service.

https://chromium-review.googlesource.com/c/chromium/src/+/956091
This commit is contained in:
Samuel Attard 2018-07-22 01:05:21 +10:00 committed by Aleksei Kuzmin
parent dde194d853
commit aa6d769229
4 changed files with 55 additions and 44 deletions

View file

@ -122,6 +122,14 @@ class AtomBrowserClient : public brightray::BrowserClient,
void RenderProcessExited(content::RenderProcessHost* host,
base::TerminationStatus status,
int exit_code) override;
bool HandleExternalProtocol(
const GURL& url,
content::ResourceRequestInfo::WebContentsGetter web_contents_getter,
int child_id,
content::NavigationUIData* navigation_data,
bool is_main_frame,
ui::PageTransition page_transition,
bool has_user_gesture) override;
private:
struct ProcessPreferences {