WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 102049
Split NetworkRequest up into a request class and a loading class
https://bugs.webkit.org/show_bug.cgi?id=102049
Summary
Split NetworkRequest up into a request class and a loading class
Brady Eidson
Reported
2012-11-12 22:46:57 PST
Split NetworkRequest up into a request class and a loading class Sam and I discussed this today how NetworkRequest is a terrible class to do loading. It's better to have one class represent "all the bits of data needed to start a network load", and "the owner of the network load itself"
Attachments
Patch v1
(58.75 KB, patch)
2012-11-12 22:52 PST
,
Brady Eidson
ap
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Brady Eidson
Comment 1
2012-11-12 22:52:20 PST
Created
attachment 173827
[details]
Patch v1
WebKit Review Bot
Comment 2
2012-11-12 22:55:26 PST
Attachment 173827
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit2/ChangeLog', u'Source/WebKit..." exit_code: 1 Source/WebKit2/NetworkProcess/HostRecord.cpp:32: Alphabetical sorting problem. [build/include_order] [4] Source/WebKit2/NetworkProcess/NetworkResourceLoadScheduler.cpp:8: Alphabetical sorting problem. [build/include_order] [4] Source/WebKit2/Shared/Network/NetworkResourceLoadParameters.h:35: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 3 in 14 files If any of these errors are false positives, please file a bug against check-webkit-style.
Brady Eidson
Comment 3
2012-11-13 10:49:04 PST
Fixed style errors locally
Alexey Proskuryakov
Comment 4
2012-11-13 11:00:18 PST
Comment on
attachment 173827
[details]
Patch v1 View in context:
https://bugs.webkit.org/attachment.cgi?id=173827&action=review
Great idea!
> Source/WebKit2/ChangeLog:10 > + This patch splits it into "NetworkResourceLoadParameters" for all request-related data
Can the former keep the NetworkRequest name?
Brady Eidson
Comment 5
2012-11-13 14:01:26 PST
(In reply to
comment #4
)
> (From update of
attachment 173827
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=173827&action=review
> > Great idea! > > > Source/WebKit2/ChangeLog:10 > > + This patch splits it into "NetworkResourceLoadParameters" for all request-related data > > Can the former keep the NetworkRequest name?
I started out keeping that name, but the naming started to fall apart as the "request" contained a "request" and it also contained datum not related directly to the request. I also noticed that - from the perspective of WebCore in the WebProcess - this data represents a "ResourceLoader" that has already been created. I'm definitely open to discussion and suggestions on this naming, but I'm going to land as-is since any changes are an easy substitution followup.
Brady Eidson
Comment 6
2012-11-13 14:06:15 PST
http://trac.webkit.org/changeset/134481
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug