Bug 50185

Summary: Should be able to pause and resume downloads
Product: WebKit Reporter: Anders Carlsson <andersca>
Component: WebKit2Assignee: Anders Carlsson <andersca>
Status: RESOLVED FIXED    
Severity: Normal CC: darin
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Attachments:
Description Flags
Patch darin: review+

Anders Carlsson
Reported 2010-11-29 14:23:43 PST
Should be able to pause and resume downloads
Attachments
Patch (19.03 KB, patch)
2010-11-29 14:30 PST, Anders Carlsson
darin: review+
Anders Carlsson
Comment 1 2010-11-29 14:24:04 PST
Anders Carlsson
Comment 2 2010-11-29 14:30:45 PST
Darin Adler
Comment 3 2010-11-29 14:37:13 PST
Comment on attachment 75062 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=75062&action=review Might be better to name this resumptionData rather than resumeData so it doesn’t sound like a verb phrase. But I guess the NSURLDownload method is already named resumeData? > WebKit2/UIProcess/Downloads/DownloadProxy.cpp:153 > + if (!resumeData.isEmpty()) > + m_resumeData = WebData::create(resumeData.data(), resumeData.size()); Would be nice to share this code instead of writing it twice.
Anders Carlsson
Comment 4 2010-11-29 14:41:04 PST
(In reply to comment #3) > (From update of attachment 75062 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=75062&action=review > > Might be better to name this resumptionData rather than resumeData so it doesn’t sound like a verb phrase. But I guess the NSURLDownload method is already named resumeData? Yeah. > > > WebKit2/UIProcess/Downloads/DownloadProxy.cpp:153 > > + if (!resumeData.isEmpty()) > > + m_resumeData = WebData::create(resumeData.data(), resumeData.size()); > > Would be nice to share this code instead of writing it twice. Fixed. Thanks for reviewing!
Anders Carlsson
Comment 5 2010-11-29 15:34:55 PST
Note You need to log in before you can comment on or make changes to this bug.