Move part of NetworkRTCProvider::close implementation in NetworkRTCProvider destructor
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Mar 2017 01:29:51 +0000 (01:29 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Mar 2017 01:29:51 +0000 (01:29 +0000)
commitf7ad384614c9af40ae39897afe0ae7a9dff8ce15
treeb7c70ddeb866de4e5d58e929a9746d64afd89dcf
parent661fba9ac64fbe9e06908ab828e9e7080b9e18af
Move part of NetworkRTCProvider::close implementation in NetworkRTCProvider destructor
https://bugs.webkit.org/show_bug.cgi?id=169104

Patch by Youenn Fablet <youenn@apple.com> on 2017-03-02
Reviewed by Alex Christensen.

Improving NetworkRTCProvider clean-up by moving some member field cleaning to the destructor.
The remaining cleaning is still kept in NetworkRTCProvider::close as we need to go to the rtc network thread and
for that, we take a ref of NetworkRTCProvider.
Stopping any resolver before freeing them.

* NetworkProcess/webrtc/NetworkRTCMonitor.h:
* NetworkProcess/webrtc/NetworkRTCProvider.cpp:
(WebKit::NetworkRTCProvider::~NetworkRTCProvider):
(WebKit::NetworkRTCProvider::close):
* NetworkProcess/webrtc/NetworkRTCProvider.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@213330 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/NetworkProcess/webrtc/NetworkRTCMonitor.h
Source/WebKit2/NetworkProcess/webrtc/NetworkRTCProvider.cpp
Source/WebKit2/NetworkProcess/webrtc/NetworkRTCProvider.h