You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move from gin::DeprecatedWrappable to gin::Wrappable based on cppgc
Run with ProcessInitializationFlags::kNoInitializeCppgc for all processes, V8::Initialize takes care of cppgc initialization and isolateholder initialization takes care of cppheap setup as part of isolate initialization
Activity
deepak1556 commentedon Aug 1, 2025
The core parts of the transition for a simple wrappable object involves, example: https://chromium-review.googlesource.com/c/chromium/src/+/6523561
Header File:
gin::DeprecatedWrappable<T>=>gin::Wrappable<T>gin::DeprecatedWrapperInfo=>gin::WrapperInfogin::Wrappable::wrapper_info()to use the static variable, check the function declaration for reason around using virtual dispatch to access the static variable https://source.chromium.org/chromium/chromium/src/+/main:gin/wrappable.h;l=74-78gin::DeprecatedObjectTemplateBuilder=>gin::ObjectTemplateBuilderImplementation File:
gin/public/wrappable_pointer_tags.hhttps://source.chromium.org/chromium/chromium/src/+/main:gin/public/wrappable_pointer_tags.h. The tag will be used as type check when dereferencing a wrapper from the cpp heapgin::CreateHandlewill be replaced bycppgc::MakeGarbageCollected<T>which will return an pointerT*gin::ConvertToV8. This is possible because of the converters in https://source.chromium.org/chromium/chromium/src/+/main:gin/wrappable.h;l=108-148deepak1556 commentedon Aug 4, 2025
Pre-req:
gin_helper::EventEmitterMixin<T>inherit fromcppgc::GarbageCollectedMixingin_helper::SelfKeepAlive<T>that usescppgc::Persistentshell/browser
gin::Wrappabledock_which can instead be a v8::TracedReference with unified tracing, dock only lives as long as app is alive.dock_memberstatic base::NoDestructor<App>, hold acppgc::Persistent<App>on self to ensure the object doesn't get deallocated, ex: https://chromium-review.googlesource.com/c/chromium/src/+/6714865gin::Wrappablegin::Wrappableforelectron::api::DataPipeHolder#49495electron::api::DesktopCapturerto cppgc #51735api::Extensionsto cppgc #50932electron::api::GlobalShortcutto cppgc #50192gin::Wrappableforelectron::api::PowerMonitor#49509, @deepak1556 fix: shutdown crash when unregistering power notification on windows #50878gin::Wrappableinelectron::api::PowerSaveBlocker#49381electron::api::Protocolto cppgc #50857gin::Wrappableforelectron::api::Screen#49506api::ServiceWorkerContextto cppgc #50931electron::api::Trayto cppgc #50187api::WebRequestinherit fromgin::Wrappable#48762shell/common
JSChunkedDataPipeGetteragin::Wrappable, and make it acppgc::Memberof theSimpleURLLoaderWrapperclass, trace itshell/renderer
chore: move gin::DeprecatedWrappable to gin_helper
chore: move gin::DeprecatedWrappable to gin_helper
chore: move gin::DeprecatedWrappable to gin_helper
chore: move gin::DeprecatedWrappable to gin_helper (#47958)
chore: move gin::DeprecatedWrappable to gin_helper
chore: move gin::DeprecatedWrappable to gin_helper (#47958)
chore: move gin::DeprecatedWrappable to gin_helper (#47958)
chore: move gin::DeprecatedWrappable to gin_helper (#47996)
deepak1556 commentedon Aug 28, 2025
Following changes can be used to run the blink-gc-plugin to get some compile time sanity. The plugin was created for Oilpan project of Blink but it has been adopted to cover cppgc namespaces in https://chromium-review.googlesource.com/c/chromium/src/+/2655961
chore: move gin::DeprecatedWrappable to gin_helper (electron#47958)
deepak1556 commentedon Mar 26, 2026
Temporary hold off on transitioning any new classes till #50465 is merged and we got the clang plugin enabled by default on
main.deepak1556 commentedon Apr 10, 2026
Plugin has been enabled by default.
fix: address review findings and migrate WebSocketWrapper to gin::Wra…
feat: add net.WebSocket (#51593)
muhamadhidayat3781-ux commentedon Jun 7, 2026
deepak1556 commentedon Jun 10, 2026
Upstream removed the old classes https://chromium-review.googlesource.com/c/chromium/src/+/7837883, the patch maintained in 7e39ee1 can be removed once this transition is complete.
feat: add net.WebSocket (#52345)
feat: add net.WebSocket (#52344)