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
Refactor UrlOpener to singleton and simplify C API
Convert UrlOpener to a process-local singleton (UrlOpener::GetInstance()) and make IsSupported() a const instance method. Remove the opaque native_url_opener_t and the create/destroy C API functions; native_url_opener_is_supported() now takes no handle and native_url_opener_open(const char*) replaces the instance-based open call. Rename internal helper MakeResult -> MakeUrlOpenResult, update platform implementations to provide GetInstance(), and add deleted copy/move constructors and a private default ctor to UrlOpener. Update the C example to match the simplified API. These changes simplify lifetime management and usage of the URL opener across platforms.
0 commit comments