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

Issue 8907014: Implement async verision of FileSystemFileUtil and in-memory file system for testing purposes. (Closed)

Created:
9 years ago by satorux1
Modified:
9 years ago
CC:
chromium-reviews, pam+watch_chromium.org, kinuko+watch, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Implement async verision of FileSystemFileUtil and in-memory file system for testing purposes. patch from issue 8574007 BUG=chromium-os:23316 TEST=out/Debug/test_shell_tests --gtest_filter='MemoryFileUtilTest.*' Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114923

Patch Set 1 #

Patch Set 2 : Fix the build #

Patch Set 3 : Address comments #

Total comments: 41

Patch Set 4 : Address comments #

Total comments: 6

Patch Set 5 : Remove Read() and Write() from FileUtilAsync #

Total comments: 6

Patch Set 6 : Move Open() implementation out #

Patch Set 7 : Remove file_util_async.cc #

Total comments: 19

Patch Set 8 : Address comments #

Patch Set 9 : Address comments #

Patch Set 10 : minor cleanup #

Patch Set 11 : RemoveMode -> bool #

Patch Set 12 : rebase #

Patch Set 13 : fix clang #

Patch Set 14 : fix the build... #

Patch Set 15 : add webkit/chromeos/OWNERS #

Total comments: 4

Patch Set 16 : fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1748 lines, -0 lines) Patch
A webkit/chromeos/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download
A webkit/chromeos/fileapi/async_file_stream.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +56 lines, -0 lines 0 comments Download
A webkit/chromeos/fileapi/file_util_async.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +123 lines, -0 lines 0 comments Download
A webkit/chromeos/fileapi/memory_file_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +150 lines, -0 lines 0 comments Download
A webkit/chromeos/fileapi/memory_file_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +586 lines, -0 lines 0 comments Download
A webkit/chromeos/fileapi/memory_file_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +825 lines, -0 lines 0 comments Download
M webkit/fileapi/webkit_fileapi.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gypi View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
satorux1
9 years ago (2011-12-13 09:48:33 UTC) #1
kinuko
Thanks. Some more comments http://codereview.chromium.org/8907014/diff/4002/webkit/chromeos/fileapi/async_file_stream.h File webkit/chromeos/fileapi/async_file_stream.h (right): http://codereview.chromium.org/8907014/diff/4002/webkit/chromeos/fileapi/async_file_stream.h#newcode6 webkit/chromeos/fileapi/async_file_stream.h:6: #define WEBKIT_FILEAPI_ASYNC_FILE_STREAM_H_ nit: needs to ...
9 years ago (2011-12-14 03:39:22 UTC) #2
satorux1
http://codereview.chromium.org/8907014/diff/4002/webkit/chromeos/fileapi/async_file_stream.h File webkit/chromeos/fileapi/async_file_stream.h (right): http://codereview.chromium.org/8907014/diff/4002/webkit/chromeos/fileapi/async_file_stream.h#newcode6 webkit/chromeos/fileapi/async_file_stream.h:6: #define WEBKIT_FILEAPI_ASYNC_FILE_STREAM_H_ On 2011/12/14 03:39:22, kinuko wrote: > nit: ...
9 years ago (2011-12-14 04:43:26 UTC) #3
satorux1
http://codereview.chromium.org/8907014/diff/4002/webkit/chromeos/fileapi/memory_file_util_unittest.cc File webkit/chromeos/fileapi/memory_file_util_unittest.cc (right): http://codereview.chromium.org/8907014/diff/4002/webkit/chromeos/fileapi/memory_file_util_unittest.cc#newcode502 webkit/chromeos/fileapi/memory_file_util_unittest.cc:502: // /mnt/memory/longer_file_name.txt kTestStringLength On 2011/12/14 04:43:26, satorux1 wrote: > ...
9 years ago (2011-12-14 04:44:40 UTC) #4
satorux1
Had discussion with kinuko about the design. http://codereview.chromium.org/8907014/diff/4002/webkit/chromeos/fileapi/async_file_stream.h File webkit/chromeos/fileapi/async_file_stream.h (right): http://codereview.chromium.org/8907014/diff/4002/webkit/chromeos/fileapi/async_file_stream.h#newcode26 webkit/chromeos/fileapi/async_file_stream.h:26: const ReadWriteCallback& ...
9 years ago (2011-12-14 05:19:55 UTC) #5
satorux1
http://codereview.chromium.org/8907014/diff/4002/webkit/chromeos/fileapi/async_file_stream.h File webkit/chromeos/fileapi/async_file_stream.h (right): http://codereview.chromium.org/8907014/diff/4002/webkit/chromeos/fileapi/async_file_stream.h#newcode26 webkit/chromeos/fileapi/async_file_stream.h:26: const ReadWriteCallback& callback) = 0; On 2011/12/14 05:19:55, satorux1 ...
9 years ago (2011-12-14 06:55:17 UTC) #6
satorux1
Kinuko, per our discussion, I've removed Read() and Write() from FileUtilAsync, as well as FileUtilAsyncFileStream ...
9 years ago (2011-12-14 07:06:35 UTC) #7
satorux1
http://codereview.chromium.org/8907014/diff/14001/webkit/chromeos/fileapi/file_util_async.h File webkit/chromeos/fileapi/file_util_async.h (right): http://codereview.chromium.org/8907014/diff/14001/webkit/chromeos/fileapi/file_util_async.h#newcode62 webkit/chromeos/fileapi/file_util_async.h:62: bool recursive, Use of boolean parameter like this is ...
9 years ago (2011-12-14 08:27:03 UTC) #8
satorux1
http://codereview.chromium.org/8907014/diff/14001/webkit/chromeos/fileapi/file_util_async.cc File webkit/chromeos/fileapi/file_util_async.cc (right): http://codereview.chromium.org/8907014/diff/14001/webkit/chromeos/fileapi/file_util_async.cc#newcode48 webkit/chromeos/fileapi/file_util_async.cc:48: void FileUtilAsync::Open( She was doubtful of having the default ...
9 years ago (2011-12-14 08:42:29 UTC) #9
satorux1
Also added a bunch of comments. The test still passes. http://codereview.chromium.org/8907014/diff/14001/webkit/chromeos/fileapi/file_util_async.cc File webkit/chromeos/fileapi/file_util_async.cc (right): http://codereview.chromium.org/8907014/diff/14001/webkit/chromeos/fileapi/file_util_async.cc#newcode48 ...
9 years ago (2011-12-14 08:55:32 UTC) #10
kinuko
I like this no default impl design! (We could bring some of the code back ...
9 years ago (2011-12-14 11:19:12 UTC) #11
Oleg Eterevsky
http://codereview.chromium.org/8907014/diff/8002/webkit/chromeos/fileapi/file_util_async.h File webkit/chromeos/fileapi/file_util_async.h (right): http://codereview.chromium.org/8907014/diff/8002/webkit/chromeos/fileapi/file_util_async.h#newcode28 webkit/chromeos/fileapi/file_util_async.h:28: // operation when it is possible to batch several ...
9 years ago (2011-12-14 15:20:57 UTC) #12
satorux1
http://codereview.chromium.org/8907014/diff/8002/webkit/chromeos/fileapi/file_util_async.h File webkit/chromeos/fileapi/file_util_async.h (right): http://codereview.chromium.org/8907014/diff/8002/webkit/chromeos/fileapi/file_util_async.h#newcode28 webkit/chromeos/fileapi/file_util_async.h:28: // operation when it is possible to batch several ...
9 years ago (2011-12-15 00:32:00 UTC) #13
satorux1
http://codereview.chromium.org/8907014/diff/13003/webkit/chromeos/fileapi/async_file_stream.h File webkit/chromeos/fileapi/async_file_stream.h (right): http://codereview.chromium.org/8907014/diff/13003/webkit/chromeos/fileapi/async_file_stream.h#newcode15 webkit/chromeos/fileapi/async_file_stream.h:15: // This class an interface used for implementing OpenVerifiedFile() ...
9 years ago (2011-12-15 04:38:05 UTC) #14
satorux1
http://codereview.chromium.org/8907014/diff/13003/webkit/chromeos/fileapi/memory_file_util.cc File webkit/chromeos/fileapi/memory_file_util.cc (right): http://codereview.chromium.org/8907014/diff/13003/webkit/chromeos/fileapi/memory_file_util.cc#newcode236 webkit/chromeos/fileapi/memory_file_util.cc:236: if (mode == RECURSIVE) { On 2011/12/14 11:19:13, kinuko ...
9 years ago (2011-12-15 07:04:31 UTC) #15
kinuko
LGTM On 2011/12/15 07:04:31, satorux1 wrote: > http://codereview.chromium.org/8907014/diff/13003/webkit/chromeos/fileapi/memory_file_util.cc > File webkit/chromeos/fileapi/memory_file_util.cc (right): > > http://codereview.chromium.org/8907014/diff/13003/webkit/chromeos/fileapi/memory_file_util.cc#newcode236 ...
9 years ago (2011-12-15 07:41:59 UTC) #16
satorux1
Changed RemoveMode back to bool per Oleg's strong request out of band...
9 years ago (2011-12-15 14:30:55 UTC) #17
kinuko
On 2011/12/15 14:30:55, satorux1 wrote: > Changed RemoveMode back to bool per Oleg's strong request ...
9 years ago (2011-12-16 07:11:40 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/satorux@chromium.org/8907014/34001
9 years ago (2011-12-16 09:51:44 UTC) #19
commit-bot: I haz the power
Presubmit check for 8907014-34001 failed and returned exit status 1. Running presubmit commit checks ...
9 years ago (2011-12-16 09:51:51 UTC) #20
satorux1
Hmm, I seem to need LGTM from darin or tony. I've just added webkit/chromeos/OWNERS.
9 years ago (2011-12-16 10:02:21 UTC) #21
tony
LGTM http://codereview.chromium.org/8907014/diff/28013/webkit/chromeos/fileapi/async_file_stream.h File webkit/chromeos/fileapi/async_file_stream.h (right): http://codereview.chromium.org/8907014/diff/28013/webkit/chromeos/fileapi/async_file_stream.h#newcode9 webkit/chromeos/fileapi/async_file_stream.h:9: #include "base/callback.h" Nit: Sort includes. http://codereview.chromium.org/8907014/diff/28013/webkit/fileapi/webkit_fileapi.gypi File webkit/fileapi/webkit_fileapi.gypi ...
9 years ago (2011-12-16 18:13:25 UTC) #22
satorux1
http://codereview.chromium.org/8907014/diff/28013/webkit/chromeos/fileapi/async_file_stream.h File webkit/chromeos/fileapi/async_file_stream.h (right): http://codereview.chromium.org/8907014/diff/28013/webkit/chromeos/fileapi/async_file_stream.h#newcode9 webkit/chromeos/fileapi/async_file_stream.h:9: #include "base/callback.h" On 2011/12/16 18:13:25, tony wrote: > Nit: ...
9 years ago (2011-12-16 22:53:22 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/satorux@chromium.org/8907014/35001
9 years ago (2011-12-17 11:04:10 UTC) #24
commit-bot: I haz the power
9 years ago (2011-12-17 13:04:51 UTC) #25
Change committed as 114923

Powered by Google App Engine
This is Rietveld 408576698