|
Use the QuotaManager to determine the space available to WebSQLDatabases. Since activity outside of the database system now affect how much space is available, our strategy for informing the client side of the new limit needed to change. It's not enough to just send the new limit when a change within the DB system has occurred.
This change depends on a webkit/webcore change.
https://bugs.webkit.org/show_bug.cgi?id=60985
In this CL the renderer will ask the browser for the limit when needed. But also in this CL are ipc plumbing additions to support notifying the renderer as changes occur. That plumbing will be utilized in a later CL.
* [Chrome] DatabaseMessageFilter uses the QuotaManager respond to the SpaceAvailable query.
* [DRT] SimpleDatabaseSystem uses quota_per_origin_ data member to respond to the SpaceAvailable query.
* Mostly mind numbing plumbing for WebKit API additions.
// Sync getter for use on webcore's background db threads to
// call out to chrome to get the value.
long long WebKitClient::databaseGetSpaceAvailableForOrigin(origin_identifier);
// Split the existing updateDatabaseSize method into three methods. Chrome calls into these.
static void WebDatabase::updateDatabaseSize(originIdentifier, dbname, spaceAvailable);
static void WebDatabase::updateSpaceAvailable(originIdentifier, spaceAvailable);
static void WebDatabase::resetSpaceAvailable(originIdentifier);
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86537
Total comments: 3
Total comments: 2
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+234 lines, -50 lines) |
Patch |
 |
M |
content/browser/renderer_host/database_message_filter.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/database_message_filter.cc
|
View
|
1
2
3
4
5
6
7
8
|
6 chunks |
+71 lines, -12 lines |
0 comments
|
Download
|
 |
M |
content/common/database_messages.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+15 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/common/database_util.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+9 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/common/database_util.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+13 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/common/db_message_filter.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/common/db_message_filter.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+18 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/renderer/renderer_webkitclient_impl.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/renderer_webkitclient_impl.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+9 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/worker/worker_webkitclient_impl.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/worker/worker_webkitclient_impl.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+9 lines, -4 lines |
0 comments
|
Download
|
 |
M |
webkit/database/database_tracker.h
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+13 lines, -7 lines |
0 comments
|
Download
|
 |
M |
webkit/glue/webkitclient_impl.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/glue/webkitclient_impl.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/support/simple_database_system.h
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/support/simple_database_system.cc
|
View
|
1
2
3
4
5
6
7
8
|
7 chunks |
+36 lines, -6 lines |
0 comments
|
Download
|
 |
M |
webkit/support/test_webkit_client.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/support/test_webkit_client.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
 |
M |
webkit/tools/test_shell/test_shell_webkit_init.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/tools/test_shell/test_shell_webkit_init.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
Total messages: 16 (0 generated)
|