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

Issue 358573002: [ServiceWorker] Implement Headers class. (Closed)

Created:
6 years, 6 months ago by horo
Modified:
6 years, 5 months ago
Reviewers:
falken, haraken, yhirano
CC:
blink-reviews, michaeln, jsbell+serviceworker_chromium.org, arv+blink, tzik, serviceworker-reviews, blink-reviews-bindings_chromium.org, nhiroki, abarth-chromium, falken, kinuko+serviceworker, horo+watch_chromium.org, alecflett+watch_chromium.org, tyoshino (SeeGerritForStatus)
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

[ServiceWorker] Implement Headers class. I will replace HeaderMap class with this in another change. http://fetch.spec.whatwg.org/#headers-class BUG=373120 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177088

Patch Set 1 : #

Total comments: 32

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : rebase #

Total comments: 28

Patch Set 5 : incorporated falken's comment #

Total comments: 6

Patch Set 6 : #

Total comments: 2

Patch Set 7 : incorporated haraken's comment #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+868 lines, -14 lines) Patch
A + LayoutTests/http/tests/serviceworker/headers.html View 1 chunk +3 lines, -3 lines 0 comments Download
A LayoutTests/http/tests/serviceworker/resources/headers-worker.js View 1 2 3 4 5 1 chunk +207 lines, -0 lines 0 comments Download
M Source/bindings/v8/Dictionary.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M Source/bindings/v8/Dictionary.cpp View 1 2 3 4 5 6 7 2 chunks +11 lines, -0 lines 0 comments Download
M Source/modules/modules.gypi View 2 chunks +7 lines, -0 lines 0 comments Download
A Source/modules/serviceworkers/FetchHeaderList.h View 1 2 3 4 1 chunk +51 lines, -0 lines 0 comments Download
A Source/modules/serviceworkers/FetchHeaderList.cpp View 1 2 3 4 1 chunk +164 lines, -0 lines 0 comments Download
A Source/modules/serviceworkers/Headers.h View 1 2 3 4 5 6 1 chunk +65 lines, -0 lines 0 comments Download
A Source/modules/serviceworkers/Headers.cpp View 1 2 3 4 1 chunk +320 lines, -0 lines 0 comments Download
A Source/modules/serviceworkers/Headers.idl View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
A + Source/modules/serviceworkers/HeadersForEachCallback.h View 1 chunk +8 lines, -8 lines 0 comments Download
A + Source/modules/serviceworkers/HeadersForEachCallback.idl View 1 2 3 4 5 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
horo
yhirano@ Could you please review this?
6 years, 6 months ago (2014-06-25 07:28:00 UTC) #1
yhirano
https://codereview.chromium.org/358573002/diff/80001/Source/modules/serviceworkers/FetchHeaderList.cpp File Source/modules/serviceworkers/FetchHeaderList.cpp (right): https://codereview.chromium.org/358573002/diff/80001/Source/modules/serviceworkers/FetchHeaderList.cpp#newcode22 Source/modules/serviceworkers/FetchHeaderList.cpp:22: RefPtr<FetchHeaderList> list = adoptRef(new FetchHeaderList()); Can you use create? ...
6 years, 6 months ago (2014-06-26 07:22:13 UTC) #2
horo
https://codereview.chromium.org/358573002/diff/80001/Source/modules/serviceworkers/FetchHeaderList.cpp File Source/modules/serviceworkers/FetchHeaderList.cpp (right): https://codereview.chromium.org/358573002/diff/80001/Source/modules/serviceworkers/FetchHeaderList.cpp#newcode22 Source/modules/serviceworkers/FetchHeaderList.cpp:22: RefPtr<FetchHeaderList> list = adoptRef(new FetchHeaderList()); On 2014/06/26 07:22:12, yhirano ...
6 years, 6 months ago (2014-06-26 08:30:08 UTC) #3
yhirano
https://codereview.chromium.org/358573002/diff/80001/Source/modules/serviceworkers/FetchHeaderList.cpp File Source/modules/serviceworkers/FetchHeaderList.cpp (right): https://codereview.chromium.org/358573002/diff/80001/Source/modules/serviceworkers/FetchHeaderList.cpp#newcode147 Source/modules/serviceworkers/FetchHeaderList.cpp:147: return isOnAccessControlSimpleRequestHeaderWhitelist(AtomicString(name), AtomicString(value)); On 2014/06/26 08:30:08, horo wrote: > ...
6 years, 6 months ago (2014-06-26 08:55:10 UTC) #4
horo
https://codereview.chromium.org/358573002/diff/80001/Source/modules/serviceworkers/FetchHeaderList.cpp File Source/modules/serviceworkers/FetchHeaderList.cpp (right): https://codereview.chromium.org/358573002/diff/80001/Source/modules/serviceworkers/FetchHeaderList.cpp#newcode147 Source/modules/serviceworkers/FetchHeaderList.cpp:147: return isOnAccessControlSimpleRequestHeaderWhitelist(AtomicString(name), AtomicString(value)); On 2014/06/26 08:55:10, yhirano wrote: > ...
6 years, 6 months ago (2014-06-26 09:16:52 UTC) #5
horo
6 years, 6 months ago (2014-06-26 09:16:54 UTC) #6
yhirano
lgtm
6 years, 6 months ago (2014-06-26 11:51:30 UTC) #7
horo
falken@ Could you please review this?
6 years, 6 months ago (2014-06-26 12:06:27 UTC) #8
falken
looks good https://codereview.chromium.org/358573002/diff/190001/LayoutTests/http/tests/serviceworker/resources/headers-worker.js File LayoutTests/http/tests/serviceworker/resources/headers-worker.js (right): https://codereview.chromium.org/358573002/diff/190001/LayoutTests/http/tests/serviceworker/resources/headers-worker.js#newcode91 LayoutTests/http/tests/serviceworker/resources/headers-worker.js:91: assert_equals(headers.size, 6); can you add a description ...
6 years, 6 months ago (2014-06-27 02:08:06 UTC) #9
horo
https://codereview.chromium.org/358573002/diff/190001/LayoutTests/http/tests/serviceworker/resources/headers-worker.js File LayoutTests/http/tests/serviceworker/resources/headers-worker.js (right): https://codereview.chromium.org/358573002/diff/190001/LayoutTests/http/tests/serviceworker/resources/headers-worker.js#newcode91 LayoutTests/http/tests/serviceworker/resources/headers-worker.js:91: assert_equals(headers.size, 6); On 2014/06/27 02:08:06, falken wrote: > can ...
6 years, 5 months ago (2014-06-27 04:19:11 UTC) #10
falken
lgtm https://codereview.chromium.org/358573002/diff/220001/LayoutTests/http/tests/serviceworker/resources/headers-worker.js File LayoutTests/http/tests/serviceworker/resources/headers-worker.js (right): https://codereview.chromium.org/358573002/diff/220001/LayoutTests/http/tests/serviceworker/resources/headers-worker.js#newcode21 LayoutTests/http/tests/serviceworker/resources/headers-worker.js:21: assert_equals(headers.get(key), expectedMap[key]); how about also testing assert_false(headers.has('dummy')) https://codereview.chromium.org/358573002/diff/220001/LayoutTests/http/tests/serviceworker/resources/headers-worker.js#newcode206 ...
6 years, 5 months ago (2014-06-27 07:21:21 UTC) #11
horo
https://codereview.chromium.org/358573002/diff/220001/LayoutTests/http/tests/serviceworker/resources/headers-worker.js File LayoutTests/http/tests/serviceworker/resources/headers-worker.js (right): https://codereview.chromium.org/358573002/diff/220001/LayoutTests/http/tests/serviceworker/resources/headers-worker.js#newcode21 LayoutTests/http/tests/serviceworker/resources/headers-worker.js:21: assert_equals(headers.get(key), expectedMap[key]); On 2014/06/27 07:21:21, falken wrote: > how ...
6 years, 5 months ago (2014-06-27 07:50:38 UTC) #12
horo
haraken@ Could you please review Source/bindings/v8/Dictionary.*? Thank you.
6 years, 5 months ago (2014-06-27 07:51:09 UTC) #13
haraken
LGTM for bindings/. https://codereview.chromium.org/358573002/diff/240001/Source/modules/serviceworkers/Headers.h File Source/modules/serviceworkers/Headers.h (right): https://codereview.chromium.org/358573002/diff/240001/Source/modules/serviceworkers/Headers.h#newcode22 Source/modules/serviceworkers/Headers.h:22: class Headers FINAL : public ScriptWrappable, ...
6 years, 5 months ago (2014-06-27 08:54:58 UTC) #14
horo
https://codereview.chromium.org/358573002/diff/240001/Source/modules/serviceworkers/Headers.h File Source/modules/serviceworkers/Headers.h (right): https://codereview.chromium.org/358573002/diff/240001/Source/modules/serviceworkers/Headers.h#newcode22 Source/modules/serviceworkers/Headers.h:22: class Headers FINAL : public ScriptWrappable, public RefCounted<Headers> { ...
6 years, 5 months ago (2014-06-27 09:00:04 UTC) #15
horo
The CQ bit was checked by horo@chromium.org
6 years, 5 months ago (2014-06-27 09:00:21 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/358573002/260001
6 years, 5 months ago (2014-06-27 09:00:32 UTC) #17
horo
The CQ bit was checked by horo@chromium.org
6 years, 5 months ago (2014-06-27 09:25:38 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/358573002/280001
6 years, 5 months ago (2014-06-27 09:26:35 UTC) #19
commit-bot: I haz the power
6 years, 5 months ago (2014-06-27 10:40:19 UTC) #20
Message was sent while issue was closed.
Change committed as 177088

Powered by Google App Engine
This is Rietveld 408576698