Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WK2][GLib] Clean up GLib ArgumentCoders specializations #6198

Conversation

zdobersek
Copy link
Contributor

@zdobersek zdobersek commented Nov 7, 2022

b842b37

[WK2][GLib] Clean up GLib ArgumentCoders specializations
https://bugs.webkit.org/show_bug.cgi?id=247561

Reviewed by Carlos Garcia Campos.

In ArgumentCoder specializations for GVariant and GTlsCertificate objects
managed through GRefPtrs, have the encode methods accept simple references to
the GRefPtrs, avoiding unnecessary refcounting churn.

Drop the encoder and decoder type templates on the GTlsCertificate
specialization of ArgumentCoder and subsequently-necessary specializations
for the IPC::Encoder and IPC::Decoder methods. We can enforce those two types
without the template, and support for other encoders and decoders likely won't
be necessary.

* Source/WebKit/Shared/glib/ArgumentCodersGLib.cpp:
(IPC::ArgumentCoder<GRefPtr<GVariant>>::encode):
(IPC::ArgumentCoder<GRefPtr<GTlsCertificate>>::encode):
(IPC::ArgumentCoder<GRefPtr<GTlsCertificate>>::decode):
* Source/WebKit/Shared/glib/ArgumentCodersGLib.h:

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

330545c

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe
βœ… πŸ›  ios-sim βœ… πŸ›  mac-debug βœ… πŸ›  gtk βœ… πŸ›  wincairo
βœ… πŸ§ͺ webkitperl βœ… πŸ§ͺ ios-wk2 βœ… πŸ›  mac-AS-debug   πŸ§ͺ gtk-wk2
  πŸ§ͺ api-ios βœ… πŸ§ͺ api-mac   πŸ§ͺ api-gtk
βœ… πŸ›  tv   πŸ§ͺ mac-wk1
βœ… πŸ›  tv-sim βœ… πŸ§ͺ mac-wk2
βœ… πŸ›  πŸ§ͺ merge βœ… πŸ›  watch   πŸ§ͺ mac-AS-debug-wk2
βœ… πŸ›  watch-sim βœ… πŸ§ͺ mac-wk2-stress

@zdobersek zdobersek requested a review from a team as a code owner November 7, 2022 07:28
@zdobersek zdobersek self-assigned this Nov 7, 2022
@zdobersek zdobersek added New Bugs Unclassified bugs are placed in this component until the correct component can be determined. WebKit Nightly Build labels Nov 7, 2022
@zdobersek zdobersek added the merge-queue Applied to send a pull request to merge-queue label Nov 7, 2022
https://bugs.webkit.org/show_bug.cgi?id=247561

Reviewed by Carlos Garcia Campos.

In ArgumentCoder specializations for GVariant and GTlsCertificate objects
managed through GRefPtrs, have the encode methods accept simple references to
the GRefPtrs, avoiding unnecessary refcounting churn.

Drop the encoder and decoder type templates on the GTlsCertificate
specialization of ArgumentCoder and subsequently-necessary specializations
for the IPC::Encoder and IPC::Decoder methods. We can enforce those two types
without the template, and support for other encoders and decoders likely won't
be necessary.

* Source/WebKit/Shared/glib/ArgumentCodersGLib.cpp:
(IPC::ArgumentCoder<GRefPtr<GVariant>>::encode):
(IPC::ArgumentCoder<GRefPtr<GTlsCertificate>>::encode):
(IPC::ArgumentCoder<GRefPtr<GTlsCertificate>>::decode):
* Source/WebKit/Shared/glib/ArgumentCodersGLib.h:

Canonical link: https://commits.webkit.org/256389@main
@webkit-early-warning-system webkit-early-warning-system force-pushed the eng/WK2GLib-Clean-up-GLib-ArgumentCoders-specializations branch from 330545c to b842b37 Compare November 7, 2022 09:27
@webkit-commit-queue
Copy link
Collaborator

Committed 256389@main (b842b37): https://commits.webkit.org/256389@main

Reviewed commits have been landed. Closing PR #6198 and removing active labels.

@webkit-early-warning-system webkit-early-warning-system merged commit b842b37 into WebKit:main Nov 7, 2022
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Bugs Unclassified bugs are placed in this component until the correct component can be determined.
Projects
None yet
4 participants