Bug 85938

Summary: [BlackBerry] Refactor data scheme support
Product: WebKit Reporter: Charles Wei <charles.wei>
Component: WebKit BlackBerryAssignee: Charles Wei <charles.wei>
Status: RESOLVED FIXED    
Severity: Normal CC: mawu, rwlbuis, staikos, tonikitoo, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
final patch for landing none

Description Charles Wei 2012-05-08 18:03:32 PDT
Data scheme support is now implemented in NetworkJob.cpp,  but NetworkJob.cpp is not re-useable by Download, because NetworkJob.cpp is supposed to feed the data to webkit only. 

So we need to refractor the data scheme support,  move the data scheme out of NetworkJob to it's own stream, DataStream,  which can be wrapped up by both NetworkJob and Download Jobs.

Internal PR: 154804
Comment 1 Charles Wei 2012-05-09 04:38:58 PDT
Created attachment 140914 [details]
Patch
Comment 2 Charles Wei 2012-05-09 04:40:33 PDT
Above patch was internally reviewed by Joe Mason, Lyon Chen, Jason Liu and Mary
Comment 3 Rob Buis 2012-05-09 10:57:03 PDT
Comment on attachment 140914 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=140914&action=review

LGTM.

> Source/WebCore/platform/network/blackberry/NetworkJob.cpp:-90
> -    out.resize(dst - out.data());

Is there anything more you can remove because this gets removed? Maybe #include <wtf/ASCIICType.h> ?
Comment 4 Charles Wei 2012-05-09 17:47:10 PDT
Created attachment 141066 [details]
final patch for landing

Landing the patch after fixing minor comments from the reviewer.
Comment 5 WebKit Review Bot 2012-05-09 18:12:51 PDT
Comment on attachment 141066 [details]
final patch for landing

Clearing flags on attachment: 141066

Committed r116591: <http://trac.webkit.org/changeset/116591>
Comment 6 Charles Wei 2012-06-01 02:39:35 PDT
Patch has landed.  Mark it as Resolved.