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

Issue 1176403006: [1b] Implement FetchBlobDataConsumerHandle (Closed)

Created:
5 years, 6 months ago by hiroshige
Modified:
5 years, 5 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

Implement FetchBlobDataConsumerHandle Unit tests will be added in https://codereview.chromium.org/1199043004/. FetchInitiatorTypeNames.in is modified to use FetchInitiatorTypeNames::internal from modules/. BUG=480746 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=198220

Patch Set 1 #

Patch Set 2 : Refactoring. #

Patch Set 3 : Bug fixed. #

Patch Set 4 : Rebase. #

Total comments: 13

Patch Set 5 : Imported. #

Patch Set 6 : #

Total comments: 12

Patch Set 7 : Fix import error. #

Patch Set 8 : Reflect comments. #

Total comments: 6

Patch Set 9 : #

Patch Set 10 : Remove unittests. #

Patch Set 11 : Comment fix #

Patch Set 12 : gypi fix. #

Total comments: 4

Patch Set 13 : Remove virtual #

Total comments: 16

Patch Set 14 : Rebase. #

Patch Set 15 : Update comments. #

Patch Set 16 : Remove strong reference cycles. test fails due to dependencies. #

Patch Set 17 : Rebase, build break fix and bug fix about postTask(). #

Total comments: 4

Patch Set 18 : Reflected comments #25. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+530 lines, -0 lines) Patch
M Source/core/fetch/FetchInitiatorTypeNames.in View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
A Source/modules/fetch/FetchBlobDataConsumerHandle.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +47 lines, -0 lines 0 comments Download
A Source/modules/fetch/FetchBlobDataConsumerHandle.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +480 lines, -0 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (9 generated)
hiroshige
PTAL (except for unittests).
5 years, 6 months ago (2015-06-22 10:59:46 UTC) #2
yhirano
Are you OK with my change at https://codereview.chromium.org/1199043004/ between PS1 and PS2? If so, can ...
5 years, 6 months ago (2015-06-23 05:46:35 UTC) #3
hiroshige
> Are you OK with my change at > https://codereview.chromium.org/1199043004/ between PS1 and PS2? > ...
5 years, 6 months ago (2015-06-23 06:17:08 UTC) #4
yhirano
https://codereview.chromium.org/1176403006/diff/60001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp File Source/modules/fetch/FetchBlobDataConsumerHandle.cpp (right): https://codereview.chromium.org/1176403006/diff/60001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp#newcode48 Source/modules/fetch/FetchBlobDataConsumerHandle.cpp:48: // |executionContext| is stopped. It would be worth noting ...
5 years, 6 months ago (2015-06-23 07:32:06 UTC) #5
hiroshige
https://codereview.chromium.org/1176403006/diff/60001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp File Source/modules/fetch/FetchBlobDataConsumerHandle.cpp (right): https://codereview.chromium.org/1176403006/diff/60001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp#newcode48 Source/modules/fetch/FetchBlobDataConsumerHandle.cpp:48: // |executionContext| is stopped. On 2015/06/23 07:32:05, yhirano wrote: ...
5 years, 6 months ago (2015-06-23 08:34:23 UTC) #6
hiroshige
https://codereview.chromium.org/1176403006/diff/130001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp File Source/modules/fetch/FetchBlobDataConsumerHandle.cpp (right): https://codereview.chromium.org/1176403006/diff/130001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp#newcode333 Source/modules/fetch/FetchBlobDataConsumerHandle.cpp:333: Persistent<FetchBlobDataConsumerHandle::LoaderFactory> m_loaderFactory; I made this Persistent rather than CrossThreadPersistent ...
5 years, 6 months ago (2015-06-23 08:38:59 UTC) #7
yhirano
https://codereview.chromium.org/1176403006/diff/130001/Source/modules/fetch/FetchBlobDataConsumerHandle.h File Source/modules/fetch/FetchBlobDataConsumerHandle.h (right): https://codereview.chromium.org/1176403006/diff/130001/Source/modules/fetch/FetchBlobDataConsumerHandle.h#newcode20 Source/modules/fetch/FetchBlobDataConsumerHandle.h:20: public: You need to declare the empty destructor in ...
5 years, 6 months ago (2015-06-23 08:44:08 UTC) #8
hiroshige
https://codereview.chromium.org/1176403006/diff/130001/Source/modules/fetch/FetchBlobDataConsumerHandle.h File Source/modules/fetch/FetchBlobDataConsumerHandle.h (right): https://codereview.chromium.org/1176403006/diff/130001/Source/modules/fetch/FetchBlobDataConsumerHandle.h#newcode20 Source/modules/fetch/FetchBlobDataConsumerHandle.h:20: public: On 2015/06/23 08:44:08, yhirano wrote: > You need ...
5 years, 6 months ago (2015-06-23 09:34:54 UTC) #9
hiroshige
+haraken@, could you take a look at CrossThreadHolder, especially the use of CrossThreadPersistent?
5 years, 6 months ago (2015-06-24 10:31:45 UTC) #11
yhirano
LGTM I'm adding tests in https://codereview.chromium.org/1199043004/ and I found no defects of this implementation. https://codereview.chromium.org/1176403006/diff/130001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp ...
5 years, 6 months ago (2015-06-24 11:15:15 UTC) #12
hiroshige
https://codereview.chromium.org/1176403006/diff/210001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp File Source/modules/fetch/FetchBlobDataConsumerHandle.cpp (right): https://codereview.chromium.org/1176403006/diff/210001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp#newcode278 Source/modules/fetch/FetchBlobDataConsumerHandle.cpp:278: virtual PassRefPtr<ThreadableLoader> createLoader(ExecutionContext* executionContext, ThreadableLoaderClient* client) const On 2015/06/24 ...
5 years, 6 months ago (2015-06-24 11:29:48 UTC) #13
haraken
https://codereview.chromium.org/1176403006/diff/220001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp File Source/modules/fetch/FetchBlobDataConsumerHandle.cpp (right): https://codereview.chromium.org/1176403006/diff/220001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp#newcode70 Source/modules/fetch/FetchBlobDataConsumerHandle.cpp:70: // T <-OwnPtr- |Bridge| ---------RefPtr--------> |Peer| <-(RefPtr)- CTH Is ...
5 years, 6 months ago (2015-06-24 13:37:54 UTC) #15
hiroshige
Thanks for reviewing! https://codereview.chromium.org/1176403006/diff/220001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp File Source/modules/fetch/FetchBlobDataConsumerHandle.cpp (right): https://codereview.chromium.org/1176403006/diff/220001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp#newcode70 Source/modules/fetch/FetchBlobDataConsumerHandle.cpp:70: // T <-OwnPtr- |Bridge| ---------RefPtr--------> |Peer| ...
5 years, 6 months ago (2015-06-25 06:25:37 UTC) #16
haraken
https://codereview.chromium.org/1176403006/diff/220001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp File Source/modules/fetch/FetchBlobDataConsumerHandle.cpp (right): https://codereview.chromium.org/1176403006/diff/220001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp#newcode70 Source/modules/fetch/FetchBlobDataConsumerHandle.cpp:70: // T <-OwnPtr- |Bridge| ---------RefPtr--------> |Peer| <-(RefPtr)- CTH On ...
5 years, 6 months ago (2015-06-26 00:15:08 UTC) #17
yhirano
https://codereview.chromium.org/1176403006/diff/220001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp File Source/modules/fetch/FetchBlobDataConsumerHandle.cpp (right): https://codereview.chromium.org/1176403006/diff/220001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp#newcode77 Source/modules/fetch/FetchBlobDataConsumerHandle.cpp:77: // [2] or when CrossThreadHolder is destructed: On 2015/06/26 ...
5 years, 6 months ago (2015-06-26 01:57:55 UTC) #18
hiroshige
https://codereview.chromium.org/1176403006/diff/220001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp File Source/modules/fetch/FetchBlobDataConsumerHandle.cpp (right): https://codereview.chromium.org/1176403006/diff/220001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp#newcode70 Source/modules/fetch/FetchBlobDataConsumerHandle.cpp:70: // T <-OwnPtr- |Bridge| ---------RefPtr--------> |Peer| <-(RefPtr)- CTH > ...
5 years, 6 months ago (2015-06-26 03:07:57 UTC) #19
haraken
https://codereview.chromium.org/1176403006/diff/220001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp File Source/modules/fetch/FetchBlobDataConsumerHandle.cpp (right): https://codereview.chromium.org/1176403006/diff/220001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp#newcode70 Source/modules/fetch/FetchBlobDataConsumerHandle.cpp:70: // T <-OwnPtr- |Bridge| ---------RefPtr--------> |Peer| <-(RefPtr)- CTH On ...
5 years, 6 months ago (2015-06-26 03:57:36 UTC) #20
yhirano
https://codereview.chromium.org/1176403006/diff/220001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp File Source/modules/fetch/FetchBlobDataConsumerHandle.cpp (right): https://codereview.chromium.org/1176403006/diff/220001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp#newcode77 Source/modules/fetch/FetchBlobDataConsumerHandle.cpp:77: // [2] or when CrossThreadHolder is destructed: On 2015/06/26 ...
5 years, 6 months ago (2015-06-26 06:30:08 UTC) #21
hiroshige
https://codereview.chromium.org/1176403006/diff/220001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp File Source/modules/fetch/FetchBlobDataConsumerHandle.cpp (right): https://codereview.chromium.org/1176403006/diff/220001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp#newcode70 Source/modules/fetch/FetchBlobDataConsumerHandle.cpp:70: // T <-OwnPtr- |Bridge| ---------RefPtr--------> |Peer| <-(RefPtr)- CTH > ...
5 years, 6 months ago (2015-06-26 06:52:29 UTC) #22
haraken
https://codereview.chromium.org/1176403006/diff/220001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp File Source/modules/fetch/FetchBlobDataConsumerHandle.cpp (right): https://codereview.chromium.org/1176403006/diff/220001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp#newcode70 Source/modules/fetch/FetchBlobDataConsumerHandle.cpp:70: // T <-OwnPtr- |Bridge| ---------RefPtr--------> |Peer| <-(RefPtr)- CTH > ...
5 years, 6 months ago (2015-06-26 07:04:23 UTC) #23
hiroshige
According to the offline discussion, - The reference cycle between Bridge-Peer is removed by replacing ...
5 years, 5 months ago (2015-06-30 12:09:28 UTC) #24
yhirano
Still LGTM https://codereview.chromium.org/1176403006/diff/300001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp File Source/modules/fetch/FetchBlobDataConsumerHandle.cpp (right): https://codereview.chromium.org/1176403006/diff/300001/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp#newcode31 Source/modules/fetch/FetchBlobDataConsumerHandle.cpp:31: // bounded to the thread of |executionContext| ...
5 years, 5 months ago (2015-07-01 11:27:50 UTC) #25
hiroshige
haraken@, thanks you for useful comments at the previous offline discussion, and I removed strong ...
5 years, 5 months ago (2015-07-02 08:24:55 UTC) #26
haraken
In terms oilpan, LGTM. (I feel that the threading design is unacceptably complicated, but I'm ...
5 years, 5 months ago (2015-07-02 10:52:45 UTC) #27
hiroshige
On 2015/07/02 10:52:45, haraken wrote: > In terms oilpan, LGTM. > > (I feel that ...
5 years, 5 months ago (2015-07-02 11:34:02 UTC) #28
hiroshige
+mkwst@, could you take a look at the change in FetchInitiatorTypeNames.in?
5 years, 5 months ago (2015-07-02 13:17:14 UTC) #30
Mike West
Adding the export is fine. LGTM. The windows compilation error looks legit, though.
5 years, 5 months ago (2015-07-02 14:11:05 UTC) #31
hiroshige
Thanks! > The windows compilation error looks legit, though. This will be resolved by a ...
5 years, 5 months ago (2015-07-02 14:15:53 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1176403006/320001
5 years, 5 months ago (2015-07-02 14:20:23 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1176403006/320001
5 years, 5 months ago (2015-07-02 15:04:38 UTC) #38
commit-bot: I haz the power
Committed patchset #18 (id:320001) as https://src.chromium.org/viewvc/blink?view=rev&revision=198220
5 years, 5 months ago (2015-07-02 15:30:50 UTC) #39
dcheng
This might have broken cast_shell_linux: http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/26763 The failing test is content_browsertests --gtest_filter=IndexedDBBrowserTestWithGCExposed.BlobDidAck [ RUN ] ...
5 years, 5 months ago (2015-07-02 17:18:24 UTC) #41
dcheng
5 years, 5 months ago (2015-07-02 17:18:52 UTC) #42
Message was sent while issue was closed.
A revert of this CL (patchset #18 id:320001) has been created in
https://codereview.chromium.org/1207273003/ by dcheng@chromium.org.

The reason for reverting is: May have broken
IndexedDBBrowserTestWithGCExposed.BlobDidAck..

Powered by Google App Engine
This is Rietveld 408576698