Repository navigation
refactor: make api::NetLog inherit from gin::Wrappable - #48308
Merged
Merged
Conversation
deepak1556
reviewed
Sep 12, 2025
deepak1556
reviewed
Sep 12, 2025
ckerr
force-pushed
the
refactor/gin-wrappable-api-net-log
branch
from
September 15, 2025 14:08
efc2495 to
309e97f
Compare
deepak1556
approved these changes
Sep 15, 2025
deepak1556
reviewed
Sep 15, 2025
| + kElectronEvent, // gin_helper::internal::Event | ||
| + kElectronNetLog, // electron::api::NetLog | ||
| + kElectronSession, // electron::api::Session | ||
| + kLastPointerTag = kElectronEvent, |
Member
There was a problem hiding this comment.
kLastPointerTag should be updated, in this case kElectronSession but can be done in the next refactor PR.
Member
Author
There was a problem hiding this comment.
Good catch. I'll watch out for that next time I sort the group 👍
|
No Release Notes |
kigh-ota
pushed a commit
to kigh-ota/electron
that referenced
this pull request
Sep 30, 2025
* refactor: remove unused v8::Isolate* arg from NetLog ctor * refactor: allocate api::NetLog on cpp heap * refactor: make electron::api::Session::net_log_ a cppgc::Member<api::NetLog> * refactor: remove unnecessary EscapableHandleScope * chore: code style consistency
2 tasks done
nilayarya
pushed a commit
to nilayarya/electron
that referenced
this pull request
Nov 21, 2025
* refactor: remove unused v8::Isolate* arg from NetLog ctor * refactor: allocate api::NetLog on cpp heap * refactor: make electron::api::Session::net_log_ a cppgc::Member<api::NetLog> * refactor: remove unnecessary EscapableHandleScope * chore: code style consistency
nilayarya
added a commit
to nilayarya/electron
that referenced
this pull request
Nov 21, 2025
* refactor: remove unused v8::Isolate* arg from NetLog ctor * refactor: allocate api::NetLog on cpp heap * refactor: make electron::api::Session::net_log_ a cppgc::Member<api::NetLog> * refactor: remove unnecessary EscapableHandleScope * chore: code style consistency
nilayarya
added a commit
to nilayarya/electron
that referenced
this pull request
Nov 21, 2025
* refactor: remove unused v8::Isolate* arg from NetLog ctor * refactor: allocate api::NetLog on cpp heap * refactor: make electron::api::Session::net_log_ a cppgc::Member<api::NetLog> * refactor: remove unnecessary EscapableHandleScope * chore: code style consistency
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Part of #47922
electron::api::NetLogto inherit fromgin::Wrappableinstead ofgin_helper::DeprecatedWrappableelectron::api::Session::net_log_to be acppgc::Persistent<NetLog>instead of av8::TracedReference<v8::Value>v8::Isolate*argument fromelectron::api::NetLogconstructorI haven't added any new tests for this: since
Session::net_log_persists for the life of the session, it seems like the existing tests should be enough to exercise this refactor? I'd welcome a second opinion on this.Checklist
npm testpassesRelease Notes
Notes: none.