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

Issue 1183713003: Blob Consolidation & Registry Hookup (Closed)

Created:
5 years, 6 months ago by dmurph
Modified:
5 years, 5 months ago
Reviewers:
kinuko, *michaeln
CC:
chromium-reviews, darin-cc_chromium.org, jam, wkorman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Blob] Blob memory consolidation & blobregistry migration. The blob consolidation class will hold the resources for the new asynchronous protocol, where it will keep the memory around while we wait for the browser to request it. This is a multi-part patch. The next steps for Builder migration are: * Change other users of WebBlobRegistry to use the Builder pattern (mock_web_blob_registry.cc) * Change blink to use the builder pattern and stop using registerBlob * Remove WebBlobData and registerBlob method The next steps for asynchronous blob transport: * Add BlobStorageDispatcher with new IPC messages, and add asynchronous callbacks in BlobStorageContext See: https://bit.ly/BlobStorageRefactor This depends on blink patch here: https://codereview.chromium.org/1162773003 BUG=375297 Committed: https://crrev.com/8a2ebfa1cb92700c36390a6ce9e83e8810655a62 Cr-Commit-Position: refs/heads/master@{#336648}

Patch Set 1 #

Patch Set 2 : Separated out RecordMemoryRead #

Total comments: 29

Patch Set 3 : Comments, fixes #

Patch Set 4 : rebase #

Patch Set 5 : Android build fix #

Total comments: 8

Patch Set 6 : removed accounting #

Patch Set 7 : comment #

Total comments: 36

Patch Set 8 : Fixes #

Total comments: 19

Patch Set 9 : comments #

Patch Set 10 : windows issue #

Patch Set 11 : windows fix #

Patch Set 12 : windows issue #

Total comments: 1

Patch Set 13 : file path fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+654 lines, -124 lines) Patch
A content/child/blob_storage/blob_consolidation.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +104 lines, -0 lines 0 comments Download
A content/child/blob_storage/blob_consolidation.cc View 1 2 3 4 5 6 7 8 1 chunk +159 lines, -0 lines 0 comments Download
A content/child/blob_storage/blob_consolidation_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +187 lines, -0 lines 0 comments Download
M content/child/webblobregistry_impl.h View 1 2 3 4 5 6 7 8 3 chunks +40 lines, -13 lines 0 comments Download
M content/child/webblobregistry_impl.cc View 1 2 3 4 5 6 7 8 6 chunks +161 lines, -111 lines 0 comments Download
M content/content_child.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 36 (12 generated)
dmurph
Hey Michael & Kinuko, PTAL at this patch. The BlobConsolidation represents the data structure we'll ...
5 years, 6 months ago (2015-06-12 21:31:57 UTC) #3
michaeln
> patch gif: > http://i.imgur.com/v03r2aI.gif great patch gif :)
5 years, 6 months ago (2015-06-13 00:56:17 UTC) #4
dmurph
+CC wkorman, who is helping me be a better SWE
5 years, 6 months ago (2015-06-16 22:50:11 UTC) #5
michaeln
looks pretty good, i like the read method :) https://codereview.chromium.org/1183713003/diff/20001/content/child/blob_storage/blob_consolidation.cc File content/child/blob_storage/blob_consolidation.cc (right): https://codereview.chromium.org/1183713003/diff/20001/content/child/blob_storage/blob_consolidation.cc#newcode84 content/child/blob_storage/blob_consolidation.cc:84: ...
5 years, 6 months ago (2015-06-17 03:17:56 UTC) #6
dmurph
Thanks for the comments! See below for some explanations. https://codereview.chromium.org/1183713003/diff/20001/content/child/blob_storage/blob_consolidation.cc File content/child/blob_storage/blob_consolidation.cc (right): https://codereview.chromium.org/1183713003/diff/20001/content/child/blob_storage/blob_consolidation.cc#newcode84 content/child/blob_storage/blob_consolidation.cc:84: ...
5 years, 6 months ago (2015-06-17 18:29:51 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1183713003/40001
5 years, 6 months ago (2015-06-17 18:32:19 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/83184) linux_chromium_gn_rel on ...
5 years, 6 months ago (2015-06-17 18:44:54 UTC) #11
michaeln
> blob_storage_dispatcher, blob_transport_temporary_holder, and the registry If you have more of where you're headed coded ...
5 years, 6 months ago (2015-06-18 00:10:48 UTC) #12
dmurph
https://codereview.chromium.org/1183713003/diff/80001/content/child/blob_storage/blob_consolidation.cc File content/child/blob_storage/blob_consolidation.cc (right): https://codereview.chromium.org/1183713003/diff/80001/content/child/blob_storage/blob_consolidation.cc#newcode60 content/child/blob_storage/blob_consolidation.cc:60: if (length == 0) return; On 2015/06/18 at 00:10:48, ...
5 years, 6 months ago (2015-06-19 21:42:06 UTC) #13
dmurph
https://codereview.chromium.org/1183713003/diff/20001/content/child/blob_storage/blob_consolidation.h File content/child/blob_storage/blob_consolidation.h (right): https://codereview.chromium.org/1183713003/diff/20001/content/child/blob_storage/blob_consolidation.h#newcode38 content/child/blob_storage/blob_consolidation.h:38: class CONTENT_EXPORT BlobConsolidation { On 2015/06/18 at 00:10:48, michaeln ...
5 years, 6 months ago (2015-06-22 18:17:47 UTC) #14
michaeln
thnx for switching to /base friendly types, a couple small comments to look at... lgtm ...
5 years, 6 months ago (2015-06-22 23:20:22 UTC) #15
kinuko
looking good, mostly nits only https://codereview.chromium.org/1183713003/diff/120001/content/child/blob_storage/blob_consolidation.cc File content/child/blob_storage/blob_consolidation.cc (right): https://codereview.chromium.org/1183713003/diff/120001/content/child/blob_storage/blob_consolidation.cc#newcode23 content/child/blob_storage/blob_consolidation.cc:23: expected_modification_time(0) {} nit: please ...
5 years, 6 months ago (2015-06-23 14:11:30 UTC) #16
dmurph
Done. Test failures are from a leaky constructor that I'm fixing in this patch: https://codereview.chromium.org/1205683002 ...
5 years, 6 months ago (2015-06-24 00:36:18 UTC) #17
kinuko
lgtm It'd be handy to run 'git cl format' for minor formatting checks once you're ...
5 years, 6 months ago (2015-06-25 05:04:20 UTC) #18
dmurph
https://codereview.chromium.org/1183713003/diff/140001/content/child/blob_storage/blob_consolidation.h File content/child/blob_storage/blob_consolidation.h (right): https://codereview.chromium.org/1183713003/diff/140001/content/child/blob_storage/blob_consolidation.h#newcode38 content/child/blob_storage/blob_consolidation.h:38: DONE On 2015/06/25 at 05:04:19, kinuko wrote: > nit: ...
5 years, 6 months ago (2015-06-25 23:38:55 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1183713003/160001
5 years, 6 months ago (2015-06-25 23:39:33 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/10582)
5 years, 6 months ago (2015-06-26 00:04:25 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1183713003/200001
5 years, 6 months ago (2015-06-26 19:05:00 UTC) #27
commit-bot: I haz the power
Exceeded global retry quota
5 years, 5 months ago (2015-06-26 19:33:45 UTC) #29
michaeln
https://codereview.chromium.org/1183713003/diff/220001/content/child/blob_storage/blob_consolidation_unittest.cc File content/child/blob_storage/blob_consolidation_unittest.cc (right): https://codereview.chromium.org/1183713003/diff/220001/content/child/blob_storage/blob_consolidation_unittest.cc#newcode137 content/child/blob_storage/blob_consolidation_unittest.cc:137: consolidation.AddFileItem(base::FilePath(std::string("testPath")), 1, 10, ooops, filepath char type is platform ...
5 years, 5 months ago (2015-06-26 22:59:02 UTC) #30
dmurph
On 2015/06/26 at 22:59:02, michaeln wrote: > https://codereview.chromium.org/1183713003/diff/220001/content/child/blob_storage/blob_consolidation_unittest.cc > File content/child/blob_storage/blob_consolidation_unittest.cc (right): > > https://codereview.chromium.org/1183713003/diff/220001/content/child/blob_storage/blob_consolidation_unittest.cc#newcode137 ...
5 years, 5 months ago (2015-06-29 18:35:01 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1183713003/240001
5 years, 5 months ago (2015-06-29 20:06:27 UTC) #34
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 5 months ago (2015-06-29 21:30:21 UTC) #35
commit-bot: I haz the power
5 years, 5 months ago (2015-06-29 21:31:18 UTC) #36
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/8a2ebfa1cb92700c36390a6ce9e83e8810655a62
Cr-Commit-Position: refs/heads/master@{#336648}

Powered by Google App Engine
This is Rietveld 408576698