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

Issue 23856002: SyncFS: Support resolveLocalFileSystemURL on SyncFileSystem (Closed)

Created:
7 years, 3 months ago by nhiroki
Modified:
7 years, 3 months ago
Reviewers:
kinuko, Tom Sepez, tzik
CC:
chromium-reviews, tzik+watch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, nhiroki+watch_chromium.org, kinuko+watch
Visibility:
Public.

Description

SyncFS: Support resolveLocalFileSystemURL on SyncFileSystem window.resolveLocalFileSystemURL is originally defined only for FileSystem API, but it'd be nice if it works on SyncFileSystem in a similar way. For that this change adds new IPC messages and interfaces. Blink side change depends on this: https://codereview.chromium.org/23537011/ BUG=177137 TEST=manual (Get FileSystemURL for a file on SyncFS, and then resolve it) TEST=unit_tests TEST=run_webkit_tests.sh http/tests/inspector/filesystem/\* TEST=run_webkit_tests.sh http/tests/inspector/filesystem/\* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223635

Patch Set 1 : #

Total comments: 6

Patch Set 2 : #

Total comments: 6

Patch Set 3 : add struct FileSystemInfo, and change file path manipulation #

Total comments: 12

Patch Set 4 : review fix #

Total comments: 2

Patch Set 5 : fix error handling #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+302 lines, -52 lines) Patch
M chrome/browser/sync_file_system/local/local_file_sync_context.cc View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/sync_file_system/local/sync_file_system_backend.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/sync_file_system/sync_file_system_service_factory.cc View 1 2 3 4 5 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/sync_file_system/syncable_file_system_util_unittest.cc View 1 2 3 1 chunk +0 lines, -37 lines 0 comments Download
M content/browser/fileapi/fileapi_message_filter.h View 1 2 3 4 5 6 7 3 chunks +9 lines, -1 line 0 comments Download
M content/browser/fileapi/fileapi_message_filter.cc View 1 2 3 4 5 6 7 4 chunks +38 lines, -2 lines 0 comments Download
M content/child/fileapi/file_system_dispatcher.h View 1 2 3 4 5 6 7 4 chunks +12 lines, -0 lines 0 comments Download
M content/child/fileapi/file_system_dispatcher.cc View 1 2 3 4 5 6 7 8 chunks +38 lines, -0 lines 0 comments Download
M content/child/fileapi/webfilesystem_impl.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/child/fileapi/webfilesystem_impl.cc View 1 2 3 4 5 3 chunks +33 lines, -1 line 0 comments Download
M content/common/fileapi/file_system_messages.h View 1 2 3 4 5 6 7 4 chunks +17 lines, -0 lines 0 comments Download
M webkit/browser/fileapi/file_system_context.h View 1 2 3 5 chunks +23 lines, -2 lines 0 comments Download
M webkit/browser/fileapi/file_system_context.cc View 1 2 3 4 5 chunks +66 lines, -2 lines 0 comments Download
A webkit/common/fileapi/file_system_info.h View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
A webkit/common/fileapi/file_system_info.cc View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M webkit/common/fileapi/file_system_util.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/storage_common.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
nhiroki
Hi, can you take an early look? (The blink side change is still rough, but ...
7 years, 3 months ago (2013-09-05 09:12:07 UTC) #1
tzik
https://codereview.chromium.org/23856002/diff/14002/chrome/browser/sync_file_system/sync_file_system_service_factory.cc File chrome/browser/sync_file_system/sync_file_system_service_factory.cc (left): https://codereview.chromium.org/23856002/diff/14002/chrome/browser/sync_file_system/sync_file_system_service_factory.cc#oldcode66 chrome/browser/sync_file_system/sync_file_system_service_factory.cc:66: RegisterSyncableFileSystem(); I added RegisterSyncableFileSystem call around here recently. Could ...
7 years, 3 months ago (2013-09-05 09:30:25 UTC) #2
kinuko
https://codereview.chromium.org/23856002/diff/21001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/23856002/diff/21001/content/browser/fileapi/fileapi_message_filter.cc#newcode242 content/browser/fileapi/fileapi_message_filter.cc:242: context_->ResolveURL(filesystem_url, base::Bind( Can we just pass the cracked URL ...
7 years, 3 months ago (2013-09-05 11:11:51 UTC) #3
nhiroki
Updated. Can you take another look? Thanks! https://codereview.chromium.org/23856002/diff/14002/chrome/browser/sync_file_system/sync_file_system_service_factory.cc File chrome/browser/sync_file_system/sync_file_system_service_factory.cc (left): https://codereview.chromium.org/23856002/diff/14002/chrome/browser/sync_file_system/sync_file_system_service_factory.cc#oldcode66 chrome/browser/sync_file_system/sync_file_system_service_factory.cc:66: RegisterSyncableFileSystem(); On ...
7 years, 3 months ago (2013-09-09 09:51:05 UTC) #4
kinuko
https://codereview.chromium.org/23856002/diff/36001/webkit/browser/fileapi/file_system_context.cc File webkit/browser/fileapi/file_system_context.cc (right): https://codereview.chromium.org/23856002/diff/36001/webkit/browser/fileapi/file_system_context.cc#newcode282 webkit/browser/fileapi/file_system_context.cc:282: DCHECK(!callback.is_null()); Can we add DCHECK(io_task_runner_->RunsTasksOnCurrentThread())? This one calls FileSystemOperation ...
7 years, 3 months ago (2013-09-09 12:52:22 UTC) #5
nhiroki
Updated! https://codereview.chromium.org/23856002/diff/36001/webkit/browser/fileapi/file_system_context.cc File webkit/browser/fileapi/file_system_context.cc (right): https://codereview.chromium.org/23856002/diff/36001/webkit/browser/fileapi/file_system_context.cc#newcode282 webkit/browser/fileapi/file_system_context.cc:282: DCHECK(!callback.is_null()); On 2013/09/09 12:52:23, kinuko wrote: > Can ...
7 years, 3 months ago (2013-09-10 06:30:39 UTC) #6
kinuko
ok, lgtm. (You'll need security review for IPC changes) Please also run layout tests (linux_layout_rel ...
7 years, 3 months ago (2013-09-10 07:02:02 UTC) #7
tzik
lgtm
7 years, 3 months ago (2013-09-10 07:38:03 UTC) #8
nhiroki
Can you take another look? I fixed error handling because some layout tests can be ...
7 years, 3 months ago (2013-09-12 05:08:58 UTC) #9
nhiroki
+tsepez@ Hi Tom, can you review file_system_messages.h? This change adds new IPC messages: FileSystemMsg_DidResolveURL and ...
7 years, 3 months ago (2013-09-12 06:18:31 UTC) #10
Tom Sepez
LGTM - permissions check in OnResolveURL() seems fine.
7 years, 3 months ago (2013-09-12 16:32:49 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/23856002/53001
7 years, 3 months ago (2013-09-16 14:48:59 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/23856002/53001
7 years, 3 months ago (2013-09-16 14:52:45 UTC) #13
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 3 months ago (2013-09-16 14:57:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/23856002/88001
7 years, 3 months ago (2013-09-17 14:03:07 UTC) #15
commit-bot: I haz the power
7 years, 3 months ago (2013-09-17 17:51:52 UTC) #16
Message was sent while issue was closed.
Change committed as 223635

Powered by Google App Engine
This is Rietveld 408576698