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

Description James Simonsen 2013-01-25 14:34:25 PST
[chromium] Export ResourceRequest's priority through WebURLRequest
Comment 1 James Simonsen 2013-01-25 14:34:44 PST
Created attachment 184812 [details]
Patch
Comment 2 WebKit Review Bot 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.
Comment 3 WebKit Review Bot 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
Comment 4 Peter Beverloo (cr-android ews) 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
Comment 5 James Simonsen 2013-01-25 15:21:50 PST
Created attachment 184814 [details]
Patch
Comment 6 Adam Barth 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.
Comment 7 Adam Barth 2013-01-25 17:21:53 PST
(Aside from those mechanistic issues, this patch looks fine.)
Comment 8 James Simonsen 2013-01-25 18:27:49 PST
Created attachment 184849 [details]
Patch
Comment 9 James Simonsen 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.
Comment 10 Adam Barth 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.)
Comment 11 WebKit Review Bot 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>
Comment 12 WebKit Review Bot 2013-01-26 00:15:15 PST
All reviewed patches have been landed.  Closing bug.