|
Lines 1-3
a/Source/WebKit/ChangeLog_sec1
|
|
|
1 |
2022-04-06 Zan Dobersek <zdobersek@igalia.com> |
| 2 |
|
| 3 |
[Unix] Adopt UnixFileDescriptor in IPC::Attachment |
| 4 |
https://bugs.webkit.org/show_bug.cgi?id=238801 |
| 5 |
|
| 6 |
Reviewed by Carlos Garcia Campos. |
| 7 |
|
| 8 |
Adopt WTF::UnixFileDescriptor for usage in IPC::Attachment, in place of |
| 9 |
a raw integer value. This simplifies move operations and destruction of |
| 10 |
this value. |
| 11 |
|
| 12 |
The two relevant constructors are changed to expect a UnixFileDescriptor |
| 13 |
rvalue, and they're also made explicit. The file descriptor object is |
| 14 |
accessible through both a const and a non-const getter, which allows the |
| 15 |
user to read or release the file descriptor contained there. There's |
| 16 |
also a release method that returns the contained UnixFileDescriptor. |
| 17 |
|
| 18 |
The releaseFileDescriptor() and fileDescriptor() methods, previously |
| 19 |
releasing or returning the contained integer value of the descriptor. |
| 20 |
Call sites for these methods as well as the old-form constructors are |
| 21 |
adjusted to the new variants. |
| 22 |
|
| 23 |
* Platform/IPC/Attachment.h: |
| 24 |
(IPC::Attachment::isNull const): |
| 25 |
(IPC::Attachment::fd const): |
| 26 |
(IPC::Attachment::release): |
| 27 |
(IPC::Attachment::releaseFileDescriptor): Deleted. |
| 28 |
(IPC::Attachment::fileDescriptor const): Deleted. |
| 29 |
* Platform/IPC/unix/AttachmentUnix.cpp: |
| 30 |
(IPC::Attachment::Attachment): |
| 31 |
(IPC::Attachment::operator=): |
| 32 |
(IPC::Attachment::~Attachment): Deleted. |
| 33 |
* Platform/IPC/unix/ConnectionUnix.cpp: |
| 34 |
(IPC::Connection::processMessage): |
| 35 |
(IPC::Connection::sendOutputMessage): |
| 36 |
(IPC::Connection::createConnectionIdentifierPair): |
| 37 |
* Platform/unix/SharedMemoryUnix.cpp: |
| 38 |
(WebKit::SharedMemory::Handle::isNull const): |
| 39 |
(WebKit::SharedMemory::map): |
| 40 |
(WebKit::SharedMemory::createHandle): |
| 41 |
* Shared/WebCoreArgumentCoders.cpp: |
| 42 |
(IPC::ArgumentCoder<UnixFileDescriptor>::encode): |
| 43 |
(IPC::ArgumentCoder<UnixFileDescriptor>::decode): |
| 44 |
* Shared/glib/UserMessage.cpp: |
| 45 |
(WebKit::UserMessage::encode const): |
| 46 |
(WebKit::UserMessage::decode): |
| 47 |
* UIProcess/API/wpe/PageClientImpl.cpp: |
| 48 |
(WebKit::PageClientImpl::hostFileDescriptor): |
| 49 |
* UIProcess/glib/WebProcessPoolGLib.cpp: |
| 50 |
(WebKit::WebProcessPool::platformInitializeWebProcess): |
| 51 |
* WebProcess/GPU/GPUProcessConnectionInfo.h: |
| 52 |
(WebKit::GPUProcessConnectionInfo::identifier const): |
| 53 |
(WebKit::GPUProcessConnectionInfo::releaseIdentifier): |
| 54 |
* WebProcess/Inspector/WebInspector.cpp: |
| 55 |
(WebKit::WebInspector::setFrontendConnection): |
| 56 |
* WebProcess/Network/NetworkProcessConnectionInfo.h: |
| 57 |
(WebKit::NetworkProcessConnectionInfo::identifier const): |
| 58 |
(WebKit::NetworkProcessConnectionInfo::releaseIdentifier): |
| 59 |
* WebProcess/WebPage/WebPage.h: |
| 60 |
(WebKit::WebPage::hostFileDescriptor const): |
| 61 |
* WebProcess/glib/WebProcessGLib.cpp: |
| 62 |
(WebKit::WebProcess::platformInitializeWebProcess): |
| 63 |
|
| 1 |
2022-04-06 Youenn Fablet <youenn@apple.com> |
64 |
2022-04-06 Youenn Fablet <youenn@apple.com> |
| 2 |
|
65 |
|
| 3 |
Remove Notification::m_relatedNotificationIdentifier |
66 |
Remove Notification::m_relatedNotificationIdentifier |