Changeset 64132 in webkit
- Timestamp:
- Jul 27, 2010 9:06:48 AM (14 years ago)
- Location:
- trunk/WebKit2
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit2/ChangeLog
r64127 r64132 1 2010-07-27 Adam Roben <aroben@apple.com> 2 3 Add a ProcessDidExit callback to the WKPageLoaderClient 4 5 Fixes <http://webkit.org/b/43048> UI process needs a way to find out 6 when the web process crashes 7 8 Reviewed by Anders Carlsson. 9 10 * UIProcess/API/C/WKPage.h: Added WKPageProcessDidExitCallback, and a 11 processDidExit member of that type to WKPageLoaderClient. 12 13 * UIProcess/WebLoaderClient.cpp: 14 (WebKit::WebLoaderClient::processDidExit): Added. Calls through to the 15 WKPageLoaderClient. 16 17 * UIProcess/WebLoaderClient.h: Added processDidExit. 18 19 * UIProcess/WebPageProxy.cpp: 20 (WebKit::WebPageProxy::processDidExit): Tell the loader client the 21 process exited. 22 1 23 2010-07-27 Andras Becsi <abecsi@webkit.org> 2 24 -
trunk/WebKit2/UIProcess/API/C/WKPage.h
r64065 r64132 66 66 67 67 // WebPageNamespace Client 68 // FIXME: These t wo methods should not be part of this client.68 // FIXME: These three functions should not be part of this client. 69 69 typedef void (*WKPageDidBecomeUnresponsiveCallback)(WKPageRef page, const void *clientInfo); 70 70 typedef void (*WKPageDidBecomeResponsiveCallback)(WKPageRef page, const void *clientInfo); 71 typedef void (*WKPageProcessDidExitCallback)(WKPageRef page, const void *clientInfo); 71 72 72 73 typedef void (*WKPageDidChangeBackForwardListCallback)(WKPageRef page, const void *clientInfo); … … 90 91 WKPageDidFinishProgressCallback didFinishProgress; 91 92 92 // FIXME: These t wo methods should not be part of this client.93 // FIXME: These three functions should not be part of this client. 93 94 WKPageDidBecomeUnresponsiveCallback didBecomeUnresponsive; 94 95 WKPageDidBecomeResponsiveCallback didBecomeResponsive; 96 WKPageProcessDidExitCallback processDidExit; 95 97 96 98 WKPageDidChangeBackForwardListCallback didChangeBackForwardList; -
trunk/WebKit2/UIProcess/WebLoaderClient.cpp
r63590 r64132 128 128 } 129 129 130 void WebLoaderClient::processDidExit(WebPageProxy* page) 131 { 132 if (m_pageLoaderClient.processDidExit) 133 m_pageLoaderClient.processDidExit(toRef(page), m_pageLoaderClient.clientInfo); 134 } 135 130 136 void WebLoaderClient::didChangeBackForwardList(WebPageProxy* page) 131 137 { -
trunk/WebKit2/UIProcess/WebLoaderClient.h
r63590 r64132 56 56 void didFinishProgress(WebPageProxy*); 57 57 58 // FIXME: These t wo methods should not be part of this client.58 // FIXME: These three functions should not be part of this client. 59 59 void didBecomeUnresponsive(WebPageProxy*); 60 60 void didBecomeResponsive(WebPageProxy*); 61 void processDidExit(WebPageProxy*); 61 62 62 63 void didChangeBackForwardList(WebPageProxy*); -
trunk/WebKit2/UIProcess/WebPageProxy.cpp
r64065 r64132 1015 1015 1016 1016 m_estimatedProgress = 0.0; 1017 1017 1018 1018 m_pageClient->processDidExit(); 1019 m_loaderClient.processDidExit(this); 1019 1020 } 1020 1021
Note: See TracChangeset
for help on using the changeset viewer.