Changeset 229178 in webkit


Ignore:
Timestamp:
Mar 2, 2018 9:48:06 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

WebProcessProxy should handle its completion handler at destruction time
https://bugs.webkit.org/show_bug.cgi?id=183224

Patch by Youenn Fablet <youenn@apple.com> on 2018-03-02
Reviewed by Brady Eidson.

  • UIProcess/WebProcessProxy.cpp:

(WebKit::WebProcessProxy::~WebProcessProxy):

  • UIProcess/WebProcessProxy.h:
Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r229175 r229178  
     12018-03-02  Youenn Fablet  <youenn@apple.com>
     2
     3        WebProcessProxy should handle its completion handler at destruction time
     4        https://bugs.webkit.org/show_bug.cgi?id=183224
     5
     6        Reviewed by Brady Eidson.
     7
     8        * UIProcess/WebProcessProxy.cpp:
     9        (WebKit::WebProcessProxy::~WebProcessProxy):
     10        * UIProcess/WebProcessProxy.h:
     11
    1122018-03-02  Brent Fulgham  <bfulgham@apple.com>
    213
  • trunk/Source/WebKit/UIProcess/WebProcessProxy.cpp

    r228587 r229178  
    147147    while (m_numberOfTimesSuddenTerminationWasDisabled-- > 0)
    148148        WebCore::enableSuddenTermination();
     149
     150    for (auto& callback : m_localPortActivityCompletionHandlers.values())
     151        callback(MessagePortChannelProvider::HasActivity::No);
    149152}
    150153
  • trunk/Source/WebKit/UIProcess/WebProcessProxy.h

    r228587 r229178  
    328328
    329329    HashSet<WebCore::MessagePortIdentifier> m_processEntangledPorts;
    330     HashMap<uint64_t, CompletionHandler<void()>> m_messageBatchDeliveryCompletionHandlers;
     330    HashMap<uint64_t, Function<void()>> m_messageBatchDeliveryCompletionHandlers;
    331331    HashMap<uint64_t, CompletionHandler<void(WebCore::MessagePortChannelProvider::HasActivity)>> m_localPortActivityCompletionHandlers;
    332332};
Note: See TracChangeset for help on using the changeset viewer.