Bug 107985

Summary: [chromium] Export ResourceRequest's priority through WebURLRequest
Product: WebKit Reporter: James Simonsen <simonjam>
Component: New BugsAssignee: James Simonsen <simonjam>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, dglazkov, fishd, jamesr, japhet, peter+ews, tkent+wkapi, webkit.review.bot, willchan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

James Simonsen
Reported 2013-01-25 14:34:25 PST
[chromium] Export ResourceRequest's priority through WebURLRequest
Attachments
Patch (3.57 KB, patch)
2013-01-25 14:34 PST, James Simonsen
no flags
Patch (3.60 KB, patch)
2013-01-25 15:21 PST, James Simonsen
no flags
Patch (5.30 KB, patch)
2013-01-25 18:27 PST, James Simonsen
no flags
James Simonsen
Comment 1 2013-01-25 14:34:44 PST
WebKit Review Bot
Comment 2 2013-01-25 14:40:51 PST
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
WebKit Review Bot
Comment 3 2013-01-25 14:46:48 PST
Comment on attachment 184812 [details] Patch Attachment 184812 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/16116557
Peter Beverloo (cr-android ews)
Comment 4 2013-01-25 14:50:54 PST
Comment on attachment 184812 [details] Patch Attachment 184812 [details] did not pass cr-android-ews (chromium-android): Output: http://queues.webkit.org/results/16118535
James Simonsen
Comment 5 2013-01-25 15:21:50 PST
Adam Barth
Comment 6 2013-01-25 17:21:22 PST
Comment on attachment 184814 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=184814&action=review > Source/WebCore/platform/chromium/support/WebURLRequest.cpp:329 > + switch (m_private->m_resourceRequest->priority()) { We usually just use a static_cast rather than a switch. Also, we use AssertMatchignEnums.cpp to make sure that the WebCore enums stay in sync with the API enums.
Adam Barth
Comment 7 2013-01-25 17:21:53 PST
(Aside from those mechanistic issues, this patch looks fine.)
James Simonsen
Comment 8 2013-01-25 18:27:49 PST
James Simonsen
Comment 9 2013-01-25 18:28:14 PST
(In reply to comment #6) > (From update of attachment 184814 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=184814&action=review > > > Source/WebCore/platform/chromium/support/WebURLRequest.cpp:329 > > + switch (m_private->m_resourceRequest->priority()) { > > We usually just use a static_cast rather than a switch. Also, we use AssertMatchignEnums.cpp to make sure that the WebCore enums stay in sync with the API enums. Thanks for the tip. Done.
Adam Barth
Comment 10 2013-01-26 00:05:26 PST
Comment on attachment 184849 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=184849&action=review > Source/WebCore/platform/chromium/support/WebURLRequest.cpp:330 > + return static_cast<WebURLRequest::Priority>( > + m_private->m_resourceRequest->priority()); We'd normally put this on one line. (There is no 80 col limit in WebKit.)
WebKit Review Bot
Comment 11 2013-01-26 00:15:10 PST
Comment on attachment 184849 [details] Patch Clearing flags on attachment: 184849 Committed r140906: <http://trac.webkit.org/changeset/140906>
WebKit Review Bot
Comment 12 2013-01-26 00:15:15 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.