Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(926)

Issue 2840193002: fetch: Align RequestInit's |headers| with the spec. (Closed)

Created:
3 years, 7 months ago by Raphael Kubo da Costa (rakuco)
Modified:
3 years, 7 months ago
CC:
chromium-reviews, haraken, blink-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

fetch: Align RequestInit's |headers| with the spec. RequestInit::header is supposed to hold a HeadersInit (ie. just a WebIDL union) object, not a fully-fledged Headers one. Make it so, and add a HeadersInit overload to Headers::FillWith() so all the checks for which union type is being used are centralized in one place. Additionally, this also makes it easier to finally define RequestInit with an IDL file in the future. R=tyoshino@chromium.org,yhirano@chromium.org Review-Url: https://codereview.chromium.org/2840193002 Cr-Commit-Position: refs/heads/master@{#468309} Committed: https://chromium.googlesource.com/chromium/src/+/51b208180cdd9881d699b7d28273d7addbce69fb

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add HeadersInit typedef #

Total comments: 2

Patch Set 3 : Use using, not typedef #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -41 lines) Patch
M third_party/WebKit/Source/modules/fetch/Headers.h View 1 2 4 chunks +9 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Headers.cpp View 1 2 chunks +18 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Request.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/RequestInit.h View 1 3 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/RequestInit.cpp View 2 chunks +2 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Response.cpp View 2 chunks +1 line, -10 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (10 generated)
Raphael Kubo da Costa (rakuco)
PTAL
3 years, 7 months ago (2017-04-26 11:45:24 UTC) #1
yhirano
https://codereview.chromium.org/2840193002/diff/1/third_party/WebKit/Source/modules/fetch/Headers.h File third_party/WebKit/Source/modules/fetch/Headers.h (right): https://codereview.chromium.org/2840193002/diff/1/third_party/WebKit/Source/modules/fetch/Headers.h#newcode59 third_party/WebKit/Source/modules/fetch/Headers.h:59: const ByteStringSequenceSequenceOrByteStringByteStringRecordOrHeaders&, Could you provide a typedef for this ...
3 years, 7 months ago (2017-04-28 10:07:45 UTC) #6
Raphael Kubo da Costa (rakuco)
https://codereview.chromium.org/2840193002/diff/1/third_party/WebKit/Source/modules/fetch/Headers.h File third_party/WebKit/Source/modules/fetch/Headers.h (right): https://codereview.chromium.org/2840193002/diff/1/third_party/WebKit/Source/modules/fetch/Headers.h#newcode59 third_party/WebKit/Source/modules/fetch/Headers.h:59: const ByteStringSequenceSequenceOrByteStringByteStringRecordOrHeaders&, On 2017/04/28 10:07:44, yhirano wrote: > Could ...
3 years, 7 months ago (2017-05-01 09:57:12 UTC) #7
yhirano
lgtm https://codereview.chromium.org/2840193002/diff/20001/third_party/WebKit/Source/modules/fetch/Headers.h File third_party/WebKit/Source/modules/fetch/Headers.h (right): https://codereview.chromium.org/2840193002/diff/20001/third_party/WebKit/Source/modules/fetch/Headers.h#newcode21 third_party/WebKit/Source/modules/fetch/Headers.h:21: HeadersInit; Though I call both "typedef", "using" is ...
3 years, 7 months ago (2017-05-01 10:36:40 UTC) #10
Raphael Kubo da Costa (rakuco)
https://codereview.chromium.org/2840193002/diff/20001/third_party/WebKit/Source/modules/fetch/Headers.h File third_party/WebKit/Source/modules/fetch/Headers.h (right): https://codereview.chromium.org/2840193002/diff/20001/third_party/WebKit/Source/modules/fetch/Headers.h#newcode21 third_party/WebKit/Source/modules/fetch/Headers.h:21: HeadersInit; On 2017/05/01 10:36:40, yhirano wrote: > Though I ...
3 years, 7 months ago (2017-05-01 10:46:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2840193002/40001
3 years, 7 months ago (2017-05-01 10:46:43 UTC) #14
commit-bot: I haz the power
3 years, 7 months ago (2017-05-01 12:22:37 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/51b208180cdd9881d699b7d28273...

Powered by Google App Engine
This is Rietveld 408576698