New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
session: api to allow handling certificate verification #3344
session: api to allow handling certificate verification #3344
Conversation
9c11e95
to
6bb8736
Compare
Can you make it an |
|
I didn't notice it is per-BrowserCntext, we can make it an event of Making this API a method of |
40acae6
to
a9be697
Compare
yeah should have been an api of session. Thanks! have updated. |
I still prefer using the |
21dfb74
to
46b3c2b
Compare
@zcbenz have updated. |
46b3c2b
to
37e6e6f
Compare
} // namespace | ||
|
||
Session::Session(AtomBrowserContext* browser_context) | ||
: browser_context_(browser_context) { | ||
AttachAsUserData(browser_context); | ||
|
||
// Observe Browser to get certificate verification notification. | ||
Browser::Get()->AddObserver(this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Browser
is application-wide, not session-wide. You can probably add a delegate class to AtomCertVerifier
.
ba3ba9f
to
7455a19
Compare
@zcbenz have made the changes, thanks! |
verify_result_, | ||
base::Bind(&CertVerifyRequest::RunResult, | ||
weak_ptr_factory_.GetWeakPtr()), | ||
&new_out_req_, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should pass the out_req
from AtomCertVerifier::Verify
here.
7455a19
to
29bb1ec
Compare
29bb1ec
to
92c3ee8
Compare
👍 |
session: api to allow handling certificate verification
Fixes #3330
Depends on electron-archive/brightray#162