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

Issue 961773002: Add a comma delimited syntax parser and use it for Accept-CH (Closed)

Created:
5 years, 9 months ago by Yoav Weiss
Modified:
5 years, 9 months ago
Reviewers:
Mike West
CC:
blink-reviews, gavinp+loader_chromium.org, Nate Chapin, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add a comma delimited syntax parser and use it for Accept-CH The Accept-CH syntax needed a proper parser. Since the syntax is a simple comma delimited one, I've created a generic parser that can also be used elsewhere. BUG=461741 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190987

Patch Set 1 #

Patch Set 2 #

Total comments: 1

Patch Set 3 : Removed useless constructor #

Total comments: 2

Patch Set 4 : Review comments #

Patch Set 5 : const #

Patch Set 6 : Added layout test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -8 lines) Patch
A + LayoutTests/http/tests/misc/client-hints-invalid-accept.php View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
M Source/core/fetch/Resource.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/platform/network/HTTPParsers.h View 1 2 3 4 3 chunks +5 lines, -0 lines 0 comments Download
M Source/platform/network/HTTPParsers.cpp View 1 2 3 4 3 chunks +14 lines, -1 line 0 comments Download
M Source/platform/network/HTTPParsersTest.cpp View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Yoav Weiss
As discussed, here's a generic comma delimited parser, used to fix the lack of Accept-CH ...
5 years, 9 months ago (2015-02-26 15:44:15 UTC) #2
Mike West
https://codereview.chromium.org/961773002/diff/20001/Source/platform/CommaDelimitedParser.cpp File Source/platform/CommaDelimitedParser.cpp (right): https://codereview.chromium.org/961773002/diff/20001/Source/platform/CommaDelimitedParser.cpp#newcode10 Source/platform/CommaDelimitedParser.cpp:10: static bool isWhitespace(UChar chr) Can you use isASCIIWhitespace instead ...
5 years, 9 months ago (2015-02-27 08:53:41 UTC) #3
Yoav Weiss
On 2015/02/27 08:53:41, Mike West wrote: > https://codereview.chromium.org/961773002/diff/20001/Source/platform/CommaDelimitedParser.cpp > File Source/platform/CommaDelimitedParser.cpp (right): > > https://codereview.chromium.org/961773002/diff/20001/Source/platform/CommaDelimitedParser.cpp#newcode10 ...
5 years, 9 months ago (2015-02-27 10:01:44 UTC) #4
Mike West
LGTM, if you extend the unit tests you added in the previous patch to include ...
5 years, 9 months ago (2015-02-27 10:07:55 UTC) #5
Yoav Weiss
On 2015/02/27 10:07:55, Mike West wrote: > LGTM, if you extend the unit tests you ...
5 years, 9 months ago (2015-02-27 10:22:26 UTC) #6
Mike West
Beautiful. Land it!
5 years, 9 months ago (2015-02-27 10:27:53 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/961773002/100001
5 years, 9 months ago (2015-02-27 10:32:39 UTC) #10
commit-bot: I haz the power
5 years, 9 months ago (2015-02-27 11:46:23 UTC) #11
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=190987

Powered by Google App Engine
This is Rietveld 408576698