-
Notifications
You must be signed in to change notification settings - Fork 0
[CLEAN] Synthetic Benchmark PR #48762 - refactor: make api::WebRequest inherit from gin::Wrappable
#33
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
base: base_pr_48762_20251204_6917
Are you sure you want to change the base?
[CLEAN] Synthetic Benchmark PR #48762 - refactor: make api::WebRequest inherit from gin::Wrappable
#33
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||
User description
Benchmark PR electron#48762
Type: Clean (correct implementation)
Original PR Title: refactor: make
api::WebRequestinherit fromgin::WrappableOriginal PR Description: #### Description of Change
Part of electron#47922
electron::api::WebRequestto inherit fromgin::Wrappableinstead ofgin_helper::DeprecatedWrappableelectron::api::Session::web_request_to be acppgc::Member<WebRequest>instead of av8::TracedReference<v8::Value>v8::Isolate*argument fromelectron::api::WebRequestconstructorWebRequest::Create(),WebRequest::Find(),andWebRequest::FindOrCreate()to return anapi::WebRequest*CC @deepak1556 as a electron#47922 stakeholder. All reviews welcomed.
Checklist
npm testpassesRelease Notes
Notes: none
Original PR URL: electron#48762
PR Type
Enhancement
Description
Refactor
WebRequestto inherit fromgin::Wrappableinstead ofgin_helper::DeprecatedWrappableChange
web_request_storage fromv8::TracedReferencetocppgc::Memberfor garbage collectionUpdate
WebRequest::Create()and related methods to return raw pointers instead of handlesImplement proper garbage collection tracing with
cppgc::WeakPersistentfor dependent objectsDiagram Walkthrough
File Walkthrough
8 files
Change base class and storage mechanism for WebRequestImplement gin::Wrappable interface and garbage collectionUpdate WebRequest storage to cppgc::MemberSimplify WebRequest getter to return raw pointerUpdate WebRequest usage to work with raw pointersChange web_request_ to cppgc::WeakPersistentUpdate web_request_ member access for new storage typeChange web_request_ to cppgc::WeakPersistent1 files
Add kElectronWebRequest to wrappable pointer tags