Browse Source

extra parameters to BrowserClient::HandleExternalProtocol

https://chromium-review.googlesource.com/c/1318976
Jeremy Apthorp 6 years ago
parent
commit
70887ae21a
2 changed files with 6 additions and 2 deletions
  1. 3 1
      atom/browser/atom_browser_client.cc
  2. 3 1
      atom/browser/atom_browser_client.h

+ 3 - 1
atom/browser/atom_browser_client.cc

@@ -804,7 +804,9 @@ bool AtomBrowserClient::HandleExternalProtocol(
     content::NavigationUIData* navigation_data,
     bool is_main_frame,
     ui::PageTransition page_transition,
-    bool has_user_gesture) {
+    bool has_user_gesture,
+    const std::string& method,
+    const net::HttpRequestHeaders& headers) {
   base::PostTaskWithTraits(
       FROM_HERE, {BrowserThread::UI},
       base::BindOnce(&HandleExternalProtocolInUI, url, web_contents_getter,

+ 3 - 1
atom/browser/atom_browser_client.h

@@ -167,7 +167,9 @@ class AtomBrowserClient : public content::ContentBrowserClient,
       content::NavigationUIData* navigation_data,
       bool is_main_frame,
       ui::PageTransition page_transition,
-      bool has_user_gesture) override;
+      bool has_user_gesture,
+      const std::string& method,
+      const net::HttpRequestHeaders& headers) override;
 
  private:
   struct ProcessPreferences {