Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(57)

Issue 1195563002: Introduce DataConsumerHandleTee (Closed)

Created:
4 years, 10 months ago by yhirano
Modified:
4 years, 6 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Introduce DataConsumerHandleTee Implement a function that "tee"s a WebDataConsumerHandle, i.e. creates two handles that will generate the same data as the original handle would generate. BUG=480746 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197733

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 10

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Total comments: 28

Patch Set 8 : #

Total comments: 6

Patch Set 9 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1161 lines, -0 lines) Patch
M Source/modules/fetch/DEPS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A Source/modules/fetch/DataConsumerTee.h View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
A Source/modules/fetch/DataConsumerTee.cpp View 1 2 3 4 5 6 1 chunk +425 lines, -0 lines 2 comments Download
A Source/modules/fetch/DataConsumerTeeTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +707 lines, -0 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (11 generated)
yhirano
4 years, 10 months ago (2015-06-18 12:31:18 UTC) #5
hiroshige
https://codereview.chromium.org/1195563002/diff/110001/Source/modules/fetch/DataConsumerTee.cpp File Source/modules/fetch/DataConsumerTee.cpp (right): https://codereview.chromium.org/1195563002/diff/110001/Source/modules/fetch/DataConsumerTee.cpp#newcode37 Source/modules/fetch/DataConsumerTee.cpp:37: // destination contexts. Destination readers read data from its ...
4 years, 10 months ago (2015-06-19 06:40:35 UTC) #6
yhirano
https://codereview.chromium.org/1195563002/diff/110001/Source/modules/fetch/DataConsumerTee.cpp File Source/modules/fetch/DataConsumerTee.cpp (right): https://codereview.chromium.org/1195563002/diff/110001/Source/modules/fetch/DataConsumerTee.cpp#newcode37 Source/modules/fetch/DataConsumerTee.cpp:37: // destination contexts. Destination readers read data from its ...
4 years, 10 months ago (2015-06-19 07:27:52 UTC) #8
hiroshige
https://codereview.chromium.org/1195563002/diff/150001/Source/modules/fetch/DataConsumerTee.cpp File Source/modules/fetch/DataConsumerTee.cpp (right): https://codereview.chromium.org/1195563002/diff/150001/Source/modules/fetch/DataConsumerTee.cpp#newcode178 Source/modules/fetch/DataConsumerTee.cpp:178: MutexLocker locker(m_mutex); Crashing here... #0 0x4ca2855 in WTF::MutexBase::lock() Source/wtf/ThreadingPthreads.cpp:136:5 ...
4 years, 10 months ago (2015-06-19 07:55:40 UTC) #9
yhirano
https://codereview.chromium.org/1195563002/diff/150001/Source/modules/fetch/DataConsumerTee.cpp File Source/modules/fetch/DataConsumerTee.cpp (right): https://codereview.chromium.org/1195563002/diff/150001/Source/modules/fetch/DataConsumerTee.cpp#newcode178 Source/modules/fetch/DataConsumerTee.cpp:178: MutexLocker locker(m_mutex); On 2015/06/19 07:55:40, hiroshige wrote: > Crashing ...
4 years, 10 months ago (2015-06-19 08:14:21 UTC) #10
hiroshige
https://codereview.chromium.org/1195563002/diff/170001/Source/modules/fetch/DataConsumerTee.cpp File Source/modules/fetch/DataConsumerTee.cpp (right): https://codereview.chromium.org/1195563002/diff/170001/Source/modules/fetch/DataConsumerTee.cpp#newcode194 Source/modules/fetch/DataConsumerTee.cpp:194: // The following functions don't use lock. These functions ...
4 years, 10 months ago (2015-06-23 06:19:49 UTC) #11
yhirano
https://codereview.chromium.org/1195563002/diff/170001/Source/modules/fetch/DataConsumerTee.cpp File Source/modules/fetch/DataConsumerTee.cpp (right): https://codereview.chromium.org/1195563002/diff/170001/Source/modules/fetch/DataConsumerTee.cpp#newcode194 Source/modules/fetch/DataConsumerTee.cpp:194: // The following functions don't use lock. On 2015/06/23 ...
4 years, 10 months ago (2015-06-23 07:25:53 UTC) #12
hiroshige
https://codereview.chromium.org/1195563002/diff/190001/Source/modules/fetch/DataConsumerTeeTest.cpp File Source/modules/fetch/DataConsumerTeeTest.cpp (right): https://codereview.chromium.org/1195563002/diff/190001/Source/modules/fetch/DataConsumerTeeTest.cpp#newcode62 Source/modules/fetch/DataConsumerTeeTest.cpp:62: class Handle final : public WebDataConsumerHandle { Please add ...
4 years, 10 months ago (2015-06-23 09:20:45 UTC) #13
yhirano
https://codereview.chromium.org/1195563002/diff/190001/Source/modules/fetch/DataConsumerTeeTest.cpp File Source/modules/fetch/DataConsumerTeeTest.cpp (right): https://codereview.chromium.org/1195563002/diff/190001/Source/modules/fetch/DataConsumerTeeTest.cpp#newcode62 Source/modules/fetch/DataConsumerTeeTest.cpp:62: class Handle final : public WebDataConsumerHandle { On 2015/06/23 ...
4 years, 10 months ago (2015-06-23 10:18:20 UTC) #14
hiroshige
lgtm. I'm not familiar with Isolate and not sure about the isolate-related code in L292-305 ...
4 years, 10 months ago (2015-06-23 11:49:57 UTC) #15
yhirano
haraken, can you take a look at TestingThread defined in /DataConsumerTeeTest.cpp? It is a thread ...
4 years, 10 months ago (2015-06-24 03:34:04 UTC) #17
haraken
https://codereview.chromium.org/1195563002/diff/210001/Source/modules/fetch/DataConsumerTeeTest.cpp File Source/modules/fetch/DataConsumerTeeTest.cpp (right): https://codereview.chromium.org/1195563002/diff/210001/Source/modules/fetch/DataConsumerTeeTest.cpp#newcode292 Source/modules/fetch/DataConsumerTeeTest.cpp:292: m_isolate = v8::Isolate::New(v8::Isolate::CreateParams()); Maybe would it be better to ...
4 years, 10 months ago (2015-06-24 03:44:27 UTC) #18
yhirano
Thank you for the review. https://codereview.chromium.org/1195563002/diff/210001/Source/modules/fetch/DataConsumerTeeTest.cpp File Source/modules/fetch/DataConsumerTeeTest.cpp (right): https://codereview.chromium.org/1195563002/diff/210001/Source/modules/fetch/DataConsumerTeeTest.cpp#newcode292 Source/modules/fetch/DataConsumerTeeTest.cpp:292: m_isolate = v8::Isolate::New(v8::Isolate::CreateParams()); On ...
4 years, 10 months ago (2015-06-24 06:55:33 UTC) #19
haraken
The TestingThread LGTM
4 years, 10 months ago (2015-06-24 07:28:22 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1195563002/230001
4 years, 10 months ago (2015-06-24 07:41:32 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/68061)
4 years, 10 months ago (2015-06-24 10:21:13 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1195563002/230001
4 years, 10 months ago (2015-06-24 10:32:32 UTC) #27
commit-bot: I haz the power
Committed patchset #9 (id:230001) as https://src.chromium.org/viewvc/blink?view=rev&revision=197733
4 years, 10 months ago (2015-06-24 11:35:29 UTC) #28
jochen (gone - plz use gerrit)
4 years, 6 months ago (2015-10-13 11:42:37 UTC) #30
Message was sent while issue was closed.
https://codereview.chromium.org/1195563002/diff/230001/Source/modules/fetch/D...
File Source/modules/fetch/DataConsumerTee.cpp (right):

https://codereview.chromium.org/1195563002/diff/230001/Source/modules/fetch/D...
Source/modules/fetch/DataConsumerTee.cpp:265: MutexLocker(context()->mutex());
this actually doesn't do what you think it does (missing variable name)

https://codereview.chromium.org/1195563002/diff/230001/Source/modules/fetch/D...
Source/modules/fetch/DataConsumerTee.cpp:276: MutexLocker(context()->mutex());
same here

Powered by Google App Engine
This is Rietveld 408576698