Bug 102259

Summary: Move loading responsibility out of WebResourceLoadScheduler into a new WebResourceLoader
Product: WebKit Reporter: Brady Eidson <beidson>
Component: WebKit2Assignee: Brady Eidson <beidson>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, ap, sam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: All   
Bug Depends on:    
Bug Blocks: 98537    
Attachments:
Description Flags
Patch 1, v1
ap: review+
Patch 2, v1 ap: review+

Description Brady Eidson 2012-11-14 11:32:55 PST
Move loading responsibility out of WebResourceLoadScheduler into a new WebResourceLoader

Per the FIXME in WebResourceLoadScheduler.h, it's taken it too many responsibilities that don't belong to it.

We should make a WebResourceLoader that is an intermediary proxy between WebCore and the NetworkProcess.
- It will directly represent a single WebCore::ResourceLoader and be able to deliver loading callbacks to it
- It will be directly message-able from the NetworkProcess without going through the WebResourceLoadScheduler

I'll resolve this bug in 2 separate patches for ease of review.
Comment 1 Brady Eidson 2012-11-14 11:38:44 PST
Created attachment 174212 [details]
Patch 1, v1

This gets a new class into the build.

After this lands I'll change the messaging to stop using WebResourceLoadScheduler and go directly to this new class.
Comment 2 Brady Eidson 2012-11-14 11:44:22 PST
Part 1 landed in http://trac.webkit.org/changeset/134640
Comment 3 Brady Eidson 2012-11-14 14:23:51 PST
Created attachment 174263 [details]
Patch 2, v1

Switch the messaging model over to messaging WebResourceLoaders directly.
Comment 4 Brady Eidson 2012-11-14 15:59:52 PST
http://trac.webkit.org/changeset/134687