Changeset 195526 in webkit
- Timestamp:
- Jan 24, 2016 11:45:39 PM (8 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r195524 r195526 1 2016-01-24 Alex Christensen <achristensen@webkit.org> 2 3 Report upload progress to NetworkLoadClient when using NetworkSession 4 https://bugs.webkit.org/show_bug.cgi?id=153388 5 6 Reviewed by Darin Adler. 7 8 This fixes http/tests/xmlhttprequest/upload-onload-event.html and a few other tests. 9 10 * NetworkProcess/NetworkLoad.cpp: 11 (WebKit::NetworkLoad::didBecomeDownload): 12 (WebKit::NetworkLoad::didSendData): 13 (WebKit::NetworkLoad::didReceiveResponseAsync): 14 * NetworkProcess/NetworkLoad.h: 15 * NetworkProcess/NetworkSession.h: 16 (WebKit::NetworkSessionTaskClient::~NetworkSessionTaskClient): 17 * NetworkProcess/cocoa/NetworkSessionCocoa.mm: 18 (-[WKNetworkSessionDelegate initWithNetworkSession:]): 19 (-[WKNetworkSessionDelegate URLSession:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:]): 20 (-[WKNetworkSessionDelegate URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:]): 21 1 22 2016-01-24 Gyuyoung Kim <gyuyoung.kim@webkit.org> 2 23 -
trunk/Source/WebKit2/NetworkProcess/NetworkLoad.cpp
r195509 r195526 242 242 } 243 243 244 void NetworkLoad::didSendData(uint64_t totalBytesSent, uint64_t totalBytesExpectedToSend) 245 { 246 m_client.didSendData(totalBytesSent, totalBytesExpectedToSend); 247 } 248 244 249 #else 245 250 -
trunk/Source/WebKit2/NetworkProcess/NetworkLoad.h
r194810 r195526 74 74 virtual void didCompleteWithError(const WebCore::ResourceError&) final override; 75 75 virtual void didBecomeDownload() final override; 76 virtual void didSendData(uint64_t totalBytesSent, uint64_t totalBytesExpectedToSend) override; 76 77 #else 77 78 // ResourceHandleClient -
trunk/Source/WebKit2/NetworkProcess/NetworkSession.h
r195509 r195526 77 77 virtual void didCompleteWithError(const WebCore::ResourceError&) = 0; 78 78 virtual void didBecomeDownload() = 0; 79 virtual void didSendData(uint64_t totalBytesSent, uint64_t totalBytesExpectedToSend) = 0; 79 80 80 81 virtual ~NetworkSessionTaskClient() { } -
trunk/Source/WebKit2/NetworkProcess/cocoa/NetworkSessionCocoa.mm
r195509 r195526 96 96 } 97 97 98 - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didSendBodyData:(int64_t)bytesSent totalBytesSent:(int64_t)totalBytesSent totalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend 99 { 100 if (auto* networkDataTask = _session->dataTaskForIdentifier(task.taskIdentifier)) 101 networkDataTask->client().didSendData(totalBytesSent, totalBytesExpectedToSend); 102 } 103 98 104 - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task willPerformHTTPRedirection:(NSHTTPURLResponse *)response newRequest:(NSURLRequest *)request completionHandler:(void (^)(NSURLRequest *))completionHandler 99 105 {
Note: See TracChangeset
for help on using the changeset viewer.