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

Issue 9817011: DomStorage data deletion and memory purging. (Closed)

Created:
8 years, 9 months ago by michaeln
Modified:
8 years, 9 months ago
Reviewers:
jsbell
CC:
chromium-reviews, darin-cc_chromium.org
Visibility:
Public.

Description

DomStorage data deletion and memory purging. BUG=106763 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=128376

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 7

Patch Set 7 : #

Total comments: 1

Patch Set 8 : #

Total comments: 1

Patch Set 9 : #

Patch Set 10 : #

Total comments: 6

Patch Set 11 : #

Patch Set 12 : #

Total comments: 2

Patch Set 13 : #

Patch Set 14 : #

Total comments: 1

Patch Set 15 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+373 lines, -49 lines) Patch
M content/browser/dom_storage/dom_storage_context_impl_new.cc View 1 2 3 4 5 6 3 chunks +6 lines, -4 lines 0 comments Download
M webkit/dom_storage/dom_storage_area.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +14 lines, -0 lines 0 comments Download
M webkit/dom_storage/dom_storage_area.cc View 1 2 3 4 5 6 7 8 3 chunks +57 lines, -1 line 0 comments Download
M webkit/dom_storage/dom_storage_area_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +156 lines, -14 lines 0 comments Download
M webkit/dom_storage/dom_storage_context.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M webkit/dom_storage/dom_storage_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +73 lines, -19 lines 0 comments Download
M webkit/dom_storage/dom_storage_database.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +7 lines, -1 line 0 comments Download
M webkit/dom_storage/dom_storage_database.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +20 lines, -8 lines 0 comments Download
M webkit/dom_storage/dom_storage_database_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M webkit/dom_storage/dom_storage_namespace.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webkit/dom_storage/dom_storage_namespace.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +35 lines, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
michaeln
hi josh, this one adds the Purge and Delete functions to DomStorage that chrome calls ...
8 years, 9 months ago (2012-03-21 19:29:40 UTC) #1
jsbell
lgtm with nits http://codereview.chromium.org/9817011/diff/5009/webkit/dom_storage/dom_storage_area.h File webkit/dom_storage/dom_storage_area.h (right): http://codereview.chromium.org/9817011/diff/5009/webkit/dom_storage/dom_storage_area.h#newcode58 webkit/dom_storage/dom_storage_area.h:58: // Frees up memory when possible. ...
8 years, 9 months ago (2012-03-21 20:26:28 UTC) #2
michaeln
thnx, i'll ping you again when i have some tests too
8 years, 9 months ago (2012-03-21 20:30:12 UTC) #3
michaeln
http://codereview.chromium.org/9817011/diff/5009/webkit/dom_storage/dom_storage_namespace.cc File webkit/dom_storage/dom_storage_namespace.cc (right): http://codereview.chromium.org/9817011/diff/5009/webkit/dom_storage/dom_storage_namespace.cc#newcode96 webkit/dom_storage/dom_storage_namespace.cc:96: AreaMap::const_iterator delete_it = it; On 2012/03/21 20:26:29, jsbell wrote: ...
8 years, 9 months ago (2012-03-21 20:30:20 UTC) #4
michaeln
still no tests http://codereview.chromium.org/9817011/diff/5009/webkit/dom_storage/dom_storage_area.h File webkit/dom_storage/dom_storage_area.h (right): http://codereview.chromium.org/9817011/diff/5009/webkit/dom_storage/dom_storage_area.h#newcode58 webkit/dom_storage/dom_storage_area.h:58: // Frees up memory when possible. ...
8 years, 9 months ago (2012-03-21 20:46:10 UTC) #5
michaeln
http://codereview.chromium.org/9817011/diff/20002/webkit/dom_storage/dom_storage_context.cc File webkit/dom_storage/dom_storage_context.cc (right): http://codereview.chromium.org/9817011/diff/20002/webkit/dom_storage/dom_storage_context.cc#newcode81 webkit/dom_storage/dom_storage_context.cc:81: void DomStorageContext::DeleteOrigin(const GURL& origin) { fyi: When this DeleteOrigin() ...
8 years, 9 months ago (2012-03-21 23:22:02 UTC) #6
michaeln
Added logic to enforce content policy at shutdown in snapshot 8 and 9
8 years, 9 months ago (2012-03-21 23:57:24 UTC) #7
jsbell
http://codereview.chromium.org/9817011/diff/21012/webkit/dom_storage/dom_storage_context.cc File webkit/dom_storage/dom_storage_context.cc (right): http://codereview.chromium.org/9817011/diff/21012/webkit/dom_storage/dom_storage_context.cc#newcode123 webkit/dom_storage/dom_storage_context.cc:123: if (!clear_local_state_ && !has_session_only_origins) Just for readability, perhaps change ...
8 years, 9 months ago (2012-03-22 00:27:46 UTC) #8
michaeln
http://codereview.chromium.org/9817011/diff/21012/webkit/dom_storage/dom_storage_context.cc File webkit/dom_storage/dom_storage_context.cc (right): http://codereview.chromium.org/9817011/diff/21012/webkit/dom_storage/dom_storage_context.cc#newcode123 webkit/dom_storage/dom_storage_context.cc:123: if (!clear_local_state_ && !has_session_only_origins) On 2012/03/22 00:27:46, jsbell wrote: ...
8 years, 9 months ago (2012-03-22 00:53:17 UTC) #9
michaeln
http://codereview.chromium.org/9817011/diff/1012/webkit/dom_storage/dom_storage_context.cc File webkit/dom_storage/dom_storage_context.cc (right): http://codereview.chromium.org/9817011/diff/1012/webkit/dom_storage/dom_storage_context.cc#newcode93 webkit/dom_storage/dom_storage_context.cc:93: if (infos[i].last_modified > cutoff) ooops... i have to consult ...
8 years, 9 months ago (2012-03-22 05:34:40 UTC) #10
michaeln
http://chromiumcodereview.appspot.com/9817011/diff/1012/webkit/dom_storage/dom_storage_context.cc File webkit/dom_storage/dom_storage_context.cc (right): http://chromiumcodereview.appspot.com/9817011/diff/1012/webkit/dom_storage/dom_storage_context.cc#newcode93 webkit/dom_storage/dom_storage_context.cc:93: if (infos[i].last_modified > cutoff) On 2012/03/22 05:34:40, michaeln wrote: ...
8 years, 9 months ago (2012-03-22 19:00:57 UTC) #11
jsbell
lgtm It's a shame to have the vaguely repeated pattern if (policy.allows) { DoSomething(data) }, ...
8 years, 9 months ago (2012-03-22 23:03:19 UTC) #12
michaeln
added some area tests... i think this is ready (enough) to commit... ptal http://chromiumcodereview.appspot.com/9817011/diff/35001/webkit/dom_storage/dom_storage_database.cc File ...
8 years, 9 months ago (2012-03-22 23:03:32 UTC) #13
michaeln
thnx! On 2012/03/22 23:03:19, jsbell wrote: > lgtm > > It's a shame to have ...
8 years, 9 months ago (2012-03-22 23:43:31 UTC) #14
jsbell
lgtm (Would love to see unittests for DomStorageContext but those can wait.)
8 years, 9 months ago (2012-03-22 23:51:46 UTC) #15
michaeln
8 years, 9 months ago (2012-03-22 23:58:48 UTC) #16
> (Would love to see unittests for DomStorageContext but those can wait.)

Yup... after this and the gypi changes are in, i can run try jobs with the flag
turned on. Before fleshing out unittests more, i'd like to see what those
tryjobs turn up with this actually plugged into chrome and drt... there might be
some more important integration things todo in there that i've missed.

Powered by Google App Engine
This is Rietveld 408576698