[webkit-changes] [WebKit/WebKit] 129e64: Expose more type metadata to IPC test API

Alex Christensen noreply at github.com
Thu Mar 14 13:54:00 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 129e6466acb1ebebfb9b62b5c21956aa9950a716
      https://github.com/WebKit/WebKit/commit/129e6466acb1ebebfb9b62b5c21956aa9950a716
  Author: Alex Christensen <achristensen at apple.com>
  Date:   2024-03-14 (Thu, 14 Mar 2024)

  Changed paths:
    M Source/WebKit/NetworkProcess/webrtc/NetworkRTCProvider.messages.in
    M Source/WebKit/Scripts/generate-serializers.py
    M Source/WebKit/Scripts/webkit/messages.py
    M Source/WebKit/Scripts/webkit/tests/GeneratedSerializers.h
    M Source/WebKit/Scripts/webkit/tests/SerializedTypeInfo.cpp
    M Source/WebKit/Scripts/webkit/tests/TestSerializedType.serialization.in
    M Source/WebKit/Scripts/webkit/tests/WebKitPlatformGeneratedSerializers.cpp
    M Source/WebKit/Shared/Cocoa/ArgumentCodersCocoa.mm
    M Source/WebKit/Shared/Cocoa/WebCoreArgumentCodersCocoa.serialization.in
    M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in
    M Source/WebKit/WebProcess/Network/webrtc/LibWebRTCNetwork.messages.in
    M Source/WebKit/WebProcess/Network/webrtc/WebRTCMonitor.messages.in
    M Source/WebKit/WebProcess/Network/webrtc/WebRTCResolver.messages.in
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/IPCTestingAPI.mm

  Log Message:
  -----------
  Expose more type metadata to IPC test API
https://bugs.webkit.org/show_bug.cgi?id=270985
rdar://124626429

Reviewed by Sihui Liu.

This exposes type metadata for ObjC types wrapped by CoreIPC types,
and fixes up a few other types so their contents are consistently exposed.

* Source/WebKit/NetworkProcess/webrtc/NetworkRTCProvider.messages.in:
* Source/WebKit/Scripts/generate-serializers.py:
(SerializedType.name_declaration_for_serialized_type_info):
(SerializedType.members_for_serialized_type_info):
(ObjCWrappedType):
(ObjCWrappedType.__init__):
(generate_impl):
(generate_serialized_type_info):
(parse_serialized_types):
(main):
* Source/WebKit/Scripts/webkit/messages.py:
(headers_for_type):
* Source/WebKit/Scripts/webkit/tests/GeneratedSerializers.h:
(IPC::ArgumentCoder<RetainPtr<CFStringRef>>::encode):
* Source/WebKit/Scripts/webkit/tests/SerializedTypeInfo.cpp:
(WebKit::allSerializedTypes):
* Source/WebKit/Scripts/webkit/tests/TestSerializedType.serialization.in:
* Source/WebKit/Scripts/webkit/tests/WebKitPlatformGeneratedSerializers.cpp:
(IPC::encodeObjectDirectly<PKPaymentMethod>):
(IPC::decodeObjectDirectlyRequiringAllowedClasses<PKPaymentMethod>):
(IPC::encodeObjectDirectly<NSNull>):
(IPC::decodeObjectDirectlyRequiringAllowedClasses<NSNull>):
(IPC::ArgumentCoder<CFStringRef>::encode):
(IPC::ArgumentCoder<RetainPtr<CFStringRef>>::decode):
* Source/WebKit/Shared/Cocoa/ArgumentCodersCocoa.mm:
* Source/WebKit/Shared/Cocoa/WebCoreArgumentCodersCocoa.serialization.in:
* Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in:
* Source/WebKit/WebProcess/Network/webrtc/LibWebRTCNetwork.messages.in:
* Source/WebKit/WebProcess/Network/webrtc/WebRTCMonitor.messages.in:
* Source/WebKit/WebProcess/Network/webrtc/WebRTCResolver.messages.in:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/IPCTestingAPI.mm:

Canonical link: https://commits.webkit.org/276118@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list