[webkit-changes] [WebKit/WebKit] 862356: [GLIB] Simplify the GTlsCertificate argument coders
Claudio Saavedra
noreply at github.com
Fri May 3 07:07:11 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 86235681dd54e9723d90a56cf1f5bfbdb5a94cf9
https://github.com/WebKit/WebKit/commit/86235681dd54e9723d90a56cf1f5bfbdb5a94cf9
Author: Claudio Saavedra <csaavedra at igalia.com>
Date: 2024-05-03 (Fri, 03 May 2024)
Changed paths:
M Source/WebKit/Shared/glib/ArgumentCodersGLib.cpp
M Source/WebKit/Shared/glib/ArgumentCodersGLib.h
Log Message:
-----------
[GLIB] Simplify the GTlsCertificate argument coders
https://bugs.webkit.org/show_bug.cgi?id=273677
Reviewed by Michael Catanzaro.
Instead of handcoding the certificate chain, use a Vector directly, which
has coding support already. Similarly, instead of handcoding GByteArray structs
in a handful of different places, add an argument coder for GByteArray and use it
where needed.
* Source/WebKit/Shared/glib/ArgumentCodersGLib.cpp:
(IPC::ArgumentCoder<GRefPtr<GByteArray>>::encode):
(IPC::ArgumentCoder<GRefPtr<GByteArray>>::decode):
(IPC::ArgumentCoder<GRefPtr<GTlsCertificate>>::encode):
(IPC::ArgumentCoder<GRefPtr<GTlsCertificate>>::decode):
* Source/WebKit/Shared/glib/ArgumentCodersGLib.h:
Canonical link: https://commits.webkit.org/278316@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