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

Issue 23537011: FileAPI: Add WebFileSystem::resolveURL (Closed)

Created:
7 years, 3 months ago by nhiroki
Modified:
7 years, 3 months ago
CC:
blink-reviews, jamesr, eae+blinkwatch, abarth-chromium, kinuko, dglazkov+blink, jeez
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

FileAPI: Add WebFileSystem::resolveURL This introduces WebFileSystem::resolveURL so that resolveLocalFileSystemURL, a member of FileSystem API, can resolve a filesystem URL for external filesystem. This includes: - Cracking the given filesystem URL not in Blink side but in Chromium side so that we can get more specific external filesystem type (e.g. SyncFileSystem). It is necessary to resolve the external filesystem URL. - Replacing readFileSystem with resolveURL since it's used only to resolve URLs. - Changing the error code, and these must be correct: (http://dev.w3.org/2009/dap/file-system/file-dir-sys.html#errors-and-exceptions) Depends on Chromium side change: https://codereview.chromium.org/23856002/ BUG=177137 TEST=run_webkit_tests.sh http/tests/filesystem/\* TEST=run_webkit_tests.sh http/tests/inspector/filesystem/\* Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158157

Patch Set 1 : #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : fix #

Total comments: 2

Patch Set 4 : remove FileSystemClient::resolveURL #

Patch Set 5 : fix #

Total comments: 3

Patch Set 6 : rebase #

Total comments: 6

Patch Set 7 : review fix #

Patch Set 8 : rebase #

Messages

Total messages: 13 (0 generated)
kinuko
Let me send out some early comments https://codereview.chromium.org/23537011/diff/8001/Source/core/inspector/InspectorFileSystemAgent.cpp File Source/core/inspector/InspectorFileSystemAgent.cpp (right): https://codereview.chromium.org/23537011/diff/8001/Source/core/inspector/InspectorFileSystemAgent.cpp#newcode354 Source/core/inspector/InspectorFileSystemAgent.cpp:354: if (!DOMFileSystemBase::crackFileSystemURL(m_url, ...
7 years, 3 months ago (2013-09-05 11:12:11 UTC) #1
nhiroki
+tzik@ Updated. Can you take another look? Thanks! https://codereview.chromium.org/23537011/diff/8001/Source/core/inspector/InspectorFileSystemAgent.cpp File Source/core/inspector/InspectorFileSystemAgent.cpp (right): https://codereview.chromium.org/23537011/diff/8001/Source/core/inspector/InspectorFileSystemAgent.cpp#newcode354 Source/core/inspector/InspectorFileSystemAgent.cpp:354: if ...
7 years, 3 months ago (2013-09-12 05:15:22 UTC) #2
kinuko
https://codereview.chromium.org/23537011/diff/19001/Source/modules/filesystem/LocalFileSystem.cpp File Source/modules/filesystem/LocalFileSystem.cpp (right): https://codereview.chromium.org/23537011/diff/19001/Source/modules/filesystem/LocalFileSystem.cpp#newcode65 Source/modules/filesystem/LocalFileSystem.cpp:65: client()->resolveURL(fileSystemURL, callbacks); Hmm, looks like we can directly call ...
7 years, 3 months ago (2013-09-12 05:58:14 UTC) #3
nhiroki
Updated, ptal. https://codereview.chromium.org/23537011/diff/19001/Source/modules/filesystem/LocalFileSystem.cpp File Source/modules/filesystem/LocalFileSystem.cpp (right): https://codereview.chromium.org/23537011/diff/19001/Source/modules/filesystem/LocalFileSystem.cpp#newcode65 Source/modules/filesystem/LocalFileSystem.cpp:65: client()->resolveURL(fileSystemURL, callbacks); On 2013/09/12 05:58:14, kinuko wrote: ...
7 years, 3 months ago (2013-09-12 09:08:05 UTC) #4
kinuko
lgtm https://codereview.chromium.org/23537011/diff/29001/LayoutTests/http/tests/filesystem/workers/resolve-url-sync-expected.txt File LayoutTests/http/tests/filesystem/workers/resolve-url-sync-expected.txt (right): https://codereview.chromium.org/23537011/diff/29001/LayoutTests/http/tests/filesystem/workers/resolve-url-sync-expected.txt#newcode30 LayoutTests/http/tests/filesystem/workers/resolve-url-sync-expected.txt:30: [Worker] A URI supplied to the API was ...
7 years, 3 months ago (2013-09-12 10:55:58 UTC) #5
tzik
lgtm
7 years, 3 months ago (2013-09-13 05:07:39 UTC) #6
nhiroki
Thank you for reviewing! https://codereview.chromium.org/23537011/diff/29001/Source/modules/filesystem/FileSystemClient.h File Source/modules/filesystem/FileSystemClient.h (right): https://codereview.chromium.org/23537011/diff/29001/Source/modules/filesystem/FileSystemClient.h#newcode41 Source/modules/filesystem/FileSystemClient.h:41: class KURL; On 2013/09/12 10:55:59, ...
7 years, 3 months ago (2013-09-13 07:33:43 UTC) #7
nhiroki
+abarth@, could you review this? Thanks.
7 years, 3 months ago (2013-09-13 07:44:16 UTC) #8
abarth-chromium
LGTM https://codereview.chromium.org/23537011/diff/38001/Source/modules/filesystem/DOMFileSystemBase.cpp File Source/modules/filesystem/DOMFileSystemBase.cpp (right): https://codereview.chromium.org/23537011/diff/38001/Source/modules/filesystem/DOMFileSystemBase.cpp#newcode123 Source/modules/filesystem/DOMFileSystemBase.cpp:123: result.append("/"); You should use use operator+ as follows: ...
7 years, 3 months ago (2013-09-13 17:33:01 UTC) #9
nhiroki
Thank you for reviewing! https://codereview.chromium.org/23537011/diff/38001/Source/modules/filesystem/DOMFileSystemBase.cpp File Source/modules/filesystem/DOMFileSystemBase.cpp (right): https://codereview.chromium.org/23537011/diff/38001/Source/modules/filesystem/DOMFileSystemBase.cpp#newcode123 Source/modules/filesystem/DOMFileSystemBase.cpp:123: result.append("/"); On 2013/09/13 17:33:01, abarth ...
7 years, 3 months ago (2013-09-16 16:36:07 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/23537011/52001
7 years, 3 months ago (2013-09-18 01:21:16 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/23537011/52001
7 years, 3 months ago (2013-09-21 05:29:07 UTC) #12
commit-bot: I haz the power
7 years, 3 months ago (2013-09-21 05:29:44 UTC) #13
Message was sent while issue was closed.
Change committed as 158157

Powered by Google App Engine
This is Rietveld 408576698