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

Issue 277353002: Use asynchronized api for file system request. [blink] (3/4) (Closed)

Created:
6 years, 7 months ago by Xi Han
Modified:
6 years, 7 months ago
CC:
blink-reviews, nhiroki, tzik, Fady Samuel
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

1. allowFileSystem() function clean up in blink. Please refer CLs: https://codereview.chromium.org/289793002/ and https://codereview.chromium.org/273513005/ 2. Use asynchronized api for file system request. Initial patch. BUG=343382 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174764

Patch Set 1 #

Patch Set 2 : Update CL according to changes in CL 289793002. #

Total comments: 6

Patch Set 3 : Update implemetation of LocalFileSystem. #

Total comments: 4

Patch Set 4 : Changes are made. #

Total comments: 7

Patch Set 5 : Wrap AsyncFileSystemCallbacks. #

Total comments: 6

Patch Set 6 : Apply Kinuko's patch. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -65 lines) Patch
M Source/modules/filesystem/FileSystemClient.h View 1 4 5 1 chunk +0 lines, -1 line 0 comments Download
M Source/modules/filesystem/LocalFileSystem.h View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M Source/modules/filesystem/LocalFileSystem.cpp View 1 2 3 4 5 3 chunks +79 lines, -14 lines 0 comments Download
M Source/web/LocalFileSystemClient.h View 1 4 5 1 chunk +0 lines, -1 line 0 comments Download
M Source/web/LocalFileSystemClient.cpp View 1 4 5 1 chunk +0 lines, -12 lines 0 comments Download
M Source/web/WorkerPermissionClient.h View 1 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M Source/web/WorkerPermissionClient.cpp View 1 4 5 2 chunks +0 lines, -17 lines 0 comments Download
M public/web/WebPermissionClient.h View 1 2 3 4 5 2 chunks +4 lines, -5 lines 0 comments Download
M public/web/WebWorkerPermissionClientProxy.h View 1 4 5 1 chunk +0 lines, -13 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Xi Han
6 years, 7 months ago (2014-05-12 13:42:39 UTC) #1
Fady Samuel
This seems reasonable to me. lgtm. Please get another reviewer to look at this. kinuko@ ...
6 years, 7 months ago (2014-05-13 17:23:55 UTC) #2
Xi Han
Please take a loot at look at the changes. Thanks a lot.
6 years, 7 months ago (2014-05-13 17:26:35 UTC) #3
Xi Han
I update this CL according to the rename issue in previous 2 patches: https://codereview.chromium.org/289793002/ and ...
6 years, 7 months ago (2014-05-15 19:26:31 UTC) #4
kinuko
https://codereview.chromium.org/277353002/diff/60001/Source/modules/filesystem/LocalFileSystem.cpp File Source/modules/filesystem/LocalFileSystem.cpp (right): https://codereview.chromium.org/277353002/diff/60001/Source/modules/filesystem/LocalFileSystem.cpp#newcode71 Source/modules/filesystem/LocalFileSystem.cpp:71: if (!client() || !client()->requestFileSystemAccessSync(context)) { Why we call Sync ...
6 years, 7 months ago (2014-05-16 10:47:04 UTC) #5
Xi Han
Update the implementations in LocalFileSystem. I keep all the function definitions unchanged, but update their ...
6 years, 7 months ago (2014-05-16 19:48:44 UTC) #6
Xi Han
This is the 3rd CL, please take a look at it. Thanks a lot!
6 years, 7 months ago (2014-05-18 02:21:37 UTC) #7
kinuko
https://codereview.chromium.org/277353002/diff/80001/Source/modules/filesystem/LocalFileSystem.cpp File Source/modules/filesystem/LocalFileSystem.cpp (right): https://codereview.chromium.org/277353002/diff/80001/Source/modules/filesystem/LocalFileSystem.cpp#newcode87 Source/modules/filesystem/LocalFileSystem.cpp:87: bind(&LocalFileSystem::fileSystemNotAllowedInternal, this, contextPtr, callbacks))); I think these patterns can ...
6 years, 7 months ago (2014-05-19 09:02:46 UTC) #8
jochen (gone - plz use gerrit)
Source/web and public lgtm
6 years, 7 months ago (2014-05-19 13:22:52 UTC) #9
Xi Han
https://codereview.chromium.org/277353002/diff/80001/Source/modules/filesystem/LocalFileSystem.cpp File Source/modules/filesystem/LocalFileSystem.cpp (right): https://codereview.chromium.org/277353002/diff/80001/Source/modules/filesystem/LocalFileSystem.cpp#newcode87 Source/modules/filesystem/LocalFileSystem.cpp:87: bind(&LocalFileSystem::fileSystemNotAllowedInternal, this, contextPtr, callbacks))); On 2014/05/19 09:02:46, kinuko wrote: ...
6 years, 7 months ago (2014-05-20 16:13:31 UTC) #10
Fady Samuel
This looks reasonable thanks! LGTM again. Please get kinuko@ to review this though. She might ...
6 years, 7 months ago (2014-05-20 21:02:36 UTC) #11
Fady Samuel
This looks reasonable thanks! LGTM again. Please get kinuko@ to review this though. She might ...
6 years, 7 months ago (2014-05-20 21:02:36 UTC) #12
kinuko
https://codereview.chromium.org/277353002/diff/90001/Source/modules/filesystem/LocalFileSystem.cpp File Source/modules/filesystem/LocalFileSystem.cpp (right): https://codereview.chromium.org/277353002/diff/90001/Source/modules/filesystem/LocalFileSystem.cpp#newcode84 Source/modules/filesystem/LocalFileSystem.cpp:84: requestFileSystemAccesssAsyncInternal(contextPtr, bind(&LocalFileSystem::resolveURLInternal, this, fileSystemURL, callbacks), bind(&LocalFileSystem::fileSystemNotAllowedInternal, this, contextPtr, callbacks)); ...
6 years, 7 months ago (2014-05-21 07:24:24 UTC) #13
Xi Han
https://codereview.chromium.org/277353002/diff/90001/Source/modules/filesystem/LocalFileSystem.cpp File Source/modules/filesystem/LocalFileSystem.cpp (right): https://codereview.chromium.org/277353002/diff/90001/Source/modules/filesystem/LocalFileSystem.cpp#newcode84 Source/modules/filesystem/LocalFileSystem.cpp:84: requestFileSystemAccesssAsyncInternal(contextPtr, bind(&LocalFileSystem::resolveURLInternal, this, fileSystemURL, callbacks), bind(&LocalFileSystem::fileSystemNotAllowedInternal, this, contextPtr, callbacks)); ...
6 years, 7 months ago (2014-05-21 19:50:04 UTC) #14
kinuko
https://codereview.chromium.org/277353002/diff/90001/Source/modules/filesystem/LocalFileSystem.cpp File Source/modules/filesystem/LocalFileSystem.cpp (right): https://codereview.chromium.org/277353002/diff/90001/Source/modules/filesystem/LocalFileSystem.cpp#newcode84 Source/modules/filesystem/LocalFileSystem.cpp:84: requestFileSystemAccesssAsyncInternal(contextPtr, bind(&LocalFileSystem::resolveURLInternal, this, fileSystemURL, callbacks), bind(&LocalFileSystem::fileSystemNotAllowedInternal, this, contextPtr, callbacks)); ...
6 years, 7 months ago (2014-05-22 10:37:42 UTC) #15
kinuko
On 2014/05/22 10:37:42, kinuko wrote: > Can't the common method do just like: > > ...
6 years, 7 months ago (2014-05-22 10:43:23 UTC) #16
kinuko
On 2014/05/22 10:43:23, kinuko wrote: > On 2014/05/22 10:37:42, kinuko wrote: > > Can't the ...
6 years, 7 months ago (2014-05-22 10:43:41 UTC) #17
Xi Han
https://codereview.chromium.org/277353002/diff/90001/Source/modules/filesystem/LocalFileSystem.cpp File Source/modules/filesystem/LocalFileSystem.cpp (right): https://codereview.chromium.org/277353002/diff/90001/Source/modules/filesystem/LocalFileSystem.cpp#newcode84 Source/modules/filesystem/LocalFileSystem.cpp:84: requestFileSystemAccesssAsyncInternal(contextPtr, bind(&LocalFileSystem::resolveURLInternal, this, fileSystemURL, callbacks), bind(&LocalFileSystem::fileSystemNotAllowedInternal, this, contextPtr, callbacks)); ...
6 years, 7 months ago (2014-05-22 14:21:41 UTC) #18
kinuko
lgtm
6 years, 7 months ago (2014-05-23 02:14:43 UTC) #19
Xi Han
The CQ bit was checked by hanxi@chromium.org
6 years, 7 months ago (2014-05-24 12:14:05 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hanxi@chromium.org/277353002/150001
6 years, 7 months ago (2014-05-24 12:14:19 UTC) #21
commit-bot: I haz the power
6 years, 7 months ago (2014-05-24 13:35:00 UTC) #22
Message was sent while issue was closed.
Change committed as 174764

Powered by Google App Engine
This is Rietveld 408576698