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

Issue 15817013: Add Stream support to WebBlobRegistry and FileAPIMessageFilter. (Closed)

Created:
7 years, 6 months ago by tyoshino (SeeGerritForStatus)
Modified:
7 years, 4 months ago
Reviewers:
michaeln, kinuko, jam, Tom Sepez
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, kinuko+watch, jam, tzik+watch_chromium.org
Visibility:
Public.

Description

Add Stream support to WebBlobRegistry and FileAPIMessageFilter. Some of existing IPCs and methods for Blob are renamed for readability. Note - raw data sending code in webblobregistry_impl.cc are duplicated intentionally not to bother michaeln's refactoring Bonus: Stopped over-optimization of sharing webkit_blob::BlobData::Item instances in webblobregistry_impl.cc BUG=169957 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215842

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : Rebase #

Patch Set 6 : #

Patch Set 7 : Rebase #

Patch Set 8 : url #

Patch Set 9 : Rebase #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Total comments: 4

Patch Set 14 : michaeln's comment #

Patch Set 15 : Rebase, bug fix, unittests #

Total comments: 8

Patch Set 16 : Renaming #

Patch Set 17 : Comments #

Patch Set 18 : Resolve #

Total comments: 21

Patch Set 19 : Redesign #

Total comments: 10

Patch Set 20 : #

Patch Set 21 : #

Patch Set 22 : #

Total comments: 3

Patch Set 23 : #

Total comments: 2

Patch Set 24 : #

Patch Set 25 : Rebase #

Patch Set 26 : Rebase #

Patch Set 27 : Add CONTENT_EXPORT #

Patch Set 28 : Rebase #

Patch Set 29 : Rebase #

Patch Set 30 : Rebase #

Patch Set 31 : Set pid to filter to make SharedMemory's constructor work on win #

Patch Set 32 : Comment addition #

Patch Set 33 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+551 lines, -86 lines) Patch
M content/browser/fileapi/fileapi_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 7 chunks +40 lines, -6 lines 0 comments Download
M content/browser/fileapi/fileapi_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 8 chunks +135 lines, -14 lines 0 comments Download
M content/browser/fileapi/fileapi_message_filter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 8 chunks +221 lines, -27 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/streams/stream.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/streams/stream.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/streams/stream_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 3 chunks +2 lines, -2 lines 0 comments Download
M content/browser/worker_host/worker_process_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +4 lines, -1 line 0 comments Download
M content/child/webblobregistry_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +12 lines, -3 lines 0 comments Download
M content/child/webblobregistry_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +87 lines, -25 lines 0 comments Download
M content/common/fileapi/webblob_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +38 lines, -7 lines 0 comments Download

Messages

Total messages: 47 (0 generated)
tyoshino (SeeGerritForStatus)
Hi michaeln, could you please do initial review focusing on overall design? Thanks
7 years, 6 months ago (2013-06-24 14:26:08 UTC) #1
michaeln
https://codereview.chromium.org/15817013/diff/24004/content/browser/fileapi/fileapi_message_filter.h File content/browser/fileapi/fileapi_message_filter.h (right): https://codereview.chromium.org/15817013/diff/24004/content/browser/fileapi/fileapi_message_filter.h#newcode196 content/browser/fileapi/fileapi_message_filter.h:196: scoped_refptr<StreamContext> stream_context_; This separate 'context' class in the content ...
7 years, 6 months ago (2013-06-24 20:48:17 UTC) #2
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/15817013/diff/24004/content/browser/fileapi/fileapi_message_filter.h File content/browser/fileapi/fileapi_message_filter.h (right): https://codereview.chromium.org/15817013/diff/24004/content/browser/fileapi/fileapi_message_filter.h#newcode196 content/browser/fileapi/fileapi_message_filter.h:196: scoped_refptr<StreamContext> stream_context_; On 2013/06/24 20:48:17, michaeln wrote: > This ...
7 years, 6 months ago (2013-06-25 08:38:00 UTC) #3
tyoshino (SeeGerritForStatus)
On 2013/06/25 08:38:00, tyoshino wrote: > On 2013/06/24 20:48:17, michaeln wrote: > > This separate ...
7 years, 6 months ago (2013-06-25 14:04:27 UTC) #4
tyoshino (SeeGerritForStatus)
On 2013/06/25 08:38:00, tyoshino wrote: > Looks like it's not too hard to move stream ...
7 years, 5 months ago (2013-07-03 08:02:10 UTC) #5
tyoshino (SeeGerritForStatus)
Added unittests
7 years, 5 months ago (2013-07-03 12:37:43 UTC) #6
tyoshino (SeeGerritForStatus)
ping? I'd like to enable Stream first and then do moves. I can help you ...
7 years, 5 months ago (2013-07-17 03:44:03 UTC) #7
kinuko
Michael seems to be out or busy, so let me do the first review. https://codereview.chromium.org/15817013/diff/42001/content/browser/fileapi/fileapi_message_filter.cc ...
7 years, 5 months ago (2013-07-18 06:06:55 UTC) #8
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/15817013/diff/42001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/15817013/diff/42001/content/browser/fileapi/fileapi_message_filter.cc#newcode186 content/browser/fileapi/fileapi_message_filter.cc:186: IPC_MESSAGE_HANDLER(BlobHostMsg_StartBuildingStream, OnStartBuildingStream) On 2013/07/18 06:06:55, kinuko wrote: > Sometimes ...
7 years, 5 months ago (2013-07-23 07:27:34 UTC) #9
kinuko
https://codereview.chromium.org/15817013/diff/42001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/15817013/diff/42001/content/browser/fileapi/fileapi_message_filter.cc#newcode186 content/browser/fileapi/fileapi_message_filter.cc:186: IPC_MESSAGE_HANDLER(BlobHostMsg_StartBuildingStream, OnStartBuildingStream) On 2013/07/23 07:27:34, tyoshino wrote: > On ...
7 years, 5 months ago (2013-07-23 08:07:42 UTC) #10
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/15817013/diff/42001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/15817013/diff/42001/content/browser/fileapi/fileapi_message_filter.cc#newcode186 content/browser/fileapi/fileapi_message_filter.cc:186: IPC_MESSAGE_HANDLER(BlobHostMsg_StartBuildingStream, OnStartBuildingStream) On 2013/07/23 08:07:42, kinuko wrote: > Does ...
7 years, 5 months ago (2013-07-23 11:54:38 UTC) #11
tyoshino (SeeGerritForStatus)
Hi jam, please review files excluding _messages.h and fileapi/ subdir. Hi tsepez, please review webblob_messages.h ...
7 years, 5 months ago (2013-07-23 12:01:44 UTC) #12
kinuko
fileapi changes lgtm modulo some nits. https://codereview.chromium.org/15817013/diff/68001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/15817013/diff/68001/content/browser/fileapi/fileapi_message_filter.cc#newcode114 content/browser/fileapi/fileapi_message_filter.cc:114: } nit: please ...
7 years, 5 months ago (2013-07-23 13:57:23 UTC) #13
jam
lgtm https://codereview.chromium.org/15817013/diff/68001/content/child/webblobregistry_impl.cc File content/child/webblobregistry_impl.cc (right): https://codereview.chromium.org/15817013/diff/68001/content/child/webblobregistry_impl.cc#newcode129 content/child/webblobregistry_impl.cc:129: DCHECK(ChildThread::current()->message_loop() == nit: here and in the rest ...
7 years, 5 months ago (2013-07-23 15:52:36 UTC) #14
Tom Sepez
Messages themselves look OK, but a couple of security concerns about how we process them. ...
7 years, 5 months ago (2013-07-23 18:08:24 UTC) #15
michaeln
> I'd like to enable Stream first and then do moves Is there an webapp ...
7 years, 5 months ago (2013-07-23 20:19:41 UTC) #16
michaeln
What functionality actually gets enabled by this CL? The use case I'm aware of is ...
7 years, 5 months ago (2013-07-23 22:14:38 UTC) #17
kinuko
On 2013/07/23 22:14:38, michaeln wrote: > What functionality actually gets enabled by this CL? > ...
7 years, 5 months ago (2013-07-24 02:20:20 UTC) #18
michaeln
> tyoshino will give details, but afaik this feature (making Streams work with > XHR) ...
7 years, 5 months ago (2013-07-24 03:38:30 UTC) #19
tyoshino (SeeGerritForStatus)
> What functionality actually gets enabled by this CL? As Kinuko said, I'm asked by ...
7 years, 5 months ago (2013-07-24 04:04:32 UTC) #20
tyoshino (SeeGerritForStatus)
> What functionality actually gets enabled by this CL? As Kinuko said, I'm asked by ...
7 years, 5 months ago (2013-07-24 04:04:56 UTC) #21
tyoshino (SeeGerritForStatus)
Discussed plan with Michael. It seems that I should folk Blob code for Stream and ...
7 years, 5 months ago (2013-07-24 12:14:10 UTC) #22
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/15817013/diff/68001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/15817013/diff/68001/content/browser/fileapi/fileapi_message_filter.cc#newcode114 content/browser/fileapi/fileapi_message_filter.cc:114: } On 2013/07/23 13:57:23, kinuko wrote: > nit: please ...
7 years, 5 months ago (2013-07-24 12:14:19 UTC) #23
tyoshino (SeeGerritForStatus)
Sorry. fileapi_message_filter_unittest.cc was not updated. Fixed. Notes for reviewers - raw data sending code in ...
7 years, 5 months ago (2013-07-24 12:26:28 UTC) #24
kinuko
This version's much easier to follow :) FileAPIMessageFilter gets bloated while streams stuff doesn't look ...
7 years, 5 months ago (2013-07-24 13:11:05 UTC) #25
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/15817013/diff/86001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/15817013/diff/86001/content/browser/fileapi/fileapi_message_filter.cc#newcode548 content/browser/fileapi/fileapi_message_filter.cc:548: On 2013/07/24 13:11:05, kinuko wrote: > nit: this empty ...
7 years, 5 months ago (2013-07-24 13:56:21 UTC) #26
michaeln
lgtm modulo the OVERRIDE comment https://codereview.chromium.org/15817013/diff/100001/content/child/webblobregistry_impl.h File content/child/webblobregistry_impl.h (right): https://codereview.chromium.org/15817013/diff/100001/content/child/webblobregistry_impl.h#newcode31 content/child/webblobregistry_impl.h:31: virtual void unregisterBlobURL(const WebKit::WebURL& ...
7 years, 5 months ago (2013-07-24 21:07:52 UTC) #27
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/15817013/diff/92001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/15817013/diff/92001/content/browser/fileapi/fileapi_message_filter.cc#newcode613 content/browser/fileapi/fileapi_message_filter.cc:613: // TODO(tyoshino): Set |content_type| to the stream. Oops. Removal ...
7 years, 5 months ago (2013-07-25 04:03:52 UTC) #28
kinuko
lgtm
7 years, 5 months ago (2013-07-25 04:21:34 UTC) #29
tyoshino (SeeGerritForStatus)
Added CONTENT_EXPORT to StreamContext* GetFor(BrowserContext* browser_context) so that unittests can use it.
7 years, 5 months ago (2013-07-25 06:31:47 UTC) #30
tyoshino (SeeGerritForStatus)
PTAL, tsepez, jam. https://codereview.chromium.org/15817013/diff/68001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/15817013/diff/68001/content/browser/fileapi/fileapi_message_filter.cc#newcode557 content/browser/fileapi/fileapi_message_filter.cc:557: GURL() /* security_origin */, On 2013/07/24 ...
7 years, 4 months ago (2013-07-29 07:44:00 UTC) #31
tyoshino (SeeGerritForStatus)
On 2013/07/24 13:11:05, kinuko wrote: > FileAPIMessageFilter gets bloated while streams stuff doesn't look necessary ...
7 years, 4 months ago (2013-07-29 07:45:16 UTC) #32
Tom Sepez
lgtm
7 years, 4 months ago (2013-07-29 17:18:53 UTC) #33
tyoshino (SeeGerritForStatus)
Thank you. John, does this still look lg to you?
7 years, 4 months ago (2013-07-30 18:51:21 UTC) #34
tyoshino (SeeGerritForStatus)
On 2013/07/30 18:51:21, tyoshino wrote: > Thank you. > > John, does this still look ...
7 years, 4 months ago (2013-07-31 16:57:44 UTC) #35
tyoshino (SeeGerritForStatus)
On 2013/07/31 16:57:44, tyoshino wrote: > On 2013/07/30 18:51:21, tyoshino wrote: > > Thank you. ...
7 years, 4 months ago (2013-07-31 16:59:34 UTC) #36
tyoshino (SeeGerritForStatus)
got lgtm from jam offline. submitting
7 years, 4 months ago (2013-08-02 07:47:20 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tyoshino@chromium.org/15817013/143001
7 years, 4 months ago (2013-08-02 12:19:14 UTC) #38
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) content_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=66356
7 years, 4 months ago (2013-08-02 14:18:44 UTC) #39
tyoshino (SeeGerritForStatus)
Kinuko, Could you please take a look at this diff? https://codereview.chromium.org/15817013/diff2/130001:175001/content/browser/fileapi/fileapi_message_filter_unittest.cc Win builds failed because ...
7 years, 4 months ago (2013-08-06 03:53:41 UTC) #40
kinuko
On 2013/08/06 03:53:41, tyoshino wrote: > Kinuko, > > Could you please take a look ...
7 years, 4 months ago (2013-08-06 04:27:56 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tyoshino@chromium.org/15817013/175001
7 years, 4 months ago (2013-08-06 04:31:35 UTC) #42
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 4 months ago (2013-08-06 04:41:27 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tyoshino@chromium.org/15817013/198001
7 years, 4 months ago (2013-08-06 05:17:28 UTC) #44
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) remoting_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=156586
7 years, 4 months ago (2013-08-06 06:10:44 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tyoshino@chromium.org/15817013/198001
7 years, 4 months ago (2013-08-06 06:19:30 UTC) #46
commit-bot: I haz the power
7 years, 4 months ago (2013-08-06 07:45:27 UTC) #47
Message was sent while issue was closed.
Change committed as 215842

Powered by Google App Engine
This is Rietveld 408576698