Remove redundant references to gurl.h from multiple header files
Minor
Commit Hash:
eabf39b452ebc952a308a160213d64c9e66a8bbf
Commit Time: 2025-06-04 20:54:46+00:00
Impact Level: Minor
Generated By: webview2-upstream-sentry
Upstream Review:
View Upstream Review 🔗
📋 Summary
This submission removes redundant references to gurl.h from 24 header files under the //content directory. None of these header files directly reference the GURL type, so including gurl.h is unnecessary. The affected files span multiple modules, including drag source management, navigation throttling, IndexedDB, interest groups, media rendering, Pepper plugins, web bundle handling, digital identity authentication, JavaScript dialog management, audio output selection, file error injection, media interface factory, worker threads, auction workloads, and also include a Remote Cocoa-related file, web_drag_source_mac.h. This change is purely header file cleanup and does not involve any functional or logical modifications.
🎯 Impact Analysis
This change has minimal impact on WebView2Mac. Although the affected web_drag_source_mac.h file belongs to the Remote Cocoa component, the modification only removes an unnecessary reference to the gurl.h header file. The actual implementation file, web_drag_source_mac.mm, still includes the required URL-related header files (such as url/origin.h and url/url_constants.h), ensuring that all URL-related functionalities work correctly. The core functionalities of the WebDragSource class, including drag-and-drop, URL handling logic, and file downloading, are not affected. This header file cleanup helps reduce compilation dependencies and may slightly improve build speed, but it does not affect the runtime behavior or performance of WebView2Mac.
Impacted Classes:
WebDragSource