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

Issue 1899163002: BodyStreamBuffer's drainAs* function should lock stream (Closed)

Created:
4 years, 8 months ago by yhirano
Modified:
4 years, 8 months ago
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, nhiroki, falken, haraken, kinuko+serviceworker, blink-reviews, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@body-stream-buffer-test-refactoring
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

BodyStreamBuffer's drainAs* function should lock stream BodyStreamBuffer::drainAsBlobDataHandle and BodyStreamBuffer::drainAsFormData should lock and disturb the associated stream when returning a non-null handle. Moreover, it should NOT lock and disturb the associated stream when returning a null handle. BUG=596832 Committed: https://crrev.com/b6ef89239544be60b3df1cb6c813e7a344c1fee7 Cr-Commit-Position: refs/heads/master@{#389028}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -10 lines) Patch
M third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp View 2 chunks +12 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp View 1 2 3 chunks +88 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchManager.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/RespondWithObserver.cpp View 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 16 (6 generated)
yhirano
4 years, 8 months ago (2016-04-20 01:21:35 UTC) #2
tyoshino (SeeGerritForStatus)
lgtm https://codereview.chromium.org/1899163002/diff/20001/third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp File third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp (right): https://codereview.chromium.org/1899163002/diff/20001/third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp#newcode96 third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp:96: BodyStreamBuffer* buffer = new BodyStreamBuffer(createFetchDataConsumerHandleFromWebHandle(createWaitingDataConsumerHandle())); add a comment ...
4 years, 8 months ago (2016-04-21 06:47:42 UTC) #4
yhirano
4 years, 8 months ago (2016-04-21 08:22:09 UTC) #6
yhirano
https://codereview.chromium.org/1899163002/diff/20001/third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp File third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp (right): https://codereview.chromium.org/1899163002/diff/20001/third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp#newcode96 third_party/WebKit/Source/modules/fetch/BodyStreamBufferTest.cpp:96: BodyStreamBuffer* buffer = new BodyStreamBuffer(createFetchDataConsumerHandleFromWebHandle(createWaitingDataConsumerHandle())); On 2016/04/21 06:47:42, tyoshino ...
4 years, 8 months ago (2016-04-21 08:22:36 UTC) #7
yhirano
+horo@ for modules/serviceworkers
4 years, 8 months ago (2016-04-21 08:22:57 UTC) #8
horo
On 2016/04/21 08:22:57, yhirano wrote: > +horo@ for modules/serviceworkers lgtm
4 years, 8 months ago (2016-04-22 02:00:59 UTC) #9
horo
On 2016/04/21 08:22:57, yhirano wrote: > +horo@ for modules/serviceworkers lgtm
4 years, 8 months ago (2016-04-22 02:00:59 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899163002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899163002/40001
4 years, 8 months ago (2016-04-22 02:03:52 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-22 04:12:01 UTC) #14
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:44:23 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b6ef89239544be60b3df1cb6c813e7a344c1fee7
Cr-Commit-Position: refs/heads/master@{#389028}

Powered by Google App Engine
This is Rietveld 408576698