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

Issue 7056025: More WebSQLDatabase and QuotaManager integration. (Closed)

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

Description

More WebSQLDatabase and QuotaManager integration. 1) Fix bugs with how usage and deltas in usage were being computed. The tracker was reporting confusing numbers because in some cases it was stat'ing files and in other cases it was using a value cached in memory. Now the tracker always uses a cached value for open database files, and updates the cached value when changes are noticed. During that update, delta notifications are sent. 2) Remove the old and unsed support for quota from the DatabaseTracker. Changes to the class interface rippled to various unit tests. BUG=61676 TEST=updated existing unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86871

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 7

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 1

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -317 lines) Patch
M chrome/browser/browsing_data_database_helper_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -35 lines 0 comments Download
M content/browser/renderer_host/database_message_filter.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/renderer_host/database_message_filter.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -5 lines 0 comments Download
M webkit/database/database_connections.h View 1 2 3 4 5 6 2 chunks +9 lines, -3 lines 0 comments Download
M webkit/database/database_connections.cc View 1 2 3 4 5 6 4 chunks +14 lines, -13 lines 0 comments Download
M webkit/database/database_connections_unittest.cc View 1 2 3 4 5 6 1 chunk +9 lines, -2 lines 0 comments Download
M webkit/database/database_tracker.h View 1 2 3 4 5 6 7 8 9 10 11 12 10 chunks +9 lines, -25 lines 0 comments Download
M webkit/database/database_tracker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 15 chunks +69 lines, -123 lines 2 comments Download
M webkit/database/database_tracker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 17 chunks +33 lines, -98 lines 0 comments Download
M webkit/quota/usage_tracker.cc View 1 2 3 4 5 6 6 chunks +16 lines, -0 lines 0 comments Download
M webkit/support/simple_database_system.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M webkit/support/simple_database_system.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -5 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
michaeln
Hi Kinuko, I'm a little backlogged on landing changes so this one is not yet ...
9 years, 7 months ago (2011-05-24 04:18:17 UTC) #1
kinuko
a few superficial comments http://codereview.chromium.org/7056025/diff/18001/webkit/database/database_connections.cc File webkit/database/database_connections.cc (right): http://codereview.chromium.org/7056025/diff/18001/webkit/database/database_connections.cc#newcode44 webkit/database/database_connections.cc:44: return ++count == 1; nit: ...
9 years, 7 months ago (2011-05-24 05:31:35 UTC) #2
michaeln
http://codereview.chromium.org/7056025/diff/18001/webkit/database/database_connections.cc File webkit/database/database_connections.cc (right): http://codereview.chromium.org/7056025/diff/18001/webkit/database/database_connections.cc#newcode44 webkit/database/database_connections.cc:44: return ++count == 1; On 2011/05/24 05:31:36, kinuko wrote: ...
9 years, 7 months ago (2011-05-25 01:28:06 UTC) #3
michaeln
kinuko, i think this is the last of the SQL+Quota modulo what we do about ...
9 years, 7 months ago (2011-05-26 00:17:26 UTC) #4
kinuko
LGTM Not sure if the lengthy tracker testing code is covering all the changes but ...
9 years, 7 months ago (2011-05-26 03:35:13 UTC) #5
michaeln
9 years, 7 months ago (2011-05-26 03:57:31 UTC) #6
http://codereview.chromium.org/7056025/diff/15021/webkit/database/database_tr...
File webkit/database/database_tracker.cc (right):

http://codereview.chromium.org/7056025/diff/15021/webkit/database/database_tr...
webkit/database/database_tracker.cc:158:
quota_manager_proxy_->NotifyStorageAccessed(
On 2011/05/26 03:35:13, kinuko wrote:
> Why are we notifying access on close?  Could we have a short comment about
that?

Will do...

We only call NotifiyStorageAccessed when a db is first opened. We call
NotifyStorageModified as writes occur, but we don't have any knowledge of reads
at this level. So on close, i'm bumping the last access date to make up for
that.

Powered by Google App Engine
This is Rietveld 408576698