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

Issue 2880543003: Implement a parser for Content-Disposition header fields (Closed)

Created:
3 years, 7 months ago by e_hakkinen
Modified:
3 years, 7 months ago
Reviewers:
haraken, kinuko, yhirano, horo
CC:
chromium-reviews, blink-reviews, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement a parser for Content-Disposition header fields This allows disposition types and parameters to be extracted from Content-Disposition header fields. BUG=455103 Review-Url: https://codereview.chromium.org/2880543003 Cr-Commit-Position: refs/heads/master@{#474116} Committed: https://chromium.googlesource.com/chromium/src/+/2d391fc58e0f24b5d33fadb80527dd2b81193d43

Patch Set 1 #

Total comments: 10

Patch Set 2 : Inheritance to delegation, tests #

Total comments: 4

Patch Set 3 : License headers #

Total comments: 9

Patch Set 4 : Class comments #

Total comments: 14

Patch Set 5 : Class comments & names, avoid DeprecatedLower #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+645 lines, -141 lines) Patch
M third_party/WebKit/Source/platform/BUILD.gn View 1 2 3 4 5 3 chunks +8 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/network/HeaderFieldTokenizer.h View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/network/HeaderFieldTokenizer.cpp View 1 2 3 4 1 chunk +124 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/network/ParsedContentDisposition.h View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/network/ParsedContentDisposition.cpp View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/network/ParsedContentDispositionTest.cpp View 1 1 chunk +92 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/network/ParsedContentHeaderFieldParameters.h View 1 2 3 4 1 chunk +59 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/network/ParsedContentHeaderFieldParameters.cpp View 1 2 3 4 1 chunk +103 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/network/ParsedContentHeaderFieldParametersTest.cpp View 1 2 3 4 1 chunk +112 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ParsedContentType.h View 1 2 3 2 chunks +11 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ParsedContentType.cpp View 1 2 3 4 5 3 chunks +14 lines, -65 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ParsedContentTypeTest.cpp View 1 2 chunks +2 lines, -53 lines 0 comments Download

Messages

Total messages: 30 (9 generated)
e_hakkinen
PTAL. This is needed for Content-Disposition header field parsing for https://crrev.com/2292763002/
3 years, 7 months ago (2017-05-11 10:58:38 UTC) #2
haraken
I don't have any context for this work and am not sure if I'm a ...
3 years, 7 months ago (2017-05-11 12:48:39 UTC) #3
e_hakkinen
On 2017/05/11 12:48:39, haraken wrote: > I don't have any context for this work and ...
3 years, 7 months ago (2017-05-12 07:24:28 UTC) #5
yhirano
On 2017/05/12 07:24:28, e_hakkinen wrote: > On 2017/05/11 12:48:39, haraken wrote: > > I don't ...
3 years, 7 months ago (2017-05-12 10:59:40 UTC) #6
e_hakkinen
On 2017/05/12 10:59:40, yhirano wrote: > Please put more information to the issue description (including ...
3 years, 7 months ago (2017-05-12 13:53:01 UTC) #8
horo
https://codereview.chromium.org/2880543003/diff/1/third_party/WebKit/Source/platform/network/ParsedParameterizedContentHeaderField.cpp File third_party/WebKit/Source/platform/network/ParsedParameterizedContentHeaderField.cpp (right): https://codereview.chromium.org/2880543003/diff/1/third_party/WebKit/Source/platform/network/ParsedParameterizedContentHeaderField.cpp#newcode85 third_party/WebKit/Source/platform/network/ParsedParameterizedContentHeaderField.cpp:85: ++index_; Why you don't use |c|? https://codereview.chromium.org/2880543003/diff/1/third_party/WebKit/Source/platform/network/ParsedParameterizedContentHeaderField.cpp#newcode156 third_party/WebKit/Source/platform/network/ParsedParameterizedContentHeaderField.cpp:156: ParsedParameterizedContentHeaderField::ParsedParameterizedContentHeaderField( ...
3 years, 7 months ago (2017-05-15 05:57:54 UTC) #9
yhirano
https://codereview.chromium.org/2880543003/diff/1/third_party/WebKit/Source/platform/network/ParsedContentType.h File third_party/WebKit/Source/platform/network/ParsedContentType.h (right): https://codereview.chromium.org/2880543003/diff/1/third_party/WebKit/Source/platform/network/ParsedContentType.h#newcode47 third_party/WebKit/Source/platform/network/ParsedContentType.h:47: : public ParsedParameterizedContentHeaderField { Please use delegation rather than ...
3 years, 7 months ago (2017-05-15 11:14:52 UTC) #10
e_hakkinen
https://codereview.chromium.org/2880543003/diff/1/third_party/WebKit/Source/platform/network/ParsedContentType.h File third_party/WebKit/Source/platform/network/ParsedContentType.h (right): https://codereview.chromium.org/2880543003/diff/1/third_party/WebKit/Source/platform/network/ParsedContentType.h#newcode47 third_party/WebKit/Source/platform/network/ParsedContentType.h:47: : public ParsedParameterizedContentHeaderField { On 2017/05/15 11:14:51, yhirano wrote: ...
3 years, 7 months ago (2017-05-18 09:35:49 UTC) #12
horo
Thank you. lgtm with nits. https://codereview.chromium.org/2880543003/diff/20001/third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.cpp File third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.cpp (right): https://codereview.chromium.org/2880543003/diff/20001/third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.cpp#newcode1 third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.cpp:1: /* Nit: Please use ...
3 years, 7 months ago (2017-05-22 02:31:19 UTC) #13
e_hakkinen
https://codereview.chromium.org/2880543003/diff/20001/third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.cpp File third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.cpp (right): https://codereview.chromium.org/2880543003/diff/20001/third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.cpp#newcode1 third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.cpp:1: /* On 2017/05/22 02:31:19, horo wrote: > Nit: Please ...
3 years, 7 months ago (2017-05-22 07:17:09 UTC) #14
e_hakkinen
@haraken, are you willing to give OWNER-lgtm now that @horo reviewed this?
3 years, 7 months ago (2017-05-22 07:21:20 UTC) #15
haraken
yhirano@: Would you mind taking a look at this? I think you should be much ...
3 years, 7 months ago (2017-05-22 07:24:36 UTC) #16
kinuko
https://codereview.chromium.org/2880543003/diff/40001/third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.h File third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.h (right): https://codereview.chromium.org/2880543003/diff/40001/third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.h#newcode13 third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.h:13: class ContentHeaderFieldInput final { Please add a class-level comment. ...
3 years, 7 months ago (2017-05-22 07:39:45 UTC) #18
kinuko
On 2017/05/22 07:21:20, e_hakkinen wrote: > @haraken, are you willing to give OWNER-lgtm now that ...
3 years, 7 months ago (2017-05-22 07:40:08 UTC) #19
yhirano
https://codereview.chromium.org/2880543003/diff/40001/third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.h File third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.h (right): https://codereview.chromium.org/2880543003/diff/40001/third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.h#newcode13 third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.h:13: class ContentHeaderFieldInput final { Please write a class comment. ...
3 years, 7 months ago (2017-05-22 07:51:20 UTC) #20
e_hakkinen
https://codereview.chromium.org/2880543003/diff/40001/third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.h File third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.h (right): https://codereview.chromium.org/2880543003/diff/40001/third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.h#newcode13 third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.h:13: class ContentHeaderFieldInput final { On 2017/05/22 07:39:44, kinuko wrote: ...
3 years, 7 months ago (2017-05-22 08:11:59 UTC) #21
yhirano
lgtm https://codereview.chromium.org/2880543003/diff/60001/third_party/WebKit/Source/platform/network/ParsedContentHeaderFieldParameters.cpp File third_party/WebKit/Source/platform/network/ParsedContentHeaderFieldParameters.cpp (right): https://codereview.chromium.org/2880543003/diff/60001/third_party/WebKit/Source/platform/network/ParsedContentHeaderFieldParameters.cpp#newcode29 third_party/WebKit/Source/platform/network/ParsedContentHeaderFieldParameters.cpp:29: return parameters_.at(name.DeprecatedLower()); LowerASCII https://codereview.chromium.org/2880543003/diff/60001/third_party/WebKit/Source/platform/network/ParsedContentHeaderFieldParameters.cpp#newcode92 third_party/WebKit/Source/platform/network/ParsedContentHeaderFieldParameters.cpp:92: String key_string = ...
3 years, 7 months ago (2017-05-23 07:28:27 UTC) #22
kinuko
lgtm https://codereview.chromium.org/2880543003/diff/60001/third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.h File third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.h (right): https://codereview.chromium.org/2880543003/diff/60001/third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.h#newcode15 third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.h:15: // content header fields into tokens, quoted strings ...
3 years, 7 months ago (2017-05-23 11:27:31 UTC) #23
e_hakkinen
https://codereview.chromium.org/2880543003/diff/60001/third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.h File third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.h (right): https://codereview.chromium.org/2880543003/diff/60001/third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.h#newcode15 third_party/WebKit/Source/platform/network/ContentHeaderFieldInput.h:15: // content header fields into tokens, quoted strings and ...
3 years, 7 months ago (2017-05-23 20:07:02 UTC) #24
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/2880543003/100001
3 years, 7 months ago (2017-05-23 20:21:15 UTC) #27
commit-bot: I haz the power
3 years, 7 months ago (2017-05-24 00:11:56 UTC) #30
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/2d391fc58e0f24b5d33fadb80527...

Powered by Google App Engine
This is Rietveld 408576698