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

Issue 14139026: New blobstoragecontext for use in the main browser process, not plugged in yet. (Closed)

Created:
7 years, 8 months ago by michaeln
Modified:
7 years, 7 months ago
Reviewers:
kinuko, ericu
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

New BlobStorageContext for use in the main browser process. This class is not used yet, just added it with some tests in this CL. BUG=174200 R=ericu@chromium.org, kinuko@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=197720

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Total comments: 50

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 9

Patch Set 8 : #

Patch Set 9 : #

Total comments: 16

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Total comments: 1

Patch Set 14 : #

Patch Set 15 : #

Total comments: 2

Patch Set 16 : #

Patch Set 17 : #

Total comments: 10

Patch Set 18 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+746 lines, -180 lines) Patch
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M webkit/base/data_element.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +26 lines, -3 lines 0 comments Download
M webkit/base/data_element.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +13 lines, -2 lines 0 comments Download
M webkit/blob/blob_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +8 lines, -1 line 0 comments Download
M webkit/blob/blob_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +11 lines, -1 line 0 comments Download
A webkit/blob/blob_data_handle.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +50 lines, -0 lines 0 comments Download
A webkit/blob/blob_data_handle.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +56 lines, -0 lines 0 comments Download
A + webkit/blob/blob_storage_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +62 lines, -34 lines 0 comments Download
A + webkit/blob/blob_storage_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 8 chunks +171 lines, -106 lines 0 comments Download
A + webkit/blob/blob_storage_context_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +162 lines, -33 lines 0 comments Download
A webkit/blob/blob_storage_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +69 lines, -0 lines 0 comments Download
A webkit/blob/blob_storage_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +111 lines, -0 lines 0 comments Download
M webkit/blob/webkit_blob.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
michaeln
Either of you willing to review these changes? Eric, you'd have a leg up on ...
7 years, 8 months ago (2013-04-17 01:23:48 UTC) #1
michaeln
If you want to see more context, you can look here... https://chromiumcodereview.appspot.com/11410019/ ... this is ...
7 years, 8 months ago (2013-04-17 01:50:11 UTC) #2
ericu
I'll take a look. On Tue, Apr 16, 2013 at 6:23 PM, <michaeln@chromium.org> wrote: > ...
7 years, 8 months ago (2013-04-17 21:50:26 UTC) #3
ericu
https://codereview.chromium.org/14139026/diff/5004/webkit/base/data_element.cc File webkit/base/data_element.cc (right): https://codereview.chromium.org/14139026/diff/5004/webkit/base/data_element.cc#newcode35 webkit/base/data_element.cc:35: length_ = length; Clear blob_uuid here, just in case. ...
7 years, 8 months ago (2013-04-18 02:01:58 UTC) #4
kinuko
I'm still on the way reading this, but since Eric seems to have done a ...
7 years, 8 months ago (2013-04-18 02:36:35 UTC) #5
michaeln
no new snapshot yet, i'll upload one later today with some changes in light of ...
7 years, 8 months ago (2013-04-18 20:42:19 UTC) #6
michaeln
https://chromiumcodereview.appspot.com/14139026/diff/23001/webkit/blob/blob_storage_context.cc File webkit/blob/blob_storage_context.cc (right): https://chromiumcodereview.appspot.com/14139026/diff/23001/webkit/blob/blob_storage_context.cc#newcode61 webkit/blob/blob_storage_context.cc:61: base::Bind(&DeleteHelper, base::Passed(&context_), blob_data_)); blob_data_ is not being handled correctly ...
7 years, 8 months ago (2013-04-18 20:45:15 UTC) #7
michaeln
thnx for looking, still no snapshot, but today (gcl upload works today) https://chromiumcodereview.appspot.com/14139026/diff/23001/webkit/blob/blob_storage_context.cc File webkit/blob/blob_storage_context.cc ...
7 years, 8 months ago (2013-04-19 21:55:51 UTC) #8
michaeln
not ready yet, i'm still poking at the consistency checks. I'm leaning towards making all ...
7 years, 8 months ago (2013-04-20 00:31:02 UTC) #9
ericu
https://chromiumcodereview.appspot.com/14139026/diff/23001/webkit/blob/blob_storage_context.cc File webkit/blob/blob_storage_context.cc (right): https://chromiumcodereview.appspot.com/14139026/diff/23001/webkit/blob/blob_storage_context.cc#newcode53 webkit/blob/blob_storage_context.cc:53: BlobDataHandle::~BlobDataHandle() { On 2013/04/19 21:55:51, michaeln wrote: > On ...
7 years, 8 months ago (2013-04-22 17:25:14 UTC) #10
michaeln
> i'm still poking at the consistency checks. I'm leaning towards > making all of ...
7 years, 8 months ago (2013-04-23 02:03:15 UTC) #11
michaeln
eric, i know there are at least two comments from you that i have not ...
7 years, 8 months ago (2013-04-23 02:05:52 UTC) #12
kinuko
(cosmetic comments only) https://chromiumcodereview.appspot.com/14139026/diff/23001/webkit/blob/blob_storage_context.h File webkit/blob/blob_storage_context.h (right): https://chromiumcodereview.appspot.com/14139026/diff/23001/webkit/blob/blob_storage_context.h#newcode41 webkit/blob/blob_storage_context.h:41: class WEBKIT_STORAGE_EXPORT BlobDataHandle On 2013/04/18 20:42:19, ...
7 years, 8 months ago (2013-04-23 05:30:39 UTC) #13
michaeln
no new snapshot yet, but the 'done' changes are made locally https://chromiumcodereview.appspot.com/14139026/diff/23001/webkit/blob/blob_storage_context.h File webkit/blob/blob_storage_context.h (right): ...
7 years, 8 months ago (2013-04-23 19:27:16 UTC) #14
michaeln
https://codereview.chromium.org/14139026/diff/5004/webkit/base/data_element.cc File webkit/base/data_element.cc (right): https://codereview.chromium.org/14139026/diff/5004/webkit/base/data_element.cc#newcode35 webkit/base/data_element.cc:35: length_ = length; On 2013/04/18 02:01:58, ericu wrote: > ...
7 years, 8 months ago (2013-04-23 21:11:10 UTC) #15
michaeln
https://codereview.chromium.org/14139026/diff/23001/webkit/blob/blob_storage_context.cc File webkit/blob/blob_storage_context.cc (right): https://codereview.chromium.org/14139026/diff/23001/webkit/blob/blob_storage_context.cc#newcode253 webkit/blob/blob_storage_context.cc:253: case BlobData::Item::TYPE_BLOB: { we'll get here by way of ...
7 years, 8 months ago (2013-04-23 21:15:10 UTC) #16
michaeln
New snapshot, but i still have a TODO to take care of... // TODO: Gotta ...
7 years, 8 months ago (2013-04-23 22:12:48 UTC) #17
michaeln
Took care of that TODO... A blob entry remains in the map under that uuid, ...
7 years, 8 months ago (2013-04-24 18:36:32 UTC) #18
michaeln
I'll wait for review comments prior to splitting out files per class.
7 years, 8 months ago (2013-04-24 19:22:46 UTC) #19
ericu
https://codereview.chromium.org/14139026/diff/23001/webkit/blob/blob_storage_context.cc File webkit/blob/blob_storage_context.cc (right): https://codereview.chromium.org/14139026/diff/23001/webkit/blob/blob_storage_context.cc#newcode209 webkit/blob/blob_storage_context.cc:209: DCHECK(unfinalized_blob_map_.find(uuid) == unfinalized_blob_map_.end()); On 2013/04/18 02:01:58, ericu wrote: > ...
7 years, 8 months ago (2013-04-24 23:54:43 UTC) #20
michaeln
https://codereview.chromium.org/14139026/diff/23001/webkit/blob/blob_storage_context.cc File webkit/blob/blob_storage_context.cc (right): https://codereview.chromium.org/14139026/diff/23001/webkit/blob/blob_storage_context.cc#newcode225 webkit/blob/blob_storage_context.cc:225: // 1) The Data item is denoted by the ...
7 years, 8 months ago (2013-04-25 00:08:00 UTC) #21
michaeln
https://codereview.chromium.org/14139026/diff/23001/webkit/blob/blob_storage_context.cc File webkit/blob/blob_storage_context.cc (right): https://codereview.chromium.org/14139026/diff/23001/webkit/blob/blob_storage_context.cc#newcode272 webkit/blob/blob_storage_context.cc:272: // until it does, we'll prevent memory usage over ...
7 years, 8 months ago (2013-04-25 01:05:01 UTC) #22
michaeln
thnx for looking https://codereview.chromium.org/14139026/diff/23001/webkit/blob/blob_storage_context.cc File webkit/blob/blob_storage_context.cc (right): https://codereview.chromium.org/14139026/diff/23001/webkit/blob/blob_storage_context.cc#newcode209 webkit/blob/blob_storage_context.cc:209: DCHECK(unfinalized_blob_map_.find(uuid) == unfinalized_blob_map_.end()); On 2013/04/24 23:54:43, ...
7 years, 8 months ago (2013-04-25 01:21:37 UTC) #23
michaeln
i think i'm at the point of diminishing returns... wdyt? https://codereview.chromium.org/14139026/diff/71001/webkit/blob/blob_storage_context.cc File webkit/blob/blob_storage_context.cc (right): https://codereview.chromium.org/14139026/diff/71001/webkit/blob/blob_storage_context.cc#newcode243 ...
7 years, 8 months ago (2013-04-25 21:22:46 UTC) #24
michaeln
Took care of signed'ness compile errors and also got rid of n2'edness around GetMemoryUsage() calculations ...
7 years, 8 months ago (2013-04-25 23:37:27 UTC) #25
michaeln
https://codereview.chromium.org/14139026/diff/128020/webkit/blob/blob_storage_context.cc File webkit/blob/blob_storage_context.cc (right): https://codereview.chromium.org/14139026/diff/128020/webkit/blob/blob_storage_context.cc#newcode298 webkit/blob/blob_storage_context.cc:298: DCHECK(src.get()); in exceeded_mem situations, this dcheck will trip... i'll ...
7 years, 8 months ago (2013-04-26 00:26:57 UTC) #26
michaeln
https://codereview.chromium.org/14139026/diff/128020/webkit/blob/blob_storage_context.cc File webkit/blob/blob_storage_context.cc (right): https://codereview.chromium.org/14139026/diff/128020/webkit/blob/blob_storage_context.cc#newcode58 webkit/blob/blob_storage_context.cc:58: // Note: Do not test context_ on the wrong ...
7 years, 8 months ago (2013-04-26 00:37:59 UTC) #27
ericu
LGTM https://codereview.chromium.org/14139026/diff/71001/webkit/blob/blob_storage_context.cc File webkit/blob/blob_storage_context.cc (right): https://codereview.chromium.org/14139026/diff/71001/webkit/blob/blob_storage_context.cc#newcode61 webkit/blob/blob_storage_context.cc:61: blob_data_->Release(); On 2013/04/25 01:21:37, michaeln wrote: > On ...
7 years, 8 months ago (2013-04-26 22:17:37 UTC) #28
michaeln
i'll run it by the trybots to see if i missed checking any return values ...
7 years, 7 months ago (2013-04-29 18:32:48 UTC) #29
ericu
I haven't checked your split into 3 sets of files--I'm assuming that's just a mechanical ...
7 years, 7 months ago (2013-04-30 00:45:28 UTC) #30
michaeln
yup, the split was purely mechanical
7 years, 7 months ago (2013-04-30 01:18:00 UTC) #31
kinuko
lgtm https://codereview.chromium.org/14139026/diff/165001/webkit/blob/blob_data_handle.h File webkit/blob/blob_data_handle.h (right): https://codereview.chromium.org/14139026/diff/165001/webkit/blob/blob_data_handle.h#newcode28 webkit/blob/blob_data_handle.h:28: class WEBKIT_STORAGE_EXPORT BlobDataHandle Thanks for splitting the files!! ...
7 years, 7 months ago (2013-04-30 15:13:27 UTC) #32
michaeln
hey, thnx for looking https://codereview.chromium.org/14139026/diff/165001/webkit/blob/blob_storage_context.cc File webkit/blob/blob_storage_context.cc (right): https://codereview.chromium.org/14139026/diff/165001/webkit/blob/blob_storage_context.cc#newcode77 webkit/blob/blob_storage_context.cc:77: BlobUrlHasRef(url) ? ClearBlobUrlRef(url) : url); ...
7 years, 7 months ago (2013-04-30 18:14:07 UTC) #33
michaeln
7 years, 7 months ago (2013-05-01 21:28:37 UTC) #34
Message was sent while issue was closed.
Committed patchset #18 manually as r197720.

Powered by Google App Engine
This is Rietveld 408576698