feat: support app#login event for utility process net requests (#42631)
* feat: support app#login event for utility process net requests
* chore: address review feedback
* GlobalRequestID: Avoid unwanted inlining and narrowing int conversions
Refs 5702737
This commit is contained in:
parent
62406708cd
commit
9b166b3ed4
17 changed files with 536 additions and 37 deletions
|
@ -5,9 +5,9 @@
|
|||
#ifndef ELECTRON_SHELL_BROWSER_LOGIN_HANDLER_H_
|
||||
#define ELECTRON_SHELL_BROWSER_LOGIN_HANDLER_H_
|
||||
|
||||
#include "base/process/process_handle.h"
|
||||
#include "content/public/browser/content_browser_client.h"
|
||||
#include "content/public/browser/login_delegate.h"
|
||||
#include "content/public/browser/web_contents_observer.h"
|
||||
|
||||
namespace content {
|
||||
class WebContents;
|
||||
|
@ -20,12 +20,12 @@ class Arguments;
|
|||
namespace electron {
|
||||
|
||||
// Handles HTTP basic auth.
|
||||
class LoginHandler : public content::LoginDelegate,
|
||||
private content::WebContentsObserver {
|
||||
class LoginHandler : public content::LoginDelegate {
|
||||
public:
|
||||
LoginHandler(const net::AuthChallengeInfo& auth_info,
|
||||
content::WebContents* web_contents,
|
||||
bool is_main_frame,
|
||||
base::ProcessId process_id,
|
||||
const GURL& url,
|
||||
scoped_refptr<net::HttpResponseHeaders> response_headers,
|
||||
bool first_auth_attempt,
|
||||
|
@ -38,7 +38,9 @@ class LoginHandler : public content::LoginDelegate,
|
|||
|
||||
private:
|
||||
void EmitEvent(net::AuthChallengeInfo auth_info,
|
||||
content::WebContents* web_contents,
|
||||
bool is_main_frame,
|
||||
base::ProcessId process_id,
|
||||
const GURL& url,
|
||||
scoped_refptr<net::HttpResponseHeaders> response_headers,
|
||||
bool first_auth_attempt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue