[webkit-changes] [WebKit/WebKit] 1084b5: Generate serialization of StreamServerConnectionHa...

Don Olmstead noreply at github.com
Tue Sep 19 16:49:11 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1084b50affac3b51b40ec96aa627dab74600f0f5
      https://github.com/WebKit/WebKit/commit/1084b50affac3b51b40ec96aa627dab74600f0f5
  Author: Don Olmstead <don.olmstead at sony.com>
  Date:   2023-09-19 (Tue, 19 Sep 2023)

  Changed paths:
    M Source/WebKit/CMakeLists.txt
    M Source/WebKit/DerivedSources-input.xcfilelist
    M Source/WebKit/DerivedSources.make
    M Source/WebKit/Platform/IPC/StreamConnectionBuffer.cpp
    M Source/WebKit/Platform/IPC/StreamConnectionBuffer.h
    M Source/WebKit/Platform/IPC/StreamServerConnection.h
    A Source/WebKit/Platform/IPC/StreamServerConnection.serialization.in
    M Source/WebKit/Platform/IPC/StreamServerConnectionBuffer.h
    M Source/WebKit/WebProcess/WebPage/IPCTestingAPI.cpp

  Log Message:
  -----------
  Generate serialization of StreamServerConnectionHandle
https://bugs.webkit.org/show_bug.cgi?id=261707

Reviewed by Alex Christensen.

Migrate `StreamServerConnectionHandle` to the serialization format.
Remove manual serialization.

Remove `struct StreamConnectionBuffer::Handle` and just use a
`WebKit::SharedMemory::Handle` directly. Move the validation checks into
serialization of `StreamServerConnectionHandle`.

* Source/WebKit/CMakeLists.txt:
* Source/WebKit/DerivedSources-input.xcfilelist:
* Source/WebKit/DerivedSources.make:
* Source/WebKit/Platform/IPC/StreamConnectionBuffer.cpp:
(IPC::StreamConnectionBuffer::Handle::encode): Deleted.
(IPC::StreamConnectionBuffer::Handle::decode): Deleted.
* Source/WebKit/Platform/IPC/StreamConnectionBuffer.h:
(IPC::StreamConnectionBuffer::sharedMemorySizeIsValid):
* Source/WebKit/Platform/IPC/StreamServerConnection.h:
(IPC::StreamServerConnectionHandle::StreamServerConnectionHandle):
(IPC::StreamServerConnection::Handle::encode): Deleted.
(IPC::StreamServerConnection::Handle::decode): Deleted.
* Source/WebKit/Platform/IPC/StreamServerConnection.serialization.in: Added.
* Source/WebKit/Platform/IPC/StreamServerConnectionBuffer.h:
(IPC::StreamServerConnectionBuffer::map):
* Source/WebKit/WebProcess/WebPage/IPCTestingAPI.cpp:
(WebKit::IPCTestingAPI::JSIPCStreamConnectionBuffer::encode const):

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




More information about the webkit-changes mailing list