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

Issue 1006423008: Add SetFileSize() IPC for WebSQL. (Closed)

Created:
5 years, 9 months ago by Scott Hess - ex-Googler
Modified:
5 years, 8 months ago
Reviewers:
michaeln, jschuh, jam
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add SetFileSize() IPC for WebSQL. The sandbox on OSX and Linux restricts ftruncate(), which SQLite uses. Provide a browser hook for chromium_vfs. BUG=457905 Committed: https://crrev.com/10ce3cc97b63b6e2a294f8279490e91ed22f06f4 Cr-Commit-Position: refs/heads/master@{#323925}

Patch Set 1 #

Total comments: 12

Patch Set 2 : rebase #

Total comments: 2

Patch Set 3 : Remove misleading comment. #

Total comments: 4

Patch Set 4 : Remove unnecessary IPC_MESSAGE_HANDLER_DELAY_REPLYs, remove unnecessary scoped_refptrs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -42 lines) Patch
M content/browser/renderer_host/database_message_filter.h View 1 2 3 2 chunks +7 lines, -3 lines 0 comments Download
M content/browser/renderer_host/database_message_filter.cc View 1 2 3 5 chunks +26 lines, -27 lines 0 comments Download
M content/child/blink_platform_impl.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/child/blink_platform_impl.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/child/database_util.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/child/database_util.cc View 1 2 3 5 chunks +19 lines, -12 lines 0 comments Download
M content/common/database_messages.h View 1 chunk +6 lines, -0 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M storage/browser/database/vfs_backend.h View 1 chunk +2 lines, -0 lines 0 comments Download
M storage/browser/database/vfs_backend.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (13 generated)
Scott Hess - ex-Googler
Renderer side of the patch: https://codereview.chromium.org/1012353002/
5 years, 9 months ago (2015-03-18 01:42:12 UTC) #1
Scott Hess - ex-Googler
I think this is getting into the right region for proxying the xTruncate call for ...
5 years, 9 months ago (2015-03-18 01:45:14 UTC) #3
michaeln
https://codereview.chromium.org/1006423008/diff/1/storage/browser/database/vfs_backend.cc File storage/browser/database/vfs_backend.cc (right): https://codereview.chromium.org/1006423008/diff/1/storage/browser/database/vfs_backend.cc#newcode160 storage/browser/database/vfs_backend.cc:160: // TODO(shess): Is there a base::File sitting around to ...
5 years, 9 months ago (2015-03-19 00:36:33 UTC) #4
Scott Hess - ex-Googler
https://codereview.chromium.org/1006423008/diff/1/storage/browser/database/vfs_backend.cc File storage/browser/database/vfs_backend.cc (right): https://codereview.chromium.org/1006423008/diff/1/storage/browser/database/vfs_backend.cc#newcode167 storage/browser/database/vfs_backend.cc:167: base::File file = base::File(file_path, flags); On 2015/03/19 00:36:33, michaeln ...
5 years, 9 months ago (2015-03-25 20:24:24 UTC) #5
michaeln
lgtm https://codereview.chromium.org/1006423008/diff/1/content/browser/renderer_host/database_message_filter.cc File content/browser/renderer_host/database_message_filter.cc (right): https://codereview.chromium.org/1006423008/diff/1/content/browser/renderer_host/database_message_filter.cc#newcode203 content/browser/renderer_host/database_message_filter.cc:203: if (!db_tracker_->HasSavedIncognitoFileHandle(vfs_file_name) && Not sure you'd want to ...
5 years, 8 months ago (2015-04-01 21:04:48 UTC) #6
Scott Hess - ex-Googler
https://codereview.chromium.org/1006423008/diff/1/content/browser/renderer_host/database_message_filter.cc File content/browser/renderer_host/database_message_filter.cc (right): https://codereview.chromium.org/1006423008/diff/1/content/browser/renderer_host/database_message_filter.cc#newcode203 content/browser/renderer_host/database_message_filter.cc:203: if (!db_tracker_->HasSavedIncognitoFileHandle(vfs_file_name) && On 2015/04/01 21:04:48, michaeln wrote: > ...
5 years, 8 months ago (2015-04-01 22:42:20 UTC) #7
Scott Hess - ex-Googler
https://codereview.chromium.org/1006423008/diff/1/content/child/blink_platform_impl.h File content/child/blink_platform_impl.h (right): https://codereview.chromium.org/1006423008/diff/1/content/child/blink_platform_impl.h#newcode64 content/child/blink_platform_impl.h:64: const blink::WebString& vfs_file_name, long long size); On 2015/04/01 22:42:20, ...
5 years, 8 months ago (2015-04-01 23:28:24 UTC) #8
michaeln
https://codereview.chromium.org/1006423008/diff/1/content/renderer/renderer_blink_platform_impl.h File content/renderer/renderer_blink_platform_impl.h (right): https://codereview.chromium.org/1006423008/diff/1/content/renderer/renderer_blink_platform_impl.h#newcode95 content/renderer/renderer_blink_platform_impl.h:95: const blink::WebString& vfs_file_name, long long size); oh, is it ...
5 years, 8 months ago (2015-04-01 23:43:26 UTC) #9
Scott Hess - ex-Googler
OK, updated this and blink side ( https://codereview.chromium.org/1012353002/ ) and everything checks out, so ready ...
5 years, 8 months ago (2015-04-02 22:52:42 UTC) #12
michaeln
https://codereview.chromium.org/1006423008/diff/20001/content/browser/renderer_host/database_message_filter.cc File content/browser/renderer_host/database_message_filter.cc (right): https://codereview.chromium.org/1006423008/diff/20001/content/browser/renderer_host/database_message_filter.cc#newcode300 content/browser/renderer_host/database_message_filter.cc:300: success = VfsBackend::SetFileSize(db_file, size); On 2015/04/02 22:52:41, Scott Hess ...
5 years, 8 months ago (2015-04-02 23:12:22 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1006423008/40001
5 years, 8 months ago (2015-04-03 04:43:24 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/53918)
5 years, 8 months ago (2015-04-03 05:32:02 UTC) #17
Scott Hess - ex-Googler
jam for content/OWNERS . This is part of my bid to remove some brittle SQLite ...
5 years, 8 months ago (2015-04-03 06:42:00 UTC) #19
jam
https://codereview.chromium.org/1006423008/diff/40001/content/browser/renderer_host/database_message_filter.cc File content/browser/renderer_host/database_message_filter.cc (right): https://codereview.chromium.org/1006423008/diff/40001/content/browser/renderer_host/database_message_filter.cc#newcode303 content/browser/renderer_host/database_message_filter.cc:303: Send(reply_msg); this method, and a few others in this ...
5 years, 8 months ago (2015-04-03 15:14:23 UTC) #20
Scott Hess - ex-Googler
Thanks for the input, John, PTAL? https://codereview.chromium.org/1006423008/diff/40001/content/browser/renderer_host/database_message_filter.cc File content/browser/renderer_host/database_message_filter.cc (right): https://codereview.chromium.org/1006423008/diff/40001/content/browser/renderer_host/database_message_filter.cc#newcode303 content/browser/renderer_host/database_message_filter.cc:303: Send(reply_msg); On 2015/04/03 ...
5 years, 8 months ago (2015-04-03 17:16:36 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1006423008/60001
5 years, 8 months ago (2015-04-03 17:16:37 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/54057)
5 years, 8 months ago (2015-04-03 17:29:11 UTC) #26
jam
lgtm
5 years, 8 months ago (2015-04-03 19:24:16 UTC) #27
Scott Hess - ex-Googler
On 2015/04/03 19:24:16, jam wrote: > lgtm Thanks!
5 years, 8 months ago (2015-04-03 19:25:06 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1006423008/60001
5 years, 8 months ago (2015-04-03 19:25:33 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/54104)
5 years, 8 months ago (2015-04-03 19:33:06 UTC) #32
Scott Hess - ex-Googler
Guess I didn't read the OWNERS files sufficiently closely. Justin, could you explain where my ...
5 years, 8 months ago (2015-04-03 19:38:51 UTC) #34
jschuh
Two questions: 1) Is there a reason we can't limit the file size? 2) Should ...
5 years, 8 months ago (2015-04-03 21:52:10 UTC) #35
Scott Hess - ex-Googler
On 2015/04/03 21:52:10, jschuh wrote: > Two questions: > 1) Is there a reason we ...
5 years, 8 months ago (2015-04-03 22:31:23 UTC) #36
jschuh
I'd prefer it be limited to shrinking. However, for that to matter it sounds like ...
5 years, 8 months ago (2015-04-06 16:26:30 UTC) #37
Scott Hess - ex-Googler
On 2015/04/06 16:26:30, jschuh wrote: > I'd prefer it be limited to shrinking. However, for ...
5 years, 8 months ago (2015-04-06 17:56:19 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1006423008/60001
5 years, 8 months ago (2015-04-06 17:56:25 UTC) #40
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 8 months ago (2015-04-06 18:52:35 UTC) #41
commit-bot: I haz the power
5 years, 8 months ago (2015-04-06 18:53:26 UTC) #42
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/10ce3cc97b63b6e2a294f8279490e91ed22f06f4
Cr-Commit-Position: refs/heads/master@{#323925}

Powered by Google App Engine
This is Rietveld 408576698