Changeset 237300 in webkit


Ignore:
Timestamp:
Oct 19, 2018, 2:12:24 PM (7 years ago)
Author:
achristensen@apple.com
Message:

Mark LegacySync IPC messages
https://bugs.webkit.org/show_bug.cgi?id=190759

Reviewed by Tim Horton.

  • NetworkProcess/NetworkConnectionToWebProcess.messages.in:
  • NetworkProcess/NetworkProcess.messages.in:
  • NetworkProcess/ServiceWorker/WebSWServerConnection.messages.in:
  • Platform/IPC/HandleMessage.h:

(IPC::handleMessageLegacySync):

  • PluginProcess/PluginControllerProxy.messages.in:
  • Scripts/webkit/messages.py:
  • Shared/Plugins/NPObjectMessageReceiver.messages.in:
  • UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in:
  • UIProcess/Cocoa/UserMediaCaptureManagerProxy.messages.in:
  • UIProcess/Plugins/PluginProcessProxy.messages.in:
  • UIProcess/WebFullScreenManagerProxy.messages.in:
  • UIProcess/WebPageProxy.messages.in:
  • UIProcess/WebPasteboardProxy.messages.in:
  • UIProcess/WebProcessPool.messages.in:
  • UIProcess/WebProcessProxy.messages.in:
  • UIProcess/WebStorage/StorageManager.messages.in:
  • UIProcess/mac/SecItemShimProxy.messages.in:
  • WebProcess/Plugins/PluginProcessConnection.messages.in:
  • WebProcess/Plugins/PluginProxy.messages.in:
  • WebProcess/WebPage/WebPage.messages.in:
  • WebProcess/WebProcess.messages.in:
Location:
trunk/Source/WebKit
Files:
27 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r237298 r237300  
     12018-10-19  Alex Christensen  <achristensen@webkit.org>
     2
     3        Mark LegacySync IPC messages
     4        https://bugs.webkit.org/show_bug.cgi?id=190759
     5
     6        Reviewed by Tim Horton.
     7
     8        * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
     9        * NetworkProcess/NetworkProcess.messages.in:
     10        * NetworkProcess/ServiceWorker/WebSWServerConnection.messages.in:
     11        * Platform/IPC/HandleMessage.h:
     12        (IPC::handleMessageLegacySync):
     13        * PluginProcess/PluginControllerProxy.messages.in:
     14        * Scripts/webkit/messages.py:
     15        * Shared/Plugins/NPObjectMessageReceiver.messages.in:
     16        * UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in:
     17        * UIProcess/Cocoa/UserMediaCaptureManagerProxy.messages.in:
     18        * UIProcess/Plugins/PluginProcessProxy.messages.in:
     19        * UIProcess/WebFullScreenManagerProxy.messages.in:
     20        * UIProcess/WebPageProxy.messages.in:
     21        * UIProcess/WebPasteboardProxy.messages.in:
     22        * UIProcess/WebProcessPool.messages.in:
     23        * UIProcess/WebProcessProxy.messages.in:
     24        * UIProcess/WebStorage/StorageManager.messages.in:
     25        * UIProcess/mac/SecItemShimProxy.messages.in:
     26        * WebProcess/Plugins/PluginProcessConnection.messages.in:
     27        * WebProcess/Plugins/PluginProxy.messages.in:
     28        * WebProcess/WebPage/WebPage.messages.in:
     29        * WebProcess/WebProcess.messages.in:
     30
    1312018-10-19  Alex Christensen  <achristensen@webkit.org>
    232
  • trunk/Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.messages.in

    r237110 r237300  
    3535    ConvertMainResourceLoadToDownload(PAL::SessionID sessionID, uint64_t mainResourceLoadIdentifier, WebKit::DownloadID downloadID, WebCore::ResourceRequest request, WebCore::ResourceResponse response)
    3636
    37     CookiesForDOM(PAL::SessionID sessionID, WebCore::URL firstParty, struct WebCore::SameSiteInfo sameSiteInfo, WebCore::URL url, std::optional<uint64_t> frameID, std::optional<uint64_t> pageID, enum:bool WebCore::IncludeSecureCookies includeSecureCookies) -> (String cookieString, bool didAccessSecureCookies)
     37    CookiesForDOM(PAL::SessionID sessionID, WebCore::URL firstParty, struct WebCore::SameSiteInfo sameSiteInfo, WebCore::URL url, std::optional<uint64_t> frameID, std::optional<uint64_t> pageID, enum:bool WebCore::IncludeSecureCookies includeSecureCookies) -> (String cookieString, bool didAccessSecureCookies) LegacySync
    3838    SetCookiesFromDOM(PAL::SessionID sessionID, WebCore::URL firstParty, struct WebCore::SameSiteInfo sameSiteInfo, WebCore::URL url, std::optional<uint64_t> frameID, std::optional<uint64_t> pageID, String cookieString)
    39     CookiesEnabled(PAL::SessionID sessionID) -> (bool enabled)
    40     CookieRequestHeaderFieldValue(PAL::SessionID sessionID, WebCore::URL firstParty, struct WebCore::SameSiteInfo sameSiteInfo, WebCore::URL url, std::optional<uint64_t> frameID, std::optional<uint64_t> pageID, enum:bool WebCore::IncludeSecureCookies includeSecureCookies) -> (String cookieString, bool didAccessSecureCookies)
    41     GetRawCookies(PAL::SessionID sessionID, WebCore::URL firstParty, struct WebCore::SameSiteInfo sameSiteInfo, WebCore::URL url, std::optional<uint64_t> frameID, std::optional<uint64_t> pageID) -> (Vector<WebCore::Cookie> cookies)
     39    CookiesEnabled(PAL::SessionID sessionID) -> (bool enabled) LegacySync
     40    CookieRequestHeaderFieldValue(PAL::SessionID sessionID, WebCore::URL firstParty, struct WebCore::SameSiteInfo sameSiteInfo, WebCore::URL url, std::optional<uint64_t> frameID, std::optional<uint64_t> pageID, enum:bool WebCore::IncludeSecureCookies includeSecureCookies) -> (String cookieString, bool didAccessSecureCookies) LegacySync
     41    GetRawCookies(PAL::SessionID sessionID, WebCore::URL firstParty, struct WebCore::SameSiteInfo sameSiteInfo, WebCore::URL url, std::optional<uint64_t> frameID, std::optional<uint64_t> pageID) -> (Vector<WebCore::Cookie> cookies) LegacySync
    4242    DeleteCookie(PAL::SessionID sessionID, WebCore::URL url, String cookieName)
    4343
     
    4949    RegisterBlobURLForSlice(WebCore::URL url, WebCore::URL srcURL, int64_t start, int64_t end)
    5050    UnregisterBlobURL(WebCore::URL url)
    51     BlobSize(WebCore::URL url) -> (uint64_t resultSize)
     51    BlobSize(WebCore::URL url) -> (uint64_t resultSize) LegacySync
    5252    WriteBlobsToTemporaryFiles(Vector<String> blobURLs, uint64_t requestIdentifier)
    5353
     
    6767    ResetOriginAccessWhitelists();
    6868
    69     GetNetworkLoadInformationRequest(uint64_t resourceLoadIdentifier) -> (WebCore::ResourceRequest request);
    70     GetNetworkLoadInformationResponse(uint64_t resourceLoadIdentifier) -> (WebCore::ResourceResponse response);
    71     GetNetworkLoadIntermediateInformation(uint64_t resourceLoadIdentifier) -> (Vector<WebCore::NetworkTransactionInformation> transactions);
    72     TakeNetworkLoadInformationMetrics(uint64_t resourceLoadIdentifier) -> (WebCore::NetworkLoadMetrics networkMetrics);
     69    GetNetworkLoadInformationRequest(uint64_t resourceLoadIdentifier) -> (WebCore::ResourceRequest request) LegacySync
     70    GetNetworkLoadInformationResponse(uint64_t resourceLoadIdentifier) -> (WebCore::ResourceResponse response) LegacySync
     71    GetNetworkLoadIntermediateInformation(uint64_t resourceLoadIdentifier) -> (Vector<WebCore::NetworkTransactionInformation> transactions) LegacySync
     72    TakeNetworkLoadInformationMetrics(uint64_t resourceLoadIdentifier) -> (WebCore::NetworkLoadMetrics networkMetrics) LegacySync
    7373
    7474#if ENABLE(INDEXED_DATABASE)
    75     EstablishIDBConnectionToServer(PAL::SessionID sessionID) -> (uint64_t serverConnectionIdentifier)
     75    EstablishIDBConnectionToServer(PAL::SessionID sessionID) -> (uint64_t serverConnectionIdentifier) LegacySync
    7676    RemoveIDBConnectionToServer(uint64_t serverConnectionIdentifier)
    7777#endif
    7878
    7979#if ENABLE(SERVICE_WORKER)
    80     EstablishSWServerConnection(PAL::SessionID sessionID) -> (WebCore::SWServerConnectionIdentifier serverConnectionIdentifier)
     80    EstablishSWServerConnection(PAL::SessionID sessionID) -> (WebCore::SWServerConnectionIdentifier serverConnectionIdentifier) LegacySync
    8181#endif
    8282}
  • trunk/Source/WebKit/NetworkProcess/NetworkProcess.messages.in

    r237294 r237300  
    5454    SetStorageAccessAPIEnabled(bool enabled)
    5555#endif
    56     SetAllowsAnySSLCertificateForWebSocket(bool enabled) -> ()
     56    SetAllowsAnySSLCertificateForWebSocket(bool enabled) -> () LegacySync
    5757
    5858    SyncAllCookies()
     
    6969    ProcessDidTransitionToForeground()
    7070
    71     ProcessWillSuspendImminently() -> (bool handled)
     71    ProcessWillSuspendImminently() -> (bool handled) LegacySync
    7272    PrepareToSuspend()
    7373    CancelPrepareToSuspend()
     
    102102
    103103#if ENABLE(SERVICE_WORKER)
    104 DidNotHandleFetch(WebCore::SWServerConnectionIdentifier serverConnectionIdentifier, WebCore::FetchIdentifier fetchIdentifier)
    105 DidFailFetch(WebCore::SWServerConnectionIdentifier serverConnectionIdentifier, WebCore::FetchIdentifier fetchIdentifier, WebCore::ResourceError error)
    106 DidReceiveFetchResponse(WebCore::SWServerConnectionIdentifier serverConnectionIdentifier, WebCore::FetchIdentifier fetchIdentifier, WebCore::ResourceResponse response)
    107 DidReceiveFetchData(WebCore::SWServerConnectionIdentifier serverConnectionIdentifier, WebCore::FetchIdentifier fetchIdentifier, IPC::SharedBufferDataReference data, int64_t encodedDataLength)
    108 DidReceiveFetchFormData(WebCore::SWServerConnectionIdentifier serverConnectionIdentifier, WebCore::FetchIdentifier fetchIdentifier, IPC::FormDataReference data)
    109 DidFinishFetch(WebCore::SWServerConnectionIdentifier serverConnectionIdentifier, WebCore::FetchIdentifier fetchIdentifier)
    110 PostMessageToServiceWorkerClient(struct WebCore::ServiceWorkerClientIdentifier destinationIdentifier, struct WebCore::MessageWithMessagePorts message, WebCore::ServiceWorkerIdentifier sourceIdentifier, String sourceOrigin)
     104    DidNotHandleFetch(WebCore::SWServerConnectionIdentifier serverConnectionIdentifier, WebCore::FetchIdentifier fetchIdentifier)
     105    DidFailFetch(WebCore::SWServerConnectionIdentifier serverConnectionIdentifier, WebCore::FetchIdentifier fetchIdentifier, WebCore::ResourceError error)
     106    DidReceiveFetchResponse(WebCore::SWServerConnectionIdentifier serverConnectionIdentifier, WebCore::FetchIdentifier fetchIdentifier, WebCore::ResourceResponse response)
     107    DidReceiveFetchData(WebCore::SWServerConnectionIdentifier serverConnectionIdentifier, WebCore::FetchIdentifier fetchIdentifier, IPC::SharedBufferDataReference data, int64_t encodedDataLength)
     108    DidReceiveFetchFormData(WebCore::SWServerConnectionIdentifier serverConnectionIdentifier, WebCore::FetchIdentifier fetchIdentifier, IPC::FormDataReference data)
     109    DidFinishFetch(WebCore::SWServerConnectionIdentifier serverConnectionIdentifier, WebCore::FetchIdentifier fetchIdentifier)
     110    PostMessageToServiceWorkerClient(struct WebCore::ServiceWorkerClientIdentifier destinationIdentifier, struct WebCore::MessageWithMessagePorts message, WebCore::ServiceWorkerIdentifier sourceIdentifier, String sourceOrigin)
    111111
    112 PostMessageToServiceWorker(WebCore::ServiceWorkerIdentifier destination, struct WebCore::MessageWithMessagePorts message, WebCore::ServiceWorkerOrClientIdentifier source, WebCore::SWServerConnectionIdentifier connectionIdentifier)
     112    PostMessageToServiceWorker(WebCore::ServiceWorkerIdentifier destination, struct WebCore::MessageWithMessagePorts message, WebCore::ServiceWorkerOrClientIdentifier source, WebCore::SWServerConnectionIdentifier connectionIdentifier)
    113113
    114 DisableServiceWorkerProcessTerminationDelay()
     114    DisableServiceWorkerProcessTerminationDelay()
    115115#endif
    116116}
  • trunk/Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerConnection.messages.in

    r236477 r237300  
    4343    UnregisterServiceWorkerClient(struct WebCore::ServiceWorkerClientIdentifier identifier)
    4444
    45     SyncTerminateWorker(WebCore::ServiceWorkerIdentifier workerIdentifier) -> ()
     45    SyncTerminateWorker(WebCore::ServiceWorkerIdentifier workerIdentifier) -> () LegacySync
    4646}
    4747
  • trunk/Source/WebKit/Platform/IPC/HandleMessage.h

    r237294 r237300  
    135135
    136136template<typename T, typename C, typename MF>
    137 void handleMessage(Decoder& decoder, Encoder& replyEncoder, C* object, MF function)
     137void handleMessageLegacySync(Decoder& decoder, Encoder& replyEncoder, C* object, MF function)
    138138{
    139139    typename CodingType<typename T::Arguments>::Type arguments;
     
    149149
    150150template<typename T, typename C, typename MF>
    151 void handleMessage(Connection& connection, Decoder& decoder, Encoder& replyEncoder, C* object, MF function)
     151void handleMessageLegacySync(Connection& connection, Decoder& decoder, Encoder& replyEncoder, C* object, MF function)
    152152{
    153153    typename CodingType<typename T::Arguments>::Type arguments;
  • trunk/Source/WebKit/PluginProcess/PluginControllerProxy.messages.in

    r191922 r237300  
    7070   
    7171    # Sent when a mouse wheel event should be processed.
    72     HandleWheelEvent(WebKit::WebWheelEvent wheelEvent) -> (bool handled)
     72    HandleWheelEvent(WebKit::WebWheelEvent wheelEvent) -> (bool handled) LegacySync
    7373
    7474    # Sent when a mouse enter event should be processed.
    75     HandleMouseEnterEvent(WebKit::WebMouseEvent mouseEvent) -> (bool handled)
     75    HandleMouseEnterEvent(WebKit::WebMouseEvent mouseEvent) -> (bool handled) LegacySync
    7676   
    7777    # Sent when a mouse leave event should be processed.
    78     HandleMouseLeaveEvent(WebKit::WebMouseEvent mouseEvent) -> (bool handled)
     78    HandleMouseLeaveEvent(WebKit::WebMouseEvent mouseEvent) -> (bool handled) LegacySync
    7979
    8080    # Sent when a keyboard should be processed.
    81     HandleKeyboardEvent(WebKit::WebKeyboardEvent keyboardEvent) -> (bool handled)
     81    HandleKeyboardEvent(WebKit::WebKeyboardEvent keyboardEvent) -> (bool handled) LegacySync
    8282   
    8383    # Sent when an editing command should be processed.
    84     HandleEditingCommand(String commandName, String argument) -> (bool handled);
     84    HandleEditingCommand(String commandName, String argument) -> (bool handled) LegacySync
    8585   
    8686    # Return whether or not a plugin wants to enable the given editing command.
    87     IsEditingCommandEnabled(String commandName) -> (bool enabled);
     87    IsEditingCommandEnabled(String commandName) -> (bool enabled) LegacySync
    8888   
    8989    # Return whether or not a plugin wants to handle page scale factor itself.
    90     HandlesPageScaleFactor() -> (bool enabled);
     90    HandlesPageScaleFactor() -> (bool enabled) LegacySync
    9191
    9292    # Return whether or not a plugin wants page scale, page zoom, and text zoom all to affect page scale.
    93     RequiresUnifiedScaleFactor() -> (bool required);
     93    RequiresUnifiedScaleFactor() -> (bool required) LegacySync
    9494
    9595    # Sent when the plug-in focus changes.
     
    100100
    101101    # Paint the entire plug-in.
    102     PaintEntirePlugin() -> ()
     102    PaintEntirePlugin() -> () LegacySync
    103103
    104104    # Get a reference to the plug-in's scriptable NPObject.
    105     GetPluginScriptableNPObject() -> (uint64_t pluginScriptableNPObjectID)
     105    GetPluginScriptableNPObject() -> (uint64_t pluginScriptableNPObjectID) LegacySync
    106106
    107107    # Sent when the containing NSWindow's focus changes
     
    123123
    124124    # Does the plugin support snapshotting?
    125     SupportsSnapshotting() -> (bool isSupported)
     125    SupportsSnapshotting() -> (bool isSupported) LegacySync
    126126
    127127    # Return a snapshot of the plugin.
    128     Snapshot() -> (WebKit::ShareableBitmap::Handle backingStoreHandle)
     128    Snapshot() -> (WebKit::ShareableBitmap::Handle backingStoreHandle) LegacySync
    129129
    130130    # Sent when storage blocking policy changes
     
    135135
    136136    # Gets the string representating the form value of the plug-in
    137     GetFormValue() -> (bool returnValue, String formValue)
     137    GetFormValue() -> (bool returnValue, String formValue) LegacySync
    138138
    139139    # Sent when the browser wants to mute or unmute the plugin.
  • trunk/Source/WebKit/Scripts/webkit/LegacyMessages-expected.h

    r231931 r237300  
    4141
    4242namespace IPC {
    43     class MachPort;
    44     class Connection;
    45     class DummyType;
     43class MachPort;
     44class Connection;
     45class DummyType;
    4646}
    4747
    4848namespace WebKit {
    49     class WebTouchEvent;
    50     class WebPreferencesStore;
     49class WebTouchEvent;
     50class WebPreferencesStore;
    5151}
    5252
  • trunk/Source/WebKit/Scripts/webkit/MessageReceiverSuperclass-expected.cpp

    r237298 r237300  
    3030#include "Decoder.h"
    3131#include "HandleMessage.h"
     32#include "TestClassName.h"
    3233#if ENABLE(TEST_FEATURE)
    3334#include "TestTwoStateEnum.h"
    3435#endif
    3536#include "WebPageMessages.h"
     37#include <wtf/Optional.h>
    3638#include <wtf/text/WTFString.h>
    3739
     
    6668#endif
    6769
     70void TestDelayedMessage::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const std::optional<WebKit::TestClassName>& optionalReply)
     71{
     72    *encoder << optionalReply;
     73    connection.sendSyncReply(WTFMove(encoder));
     74}
     75
    6876} // namespace WebPage
    6977
     
    8795}
    8896
     97void WebPage::didReceiveSyncMessage(IPC::Connection& connection, IPC::Decoder& decoder, std::unique_ptr<IPC::Encoder>& replyEncoder)
     98{
     99    if (decoder.messageName() == Messages::WebPage::TestSyncMessage::name()) {
     100        IPC::handleMessage<Messages::WebPage::TestSyncMessage>(decoder, *replyEncoder, this, &WebPage::testSyncMessage);
     101        return;
     102    }
     103    if (decoder.messageName() == Messages::WebPage::TestDelayedMessage::name()) {
     104        IPC::handleMessageDelayed<Messages::WebPage::TestDelayedMessage>(connection, decoder, replyEncoder, this, &WebPage::testDelayedMessage);
     105        return;
     106    }
     107    UNUSED_PARAM(connection);
     108    UNUSED_PARAM(decoder);
     109    UNUSED_PARAM(replyEncoder);
     110    ASSERT_NOT_REACHED();
     111}
     112
    89113} // namespace WebKit
    90114
  • trunk/Source/WebKit/Scripts/webkit/MessagesSuperclass-expected.h

    r237298 r237300  
    2626
    2727#include "ArgumentCoders.h"
     28#include "TestClassName.h"
    2829#include <wtf/Forward.h>
     30#include <wtf/Optional.h>
     31#include <wtf/ThreadSafeRefCounted.h>
    2932#include <wtf/text/WTFString.h>
    3033
     34namespace IPC {
     35class Connection;
     36}
     37
    3138namespace WebKit {
    32     enum class TestTwoStateEnum : bool;
     39enum class TestTwoStateEnum : bool;
    3340}
    3441
     
    93100#endif
    94101
     102class TestSyncMessage {
     103public:
     104    typedef std::tuple<uint32_t> Arguments;
     105
     106    static IPC::StringReference receiverName() { return messageReceiverName(); }
     107    static IPC::StringReference name() { return IPC::StringReference("TestSyncMessage"); }
     108    static const bool isSync = true;
     109
     110    typedef std::tuple<uint8_t&> Reply;
     111    explicit TestSyncMessage(uint32_t param)
     112        : m_arguments(param)
     113    {
     114    }
     115
     116    const Arguments& arguments() const
     117    {
     118        return m_arguments;
     119    }
     120
     121private:
     122    Arguments m_arguments;
     123};
     124
     125class TestDelayedMessage {
     126public:
     127    typedef std::tuple<bool> Arguments;
     128
     129    static IPC::StringReference receiverName() { return messageReceiverName(); }
     130    static IPC::StringReference name() { return IPC::StringReference("TestDelayedMessage"); }
     131    static const bool isSync = true;
     132
     133    using DelayedReply = CompletionHandler<void(const std::optional<WebKit::TestClassName>& optionalReply)>;
     134    static void send(std::unique_ptr<IPC::Encoder>&&, IPC::Connection&, const std::optional<WebKit::TestClassName>& optionalReply);
     135    typedef std::tuple<std::optional<WebKit::TestClassName>&> Reply;
     136    explicit TestDelayedMessage(bool value)
     137        : m_arguments(value)
     138    {
     139    }
     140
     141    const Arguments& arguments() const
     142    {
     143        return m_arguments;
     144    }
     145
     146private:
     147    Arguments m_arguments;
     148};
     149
    95150} // namespace WebPage
    96151} // namespace Messages
  • trunk/Source/WebKit/Scripts/webkit/messages.py

    r237294 r237300  
    3131DELAYED_ATTRIBUTE = 'Delayed'
    3232ASYNC_ATTRIBUTE = 'Async'
     33LEGACY_SYNC_ATTRIBUTE = 'LegacySync'
    3334
    3435_license_header = """/*
     
    123124    if message.reply_parameters != None:
    124125        send_parameters = [(function_parameter_type(x.type, x.kind), x.name) for x in message.reply_parameters]
     126        completion_handler_parameters = '%s' % ', '.join([' '.join(x) for x in send_parameters])
     127        if message.has_attribute(ASYNC_ATTRIBUTE):
     128            move_parameters = ', '.join([move_type(x.type) for x in message.reply_parameters])
     129            result.append('    static void callReply(IPC::Decoder&, CompletionHandler<void(%s)>&&);\n' % move_parameters)
     130            result.append('    static void cancelReply(CompletionHandler<void(%s)>&&);\n' % move_parameters)
     131            result.append('    static IPC::StringReference asyncMessageReplyName() { return { "%sReply" }; }\n' % message.name)
     132            result.append('    using AsyncReply')
     133        elif message.has_attribute(DELAYED_ATTRIBUTE):
     134            result.append('    using DelayedReply')
    125135        if message.has_attribute(DELAYED_ATTRIBUTE) or message.has_attribute(ASYNC_ATTRIBUTE):
    126             completion_handler_parameters = '%s' % ', '.join([' '.join(x) for x in send_parameters])
    127             if message.has_attribute(ASYNC_ATTRIBUTE):
    128                 move_parameters = ', '.join([move_type(x.type) for x in message.reply_parameters])
    129                 result.append('    static void callReply(IPC::Decoder&, CompletionHandler<void(%s)>&&);\n' % move_parameters)
    130                 result.append('    static void cancelReply(CompletionHandler<void(%s)>&&);\n' % move_parameters)
    131                 result.append('    static IPC::StringReference asyncMessageReplyName() { return { "%sReply" }; }\n' % message.name)
    132                 result.append('    using AsyncReply')
    133             else:
    134                 result.append('    using DelayedReply')
    135136            result.append(' = CompletionHandler<void(%s)>;\n' % completion_handler_parameters)
    136137            result.append('    static void send(std::unique_ptr<IPC::Encoder>&&, IPC::Connection&')
     
    171172    result = []
    172173    result.append('namespace %s {\n' % namespace)
    173     result += ['    %s;\n' % forward_declaration(namespace, x) for x in kind_and_types]
     174    result += ['%s;\n' % forward_declaration(namespace, x) for x in kind_and_types]
    174175    result.append('}\n')
    175176    return ''.join(result)
     
    308309    if message.has_attribute(ASYNC_ATTRIBUTE):
    309310        dispatch_function += 'Async'
     311    if message.has_attribute(LEGACY_SYNC_ATTRIBUTE):
     312        dispatch_function += 'LegacySync'
    310313
    311314    wants_connection = message.has_attribute(DELAYED_ATTRIBUTE) or message.has_attribute(WANTS_CONNECTION_ATTRIBUTE)
  • trunk/Source/WebKit/Scripts/webkit/test-superclass-messages.in

    r237298 r237300  
    2626    TestAsyncMessage(enum:bool WebKit::TestTwoStateEnum twoStateEnum) -> (uint64_t result) Async
    2727#endif
     28    TestSyncMessage(uint32_t param) -> (uint8_t reply) Sync
     29    TestDelayedMessage(bool value) -> (std::optional<WebKit::TestClassName> optionalReply) Delayed
    2830}
  • trunk/Source/WebKit/Shared/Plugins/NPObjectMessageReceiver.messages.in

    r156069 r237300  
    2424
    2525messages -> NPObjectMessageReceiver LegacyReceiver {
    26     Deallocate() -> ()
    27     HasMethod(WebKit::NPIdentifierData methodName) -> (bool returnValue)
    28     Invoke(WebKit::NPIdentifierData methodName, Vector<WebKit::NPVariantData> argumentsData) -> (bool returnValue, WebKit::NPVariantData resultData)
    29     InvokeDefault(Vector<WebKit::NPVariantData> argumentsData) -> (bool returnValue, WebKit::NPVariantData resultData)
    30     HasProperty(WebKit::NPIdentifierData propertyName) -> (bool returnValue)
    31     GetProperty(WebKit::NPIdentifierData propertyName) -> (bool returnValue, WebKit::NPVariantData resultData)
    32     SetProperty(WebKit::NPIdentifierData propertyName, WebKit::NPVariantData propertyValueData) -> (bool returnValue)
    33     RemoveProperty(WebKit::NPIdentifierData propertyName) -> (bool returnValue)
    34     Enumerate() -> (bool returnValue, Vector<WebKit::NPIdentifierData> identifiersData)
    35     Construct(Vector<WebKit::NPVariantData> argumentsData) -> (bool returnValue, WebKit::NPVariantData resultData)
     26    Deallocate() -> () LegacySync
     27    HasMethod(WebKit::NPIdentifierData methodName) -> (bool returnValue) LegacySync
     28    Invoke(WebKit::NPIdentifierData methodName, Vector<WebKit::NPVariantData> argumentsData) -> (bool returnValue, WebKit::NPVariantData resultData) LegacySync
     29    InvokeDefault(Vector<WebKit::NPVariantData> argumentsData) -> (bool returnValue, WebKit::NPVariantData resultData) LegacySync
     30    HasProperty(WebKit::NPIdentifierData propertyName) -> (bool returnValue) LegacySync
     31    GetProperty(WebKit::NPIdentifierData propertyName) -> (bool returnValue, WebKit::NPVariantData resultData) LegacySync
     32    SetProperty(WebKit::NPIdentifierData propertyName, WebKit::NPVariantData propertyValueData) -> (bool returnValue) LegacySync
     33    RemoveProperty(WebKit::NPIdentifierData propertyName) -> (bool returnValue) LegacySync
     34    Enumerate() -> (bool returnValue, Vector<WebKit::NPIdentifierData> identifiersData) LegacySync
     35    Construct(Vector<WebKit::NPVariantData> argumentsData) -> (bool returnValue, WebKit::NPVariantData resultData) LegacySync
    3636}
    3737
  • trunk/Source/WebKit/UIProcess/API/wpe/CompositingManagerProxy.messages.in

    r216497 r237300  
    2222
    2323messages -> CompositingManagerProxy {
    24     EstablishConnection() -> (IPC::Attachment connectionHandle)
     24    EstablishConnection() -> (IPC::Attachment connectionHandle) LegacySync
    2525}
  • trunk/Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in

    r227274 r237300  
    2727messages -> WebPaymentCoordinatorProxy {
    2828
    29     AvailablePaymentNetworks() -> (Vector<String> availablePaymentNetworks)
    30     CanMakePayments() -> (bool result)
     29    AvailablePaymentNetworks() -> (Vector<String> availablePaymentNetworks) LegacySync
     30    CanMakePayments() -> (bool result) LegacySync
    3131    CanMakePaymentsWithActiveCard(String merchantIdentifier, String domainName, uint64_t requestID)
    3232    OpenPaymentSetup(String merchantIdentifier, String domainName, uint64_t requestID)
    3333
    34     ShowPaymentUI(String originatingURLString, Vector<String> linkIconURLStrings, WebCore::ApplePaySessionPaymentRequest paymentRequest) -> (bool result)
     34    ShowPaymentUI(String originatingURLString, Vector<String> linkIconURLStrings, WebCore::ApplePaySessionPaymentRequest paymentRequest) -> (bool result) LegacySync
    3535    CompleteMerchantValidation(WebCore::PaymentMerchantSession paymentMerchantSession)
    3636    CompleteShippingMethodSelection(std::optional<WebCore::ShippingMethodUpdate> update)
  • trunk/Source/WebKit/UIProcess/Cocoa/UserMediaCaptureManagerProxy.messages.in

    r237281 r237300  
    2525
    2626messages -> UserMediaCaptureManagerProxy {
    27 CreateMediaSourceForCaptureDeviceWithConstraints(uint64_t id, WebCore::CaptureDevice device, String hashSalt, struct WebCore::MediaConstraints constraints) -> (bool success, String invalidConstraints, WebCore::RealtimeMediaSourceSettings settings)
     27CreateMediaSourceForCaptureDeviceWithConstraints(uint64_t id, WebCore::CaptureDevice device, String hashSalt, struct WebCore::MediaConstraints constraints) -> (bool success, String invalidConstraints, WebCore::RealtimeMediaSourceSettings settings) LegacySync
    2828    StartProducingData(uint64_t id)
    2929    StopProducingData(uint64_t id)
    30     Capabilities(uint64_t id) -> (WebCore::RealtimeMediaSourceCapabilities capabilities)
     30    Capabilities(uint64_t id) -> (WebCore::RealtimeMediaSourceCapabilities capabilities) LegacySync
    3131    SetMuted(uint64_t id, bool muted)
    3232    ApplyConstraints(uint64_t id, struct WebCore::MediaConstraints constraints)
  • trunk/Source/WebKit/UIProcess/Plugins/PluginProcessProxy.messages.in

    r196505 r237300  
    3535   
    3636    # Returns true if the UI process launched the process.
    37     LaunchProcess(String launchPath, Vector<String> arguments) -> (bool result)
     37    LaunchProcess(String launchPath, Vector<String> arguments) -> (bool result) LegacySync
    3838
    3939    # Returns true if the UI process launched the application.
    40     LaunchApplicationAtURL(String url, Vector<String> arguments) -> (bool result)
     40    LaunchApplicationAtURL(String url, Vector<String> arguments) -> (bool result) LegacySync
    4141
    4242    # Returns true if the UI process did open the URL.
    43     OpenURL(String urlString) -> (bool result, int32_t status, String launchedURLString)
     43    OpenURL(String urlString) -> (bool result, int32_t status, String launchedURLString) LegacySync
    4444   
    4545    # Returns true if the UI process did open the file.
    46     OpenFile(String fullPath) -> (bool result)
     46    OpenFile(String fullPath) -> (bool result) LegacySync
    4747#endif
    4848}
  • trunk/Source/WebKit/UIProcess/WebFullScreenManagerProxy.messages.in

    r142160 r237300  
    2323#if ENABLE(FULLSCREEN_API)
    2424messages -> WebFullScreenManagerProxy {
    25     SupportsFullScreen(bool withKeyboard) -> (bool supportsFullScreen)
     25    SupportsFullScreen(bool withKeyboard) -> (bool supportsFullScreen) LegacySync
    2626    EnterFullScreen()
    2727    ExitFullScreen()
  • trunk/Source/WebKit/UIProcess/WebPageProxy.messages.in

    r237266 r237300  
    6262    ScreenToRootView(WebCore::IntPoint screenPoint) -> (WebCore::IntPoint windowPoint) Delayed
    6363    RootViewToScreen(WebCore::IntRect rect) -> (WebCore::IntRect screenFrame) Delayed
    64     GetIsViewVisible() -> (bool result)
     64    GetIsViewVisible() -> (bool result) LegacySync
    6565
    6666#if PLATFORM(COCOA)
     
    7070
    7171#if PLATFORM(IOS_FAMILY)
    72     AccessibilityScreenToRootView(WebCore::IntPoint screenPoint) -> (WebCore::IntPoint windowPoint)
    73     RootViewToAccessibilityScreen(WebCore::IntRect rect) -> (WebCore::IntRect screenFrame)
     72    AccessibilityScreenToRootView(WebCore::IntPoint screenPoint) -> (WebCore::IntPoint windowPoint) LegacySync
     73    RootViewToAccessibilityScreen(WebCore::IntRect rect) -> (WebCore::IntRect screenFrame) LegacySync
    7474#endif
    7575
     
    7878    RunOpenPanel(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, struct WebCore::FileChooserSettings parameters)
    7979    ShowShareSheet(struct WebCore::ShareDataWithParsedURL shareData, uint64_t callbackID)
    80     PrintFrame(uint64_t frameID) -> ()
     80    PrintFrame(uint64_t frameID) -> () LegacySync
    8181    RunModal()
    8282    NotifyScrollerThumbIsVisibleInRect(WebCore::IntRect scrollerThumb)
     
    150150    DidDestroyNavigation(uint64_t navigationID)
    151151
    152     HasInsecureContent() -> (enum:bool WebCore::HasInsecureContent hasInsecureContent)
     152    HasInsecureContent() -> (enum:bool WebCore::HasInsecureContent hasInsecureContent) LegacySync
    153153
    154154    MainFramePluginHandlesPageScaleGestureDidChange(bool mainFramePluginHandlesPageScaleGesture)
     
    194194    AutocorrectionContextCallback(String beforeText, String markedText, String selectedText, String afterText, uint64_t location, uint64_t length, WebKit::CallbackID callbackID)
    195195    SelectionContextCallback(String selectedText, String beforeText, String afterText, WebKit::CallbackID callbackID)
    196     InterpretKeyEvent(struct WebKit::EditorState state, bool isCharEvent) -> (bool handled)
     196    InterpretKeyEvent(struct WebKit::EditorState state, bool isCharEvent) -> (bool handled) LegacySync
    197197    DidReceivePositionInformation(struct WebKit::InteractionInformationAtPosition information)
    198198    SaveImageToLibrary(WebKit::SharedMemory::Handle handle, uint64_t size)
     
    229229    # BackForward messages
    230230    BackForwardAddItem(struct WebKit::BackForwardListItemState itemState)
    231     BackForwardGoToItem(struct WebCore::BackForwardItemIdentifier itemID) -> (WebKit::SandboxExtension::Handle sandboxExtensionHandle)
    232     BackForwardItemAtIndex(int32_t itemIndex) -> (std::optional<WebCore::BackForwardItemIdentifier> itemID)
    233     BackForwardBackListCount() -> (uint32_t count)
    234     BackForwardForwardListCount() -> (uint32_t count)
     231    BackForwardGoToItem(struct WebCore::BackForwardItemIdentifier itemID) -> (WebKit::SandboxExtension::Handle sandboxExtensionHandle) LegacySync
     232    BackForwardItemAtIndex(int32_t itemIndex) -> (std::optional<WebCore::BackForwardItemIdentifier> itemID) LegacySync
     233    BackForwardBackListCount() -> (uint32_t count) LegacySync
     234    BackForwardForwardListCount() -> (uint32_t count) LegacySync
    235235    BackForwardClear()
    236236    WillGoToBackForwardListItem(struct WebCore::BackForwardItemIdentifier itemID, bool inPageCache)
     
    240240    ClearAllEditCommands()
    241241    RegisterInsertionUndoGrouping()
    242     CanUndoRedo(enum:bool WebKit::UndoOrRedo undoOrRedo) -> (bool result)
    243     ExecuteUndoRedo(enum:bool WebKit::UndoOrRedo undoOrRedo) -> ()
     242    CanUndoRedo(enum:bool WebKit::UndoOrRedo undoOrRedo) -> (bool result) LegacySync
     243    ExecuteUndoRedo(enum:bool WebKit::UndoOrRedo undoOrRedo) -> () LegacySync
    244244
    245245    # Diagnostic messages logging
     
    301301    # Spelling and grammar messages
    302302#if USE(UNIFIED_TEXT_CHECKING) 
    303     CheckTextOfParagraph(String text, OptionSet<WebCore::TextCheckingType> checkingTypes, int32_t insertionPoint) -> (Vector<WebCore::TextCheckingResult> results)
    304 #endif
    305     CheckSpellingOfString(String text) -> (int32_t misspellingLocation, int32_t misspellingLength)
    306     CheckGrammarOfString(String text) -> (Vector<WebCore::GrammarDetail> results, int32_t badGrammarLocation, int32_t badGrammarLength)
    307     SpellingUIIsShowing() -> (bool isShowing)
     303    CheckTextOfParagraph(String text, OptionSet<WebCore::TextCheckingType> checkingTypes, int32_t insertionPoint) -> (Vector<WebCore::TextCheckingResult> results) LegacySync
     304#endif
     305    CheckSpellingOfString(String text) -> (int32_t misspellingLocation, int32_t misspellingLength) LegacySync
     306    CheckGrammarOfString(String text) -> (Vector<WebCore::GrammarDetail> results, int32_t badGrammarLocation, int32_t badGrammarLength) LegacySync
     307    SpellingUIIsShowing() -> (bool isShowing) LegacySync
    308308    UpdateSpellingUIWithMisspelledWord(String misspelledWord)
    309309    UpdateSpellingUIWithGrammarString(String badGrammarPhrase, struct WebCore::GrammarDetail grammarDetail)
    310     GetGuessesForWord(String word, String context, int32_t insertionPoint) -> (Vector<String> guesses)
    311     LearnWord(String word);
    312     IgnoreWord(String word);
     310    GetGuessesForWord(String word, String context, int32_t insertionPoint) -> (Vector<String> guesses) LegacySync
     311    LearnWord(String word)
     312    IgnoreWord(String word)
    313313    RequestCheckingOfString(uint64_t requestID, WebCore::TextCheckingRequestData request, int32_t insertionPoint)
    314314
     
    341341
    342342    # Keyboard input support messages
    343     ExecuteSavedCommandBySelector(String selector) -> (bool handled)
     343    ExecuteSavedCommandBySelector(String selector) -> (bool handled) LegacySync
    344344
    345345    # Remote accessibility messages
     
    351351
    352352    # Speech messages
    353     GetIsSpeaking() -> (bool isSpeaking)
     353    GetIsSpeaking() -> (bool isSpeaking) LegacySync
    354354    Speak(String string)
    355355    StopSpeaking()
     
    369369
    370370#if USE(APPKIT)
    371     SubstitutionsPanelIsShowing() -> (bool isShowing)
     371    SubstitutionsPanelIsShowing() -> (bool isShowing) LegacySync
    372372#endif
    373373#if USE(AUTOMATIC_TEXT_REPLACEMENT)
     
    382382    ShowCorrectionPanel(int32_t panelType, WebCore::FloatRect boundingBoxOfReplacedString, String replacedString, String replacementString, Vector<String> alternativeReplacementStrings)
    383383    DismissCorrectionPanel(int32_t reason)
    384     DismissCorrectionPanelSoon(int32_t reason) -> (String result)
     384    DismissCorrectionPanelSoon(int32_t reason) -> (String result) LegacySync
    385385    RecordAutocorrectionResponse(int32_t response, String replacedString, String replacementString);
    386386
     
    391391    ShowDictationAlternativeUI(WebCore::FloatRect boundingBoxOfDictatedText, uint64_t dictationContext)
    392392    RemoveDictationAlternatives(uint64_t dictationContext)
    393     DictationAlternatives(uint64_t dictationContext) -> (Vector<String> alternatives)
     393    DictationAlternatives(uint64_t dictationContext) -> (Vector<String> alternatives) LegacySync
    394394#endif
    395395
    396396#if PLATFORM(X11)
    397397    # X11 windowed plugin messages
    398     CreatePluginContainer() -> (uint64_t windowID)
     398    CreatePluginContainer() -> (uint64_t windowID) LegacySync
    399399    WindowedPluginGeometryDidChange(WebCore::IntRect frameRect, WebCore::IntRect clipRect, uint64_t windowID)
    400400    WindowedPluginVisibilityDidChange(bool isVisible, uint64_t windowID)
     
    426426    # Search popup menus
    427427    SaveRecentSearches(String name, Vector<WebCore::RecentSearch> searchItems)
    428     LoadRecentSearches(String name) -> (Vector<WebCore::RecentSearch> result)
     428    LoadRecentSearches(String name) -> (Vector<WebCore::RecentSearch> result) LegacySync
    429429
    430430    SavePDFToFileInDownloadsFolder(String suggestedFilename, WebCore::URL originatingURL, IPC::DataReference data)
     
    436436
    437437#if ENABLE(PDFKIT_PLUGIN)
    438     ShowPDFContextMenu(struct WebKit::PDFContextMenu contextMenu) -> (std::optional<int32_t> selectedItem)
     438    ShowPDFContextMenu(struct WebKit::PDFContextMenu contextMenu) -> (std::optional<int32_t> selectedItem) LegacySync
    439439#endif
    440440
     
    448448
    449449#if ENABLE(SUBTLE_CRYPTO)
    450     WrapCryptoKey(Vector<uint8_t> key) -> (bool succeeded, Vector<uint8_t> wrappedKey)
    451     UnwrapCryptoKey(Vector<uint8_t> wrappedKey) -> (bool succeeded, Vector<uint8_t> key)
     450    WrapCryptoKey(Vector<uint8_t> key) -> (bool succeeded, Vector<uint8_t> wrappedKey) LegacySync
     451    UnwrapCryptoKey(Vector<uint8_t> wrappedKey) -> (bool succeeded, Vector<uint8_t> key) LegacySync
    452452#endif
    453453
     
    482482#endif
    483483    HandleMessage(String messageName, WebKit::UserData messageBody) WantsConnection
    484     HandleSynchronousMessage(String messageName, WebKit::UserData messageBody) -> (WebKit::UserData returnData) WantsConnection
     484    HandleSynchronousMessage(String messageName, WebKit::UserData messageBody) -> (WebKit::UserData returnData) LegacySync WantsConnection
    485485
    486486    HandleAutoFillButtonClick(WebKit::UserData userData)
     
    547547#endif
    548548
    549     SignedPublicKeyAndChallengeString(unsigned keySizeIndex, String challengeString, WebCore::URL url) -> (String result)
     549    SignedPublicKeyAndChallengeString(unsigned keySizeIndex, String challengeString, WebCore::URL url) -> (String result) LegacySync
    550550
    551551}
  • trunk/Source/WebKit/UIProcess/WebPasteboardProxy.messages.in

    r237266 r237300  
    2727    WriteImageToPasteboard(struct WebCore::PasteboardImage pasteboardImage, String pasteboardName)
    2828    WriteStringToPasteboard(String pasteboardType, String text, String pasteboardName)
    29     ReadStringFromPasteboard(uint64_t index, String pasteboardType, String pasteboardName) -> (String string)
    30     ReadURLFromPasteboard(uint64_t index, String pasteboardName) -> (String url, String title)
    31     ReadBufferFromPasteboard(uint64_t index, String pasteboardType, String pasteboardName) -> (WebKit::SharedMemory::Handle handle, uint64_t size)
    32     GetPasteboardItemsCount(String pasteboardName) -> (uint64_t itemsCount)
    33     AllPasteboardItemInfo(String pasteboardName) -> (Vector<WebCore::PasteboardItemInfo> allInfo)
    34     InformationForItemAtIndex(uint64_t index, String pasteboardName) -> (struct WebCore::PasteboardItemInfo info)
     29    ReadStringFromPasteboard(uint64_t index, String pasteboardType, String pasteboardName) -> (String string) LegacySync
     30    ReadURLFromPasteboard(uint64_t index, String pasteboardName) -> (String url, String title) LegacySync
     31    ReadBufferFromPasteboard(uint64_t index, String pasteboardType, String pasteboardName) -> (WebKit::SharedMemory::Handle handle, uint64_t size) LegacySync
     32    GetPasteboardItemsCount(String pasteboardName) -> (uint64_t itemsCount) LegacySync
     33    AllPasteboardItemInfo(String pasteboardName) -> (Vector<WebCore::PasteboardItemInfo> allInfo) LegacySync
     34    InformationForItemAtIndex(uint64_t index, String pasteboardName) -> (struct WebCore::PasteboardItemInfo info) LegacySync
    3535    UpdateSupportedTypeIdentifiers(Vector<String> identifiers, String pasteboardName)
    36     GetPasteboardTypesByFidelityForItemAtIndex(uint64_t index, String pasteboardName) -> (Vector<String> types)
     36    GetPasteboardTypesByFidelityForItemAtIndex(uint64_t index, String pasteboardName) -> (Vector<String> types) LegacySync
    3737#endif
    3838
    39     WriteCustomData(struct WebCore::PasteboardCustomData data, String pasteboardName) -> (uint64_t changeCount)
    40     TypesSafeForDOMToReadAndWrite(String pasteboardName, String origin) -> (Vector<String> types)
     39    WriteCustomData(struct WebCore::PasteboardCustomData data, String pasteboardName) -> (uint64_t changeCount) LegacySync
     40    TypesSafeForDOMToReadAndWrite(String pasteboardName, String origin) -> (Vector<String> types) LegacySync
    4141
    4242#if PLATFORM(COCOA)
    4343    # Pasteboard messages.
    44     GetNumberOfFiles(String pasteboardName) -> (uint64_t numberOfFiles)
    45     GetPasteboardTypes(String pasteboardName) -> (Vector<String> types)
    46     GetPasteboardPathnamesForType(String pasteboardName, String pasteboardType) -> (Vector<String> pathnames, WebKit::SandboxExtension::HandleArray sandboxExtensions) WantsConnection
    47     GetPasteboardStringForType(String pasteboardName, String pasteboardType) -> (String string)
    48     GetPasteboardStringsForType(String pasteboardName, String pasteboardType) -> (Vector<String> strings)
    49     GetPasteboardBufferForType(String pasteboardName, String pasteboardType) -> (WebKit::SharedMemory::Handle handle, uint64_t size)
    50     PasteboardCopy(String fromPasteboard, String toPasteboard) -> (uint64_t changeCount)
    51     GetPasteboardChangeCount(String pasteboardName) -> (uint64_t changeCount)
    52     GetPasteboardUniqueName() -> (String pasteboardName)
    53     GetPasteboardColor(String pasteboardName) -> (WebCore::Color color)
    54     GetPasteboardURL(String pasteboardName) -> (String urlString)
    55     AddPasteboardTypes(String pasteboardName, Vector<String> pasteboardTypes) -> (uint64_t changeCount)
    56     SetPasteboardTypes(String pasteboardName, Vector<String> pasteboardTypes) -> (uint64_t changeCount)
    57     SetPasteboardURL(struct WebCore::PasteboardURL pasteboardURL, String pasteboardName) -> (uint64_t changeCount) WantsConnection
    58     SetPasteboardColor(String pasteboardName, WebCore::Color color) -> (uint64_t changeCount)
    59     SetPasteboardStringForType(String pasteboardName, String pasteboardType, String string) -> (uint64_t changeCount)
    60     SetPasteboardBufferForType(String pasteboardName, String pasteboardType, WebKit::SharedMemory::Handle handle, uint64_t size) -> (uint64_t changeCount)
     44    GetNumberOfFiles(String pasteboardName) -> (uint64_t numberOfFiles) LegacySync
     45    GetPasteboardTypes(String pasteboardName) -> (Vector<String> types) LegacySync
     46    GetPasteboardPathnamesForType(String pasteboardName, String pasteboardType) -> (Vector<String> pathnames, WebKit::SandboxExtension::HandleArray sandboxExtensions) LegacySync WantsConnection
     47    GetPasteboardStringForType(String pasteboardName, String pasteboardType) -> (String string) LegacySync
     48    GetPasteboardStringsForType(String pasteboardName, String pasteboardType) -> (Vector<String> strings) LegacySync
     49    GetPasteboardBufferForType(String pasteboardName, String pasteboardType) -> (WebKit::SharedMemory::Handle handle, uint64_t size) LegacySync
     50    PasteboardCopy(String fromPasteboard, String toPasteboard) -> (uint64_t changeCount) LegacySync
     51    GetPasteboardChangeCount(String pasteboardName) -> (uint64_t changeCount) LegacySync
     52    GetPasteboardUniqueName() -> (String pasteboardName) LegacySync
     53    GetPasteboardColor(String pasteboardName) -> (WebCore::Color color) LegacySync
     54    GetPasteboardURL(String pasteboardName) -> (String urlString) LegacySync
     55    AddPasteboardTypes(String pasteboardName, Vector<String> pasteboardTypes) -> (uint64_t changeCount) LegacySync
     56    SetPasteboardTypes(String pasteboardName, Vector<String> pasteboardTypes) -> (uint64_t changeCount) LegacySync
     57    SetPasteboardURL(struct WebCore::PasteboardURL pasteboardURL, String pasteboardName) -> (uint64_t changeCount) LegacySync WantsConnection
     58    SetPasteboardColor(String pasteboardName, WebCore::Color color) -> (uint64_t changeCount) LegacySync
     59    SetPasteboardStringForType(String pasteboardName, String pasteboardType, String string) -> (uint64_t changeCount) LegacySync
     60    SetPasteboardBufferForType(String pasteboardName, String pasteboardType, WebKit::SharedMemory::Handle handle, uint64_t size) -> (uint64_t changeCount) LegacySync
    6161#endif
    6262
    6363#if PLATFORM(GTK)
    64     WriteToClipboard(String pasteboardName, struct WebKit::WebSelectionData pasteboardContent)
    65     ReadFromClipboard(String pasteboardName) -> (struct WebKit::WebSelectionData pasteboardContent)
     64    WriteToClipboard(String pasteboardName, struct WebKit::WebSelectionData pasteboardContent) LegacySync
     65    ReadFromClipboard(String pasteboardName) -> (struct WebKit::WebSelectionData pasteboardContent) LegacySync
    6666#endif
    6767
    6868#if PLATFORM(WPE)
    69     GetPasteboardTypes() -> (Vector<String> types)
    70     ReadStringFromPasteboard(uint64_t index, String pasteboardType) -> (String string)
    71     WriteWebContentToPasteboard(struct WebCore::PasteboardWebContent content)
    72     WriteStringToPasteboard(String pasteboardType, String text)
     69    GetPasteboardTypes() -> (Vector<String> types) LegacySync
     70    ReadStringFromPasteboard(uint64_t index, String pasteboardType) -> (String string) LegacySync
     71    WriteWebContentToPasteboard(struct WebCore::PasteboardWebContent content) LegacySync
     72    WriteStringToPasteboard(String pasteboardType, String text) LegacySync
    7373#endif
    7474}
  • trunk/Source/WebKit/UIProcess/WebProcessPool.messages.in

    r228564 r237300  
    2323messages -> WebProcessPool {
    2424    HandleMessage(String messageName, WebKit::UserData messageBody) WantsConnection
    25     HandleSynchronousMessage(String messageName, WebKit::UserData messageBody) -> (WebKit::UserData returnData) WantsConnection
     25    HandleSynchronousMessage(String messageName, WebKit::UserData messageBody) -> (WebKit::UserData returnData) LegacySync WantsConnection
    2626
    2727    DidGetStatistics(struct WebKit::StatisticsData statisticsData, uint64_t callbackID)
  • trunk/Source/WebKit/UIProcess/WebProcessProxy.messages.in

    r236959 r237300  
    2727    DidDestroyUserGestureToken(uint64_t userGestureTokenID)
    2828
    29     ShouldTerminate() -> (bool shouldTerminate)
     29    ShouldTerminate() -> (bool shouldTerminate) LegacySync
    3030
    3131    EnableSuddenTermination()
     
    3434    # Plugin messages.
    3535#if ENABLE(NETSCAPE_PLUGIN_API)
    36     GetPlugins(bool refresh) -> (Vector<WebCore::PluginInfo> plugins, Vector<WebCore::PluginInfo> applicationPlugins, struct std::optional<Vector<WebCore::SupportedPluginIdentifier>> supportedPluginIdentifiers)
     36    GetPlugins(bool refresh) -> (Vector<WebCore::PluginInfo> plugins, Vector<WebCore::PluginInfo> applicationPlugins, struct std::optional<Vector<WebCore::SupportedPluginIdentifier>> supportedPluginIdentifiers) LegacySync
    3737    GetPluginProcessConnection(uint64_t pluginProcessToken) -> (IPC::Attachment connectionHandle, bool supportsAsynchronousInitialization) Delayed
    3838#endif
  • trunk/Source/WebKit/UIProcess/WebStorage/StorageManager.messages.in

    r219966 r237300  
    2727    DestroyStorageMap(uint64_t storageMapID) WantsConnection
    2828
    29     GetValues(uint64_t storageMapID, uint64_t storageMapSeed) -> (HashMap<String, String> values) WantsConnection
     29    GetValues(uint64_t storageMapID, uint64_t storageMapSeed) -> (HashMap<String, String> values) LegacySync WantsConnection
    3030
    3131    SetItem(uint64_t storageMapID, uint64_t sourceStorageAreaID, uint64_t storageMapSeed, String key, String value, String urlString) WantsConnection
  • trunk/Source/WebKit/UIProcess/mac/SecItemShimProxy.messages.in

    r205264 r237300  
    2424
    2525#if ENABLE(SEC_ITEM_SHIM)
    26     SecItemRequest(WebKit::SecItemRequestData request) -> (WebKit::SecItemResponseData response)
     26    SecItemRequest(WebKit::SecItemRequestData request) -> (WebKit::SecItemResponseData response) LegacySync
    2727#endif
    2828
  • trunk/Source/WebKit/WebProcess/Plugins/PluginProcessConnection.messages.in

    r208329 r237300  
    2525messages -> PluginProcessConnection LegacyReceiver {
    2626    # Set a global JavaScript exception.
    27     SetException(String exceptionString) -> ()
     27    SetException(String exceptionString) -> () LegacySync
    2828}
    2929
  • trunk/Source/WebKit/WebProcess/Plugins/PluginProxy.messages.in

    r221609 r237300  
    3131
    3232    # Returns a PAC style string with proxies for the given URL.
    33     ProxiesForURL(String urlString) -> (String proxiesString)
     33    ProxiesForURL(String urlString) -> (String proxiesString) LegacySync
    3434
    3535    # Returns the cookies for the given URL.
    36     CookiesForURL(String urlString) -> (String cookieString)
     36    CookiesForURL(String urlString) -> (String cookieString) LegacySync
    3737
    3838    # Sets the cookies for the given URL.
     
    4040
    4141    # Gets the authentication info for the given protection space.
    42     GetAuthenticationInfo(WebCore::ProtectionSpace protectionSpace) -> (bool returnValue, String username, String password)
     42    GetAuthenticationInfo(WebCore::ProtectionSpace protectionSpace) -> (bool returnValue, String username, String password) LegacySync
    4343
    4444    # Gets a reference to the plug-in element NPObject.
    45     GetPluginElementNPObject() -> (uint64_t pluginElementNPObjectID)
     45    GetPluginElementNPObject() -> (uint64_t pluginElementNPObjectID) LegacySync
    4646
    4747    # Evaluates the given JavaScript string.
    48     Evaluate(WebKit::NPVariantData npObjectAsVariantData, String scriptString, bool allowPopups) -> (bool returnValue, WebKit::NPVariantData resultData)
     48    Evaluate(WebKit::NPVariantData npObjectAsVariantData, String scriptString, bool allowPopups) -> (bool returnValue, WebKit::NPVariantData resultData) LegacySync
    4949
    5050    # Cancels the given stream load.
     
    7373#if PLATFORM(X11)
    7474    # Create the plugin container for windowed plugins
    75     CreatePluginContainer() -> (uint64_t windowID)
     75    CreatePluginContainer() -> (uint64_t windowID) LegacySync
    7676
    7777    # Update geometry of windowed plugin widget
     
    8383
    8484    # Tells the WebProcess that the plug-in was successfully initialized asynchronously
    85     DidCreatePlugin(bool wantsWheelEvents, uint32_t remoteLayerClientID) -> ()
     85    DidCreatePlugin(bool wantsWheelEvents, uint32_t remoteLayerClientID) -> () LegacySync
    8686   
    8787    # Tells the WebProcess that the plug-in failed to initialize.
    88     DidFailToCreatePlugin() -> ()
     88    DidFailToCreatePlugin() -> () LegacySync
    8989
    9090    # Tells the WebProcess that the plug-in has started or stopped playing audio.
  • trunk/Source/WebKit/WebProcess/WebPage/WebPage.messages.in

    r237266 r237300  
    7878    RequestAutocorrectionData(String textForAutocorrection, WebKit::CallbackID callbackID)
    7979    ApplyAutocorrection(String correction, String originalText, WebKit::CallbackID callbackID)
    80     SyncApplyAutocorrection(String correction, String originalText) -> (bool autocorrectionApplied)
     80    SyncApplyAutocorrection(String correction, String originalText) -> (bool autocorrectionApplied) LegacySync
    8181    RequestAutocorrectionContext(WebKit::CallbackID callbackID)
    82     GetAutocorrectionContext() -> (String beforeContext, String markedText, String selectedText, String afterContext, uint64_t location, uint64_t length)
    83     GetPositionInformation(struct WebKit::InteractionInformationRequest request) -> (struct WebKit::InteractionInformationAtPosition information)
     82    GetAutocorrectionContext() -> (String beforeContext, String markedText, String selectedText, String afterContext, uint64_t location, uint64_t length) LegacySync
     83    GetPositionInformation(struct WebKit::InteractionInformationRequest request) -> (struct WebKit::InteractionInformationAtPosition information) LegacySync
    8484    RequestPositionInformation(struct WebKit::InteractionInformationRequest request)
    8585    StartInteractionWithElementAtPosition(WebCore::IntPoint point)
     
    117117
    118118#if ENABLE(IOS_TOUCH_EVENTS)
    119     TouchEventSync(WebKit::WebTouchEvent event) -> (bool handled)
     119    TouchEventSync(WebKit::WebTouchEvent event) -> (bool handled) LegacySync
    120120#endif
    121121#if !ENABLE(IOS_TOUCH_EVENTS) && ENABLE(TOUCH_EVENTS)
     
    383383
    384384#if PLATFORM (GTK) && HAVE(GTK_GESTURES)
    385     GetCenterForZoomGesture(WebCore::IntPoint centerInViewCoordinates) -> (WebCore::IntPoint center)
     385    GetCenterForZoomGesture(WebCore::IntPoint centerInViewCoordinates) -> (WebCore::IntPoint center) LegacySync
    386386#endif
    387387
     
    393393    SetMainFrameIsScrollable(bool isScrollable)
    394394    RegisterUIProcessAccessibilityTokens(IPC::DataReference elemenToken, IPC::DataReference windowToken)
    395     GetStringSelectionForPasteboard() -> (String stringValue)
    396     GetDataSelectionForPasteboard(String pasteboardType) -> (WebKit::SharedMemory::Handle handle, uint64_t size)
    397     ReadSelectionFromPasteboard(String pasteboardName) -> (bool result)
     395    GetStringSelectionForPasteboard() -> (String stringValue) LegacySync
     396    GetDataSelectionForPasteboard(String pasteboardType) -> (WebKit::SharedMemory::Handle handle, uint64_t size) LegacySync
     397    ReadSelectionFromPasteboard(String pasteboardName) -> (bool result) LegacySync
    398398
    399399#if ENABLE(SERVICE_CONTROLS)
     
    401401#endif
    402402
    403     ShouldDelayWindowOrderingEvent(WebKit::WebMouseEvent event) -> (bool result)
    404     AcceptsFirstMouse(int eventNumber, WebKit::WebMouseEvent event) -> (bool result)
     403    ShouldDelayWindowOrderingEvent(WebKit::WebMouseEvent event) -> (bool result) LegacySync
     404    AcceptsFirstMouse(int eventNumber, WebKit::WebMouseEvent event) -> (bool result) LegacySync
    405405
    406406    SetTextAsync(String text)
  • trunk/Source/WebKit/WebProcess/WebProcess.messages.in

    r237267 r237300  
    8383    ReleasePageCache()
    8484
    85     FetchWebsiteData(PAL::SessionID sessionID, OptionSet<WebKit::WebsiteDataType> websiteDataTypes) -> (struct WebKit::WebsiteData websiteData)
    86     DeleteWebsiteData(PAL::SessionID sessionID, OptionSet<WebKit::WebsiteDataType> websiteDataTypes, WallTime modifiedSince) -> ()
    87     DeleteWebsiteDataForOrigins(PAL::SessionID sessionID, OptionSet<WebKit::WebsiteDataType> websiteDataTypes, Vector<WebCore::SecurityOriginData> origins) -> ()
     85    FetchWebsiteData(PAL::SessionID sessionID, OptionSet<WebKit::WebsiteDataType> websiteDataTypes) -> (struct WebKit::WebsiteData websiteData) LegacySync
     86    DeleteWebsiteData(PAL::SessionID sessionID, OptionSet<WebKit::WebsiteDataType> websiteDataTypes, WallTime modifiedSince) -> () LegacySync
     87    DeleteWebsiteDataForOrigins(PAL::SessionID sessionID, OptionSet<WebKit::WebsiteDataType> websiteDataTypes, Vector<WebCore::SecurityOriginData> origins) -> () LegacySync
    8888
    8989    SetHiddenPageDOMTimerThrottlingIncreaseLimit(int milliseconds)
     
    101101    DestroyAutomationSessionProxy()
    102102
    103     ProcessWillSuspendImminently() -> (bool handled)
     103    ProcessWillSuspendImminently() -> (bool handled) LegacySync
    104104    PrepareToSuspend()
    105105    CancelPrepareToSuspend()
     
    130130
    131131    UpdateActivePages()
    132     GetActivePagesOriginsForTesting() -> (Vector<String> activeOrigins)
     132    GetActivePagesOriginsForTesting() -> (Vector<String> activeOrigins) LegacySync
    133133
    134134#if PLATFORM(MAC)
Note: See TracChangeset for help on using the changeset viewer.