Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b842b3761eaf73ad3c9d28ad08c34c81e77b0b94
      
https://github.com/WebKit/WebKit/commit/b842b3761eaf73ad3c9d28ad08c34c81e77b0b94
  Author: Žan Doberšek <[email protected]>
  Date:   2022-11-07 (Mon, 07 Nov 2022)

  Changed paths:
    M Source/WebKit/Shared/glib/ArgumentCodersGLib.cpp
    M Source/WebKit/Shared/glib/ArgumentCodersGLib.h

  Log Message:
  -----------
  [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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to