Bug 107985 - [chromium] Export ResourceRequest's priority through WebURLRequest
Summary: [chromium] Export ResourceRequest's priority through WebURLRequest
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: James Simonsen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-25 14:34 PST by James Simonsen
Modified: 2013-02-04 14:10 PST (History)
9 users (show)

See Also:


Attachments
Patch (3.57 KB, patch)
2013-01-25 14:34 PST, James Simonsen
no flags Details | Formatted Diff | Diff
Patch (3.60 KB, patch)
2013-01-25 15:21 PST, James Simonsen
no flags Details | Formatted Diff | Diff
Patch (5.30 KB, patch)
2013-01-25 18:27 PST, James Simonsen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.