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

Issue 7470037: [Refactor] to rename and re-layer the file_util stack layers. (Closed)

Created:
9 years, 5 months ago by Dai Mikurube (NOT FULLTIME)
Modified:
9 years, 3 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

[Refactor] to rename and re-layer the file_util stack layers. Splits FileSystemFileUtil into two classes. 1. FileSystemFileUtil (pure virtual and non-virtual functions + functions to forward to an underlying file_util.) 2. NativeFileUtil (FileUtil for OS-native operations) Renames *FileSystemFileUtil into *FileUtil except for FileSystemFileUtil. Renames *_file_system_file_util.{cc,h} into *_file_util.{cc,h}. Renames variable *_file_system_file_util into *_file_util. BUG=none TEST=All FileAPI-related tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99641

Patch Set 1 #

Patch Set 2 : Rebased. #

Patch Set 3 : Renamed *FileSystemFileUtil into *FileUtil. #

Patch Set 4 : Reformatted. #

Patch Set 5 : Renamed file names and variable names. #

Patch Set 6 : Fixed for Clang. #

Patch Set 7 : Rebased. #

Total comments: 11

Patch Set 8 : Reflected the comments and rebased. #

Total comments: 2

Patch Set 9 : Rebased and combined FileApiFU and OverlayFU. #

Patch Set 10 : Fixed for ChromeOS. #

Patch Set 11 : Fixed for ChromeOS again. #

Total comments: 16

Patch Set 12 : Rebased. #

Patch Set 13 : Switched FileApiFileUtil back to FileSystemFileUtil. #

Patch Set 14 : Reflected the comments. #

Patch Set 15 : Fixed for ChromeOS. #

Patch Set 16 : Rebased. #

Total comments: 6

Patch Set 17 : Reflected the comments. #

Total comments: 16

Patch Set 18 : Reflected the comments. #

Patch Set 19 : Rebased. #

Patch Set 20 : Removed path_obfuscator.*. #

Patch Set 21 : Rebased. #

Patch Set 22 : Rebased. #

Patch Set 23 : Rebased on the svn tree. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2014 lines, -5441 lines) Patch
M chrome/browser/extensions/extension_file_browser_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -1 line 0 comments Download
M content/browser/file_system/file_system_dispatcher_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -2 lines 0 comments Download
M webkit/chromeos/fileapi/cros_mount_point_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +4 lines, -4 lines 0 comments Download
M webkit/chromeos/fileapi/cros_mount_point_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +4 lines, -4 lines 0 comments Download
M webkit/fileapi/file_system_dir_url_request_job_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M webkit/fileapi/file_system_file_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +132 lines, -132 lines 0 comments Download
M webkit/fileapi/file_system_file_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 8 chunks +208 lines, -270 lines 0 comments Download
M webkit/fileapi/file_system_file_util_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 15 chunks +25 lines, -38 lines 0 comments Download
D webkit/fileapi/file_system_file_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +7 lines, -7 lines 0 comments Download
M webkit/fileapi/file_system_mount_point_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M webkit/fileapi/file_system_operation.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +4 lines, -4 lines 0 comments Download
M webkit/fileapi/file_system_operation.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 24 chunks +76 lines, -98 lines 0 comments Download
M webkit/fileapi/file_system_operation_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +19 lines, -21 lines 0 comments Download
M webkit/fileapi/file_system_operation_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -4 lines 0 comments Download
M webkit/fileapi/file_system_operation_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +3 lines, -4 lines 0 comments Download
M webkit/fileapi/file_system_operation_write_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +3 lines, -4 lines 0 comments Download
M webkit/fileapi/file_system_path_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M webkit/fileapi/file_system_path_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -3 lines 0 comments Download
M webkit/fileapi/file_system_quota_client_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +5 lines, -7 lines 0 comments Download
M webkit/fileapi/file_system_quota_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -4 lines 0 comments Download
M webkit/fileapi/file_system_test_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/fileapi/file_system_test_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -3 lines 0 comments Download
M webkit/fileapi/file_system_url_request_job_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/fileapi/local_file_system_file_util.h View 1 2 3 4 1 chunk +0 lines, -140 lines 0 comments Download
D webkit/fileapi/local_file_system_file_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +0 lines, -303 lines 0 comments Download
M webkit/fileapi/local_file_system_file_util_unittest.cc View 1 2 3 4 1 chunk +0 lines, -275 lines 0 comments Download
A + webkit/fileapi/local_file_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +40 lines, -58 lines 0 comments Download
A + webkit/fileapi/local_file_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 11 chunks +142 lines, -145 lines 0 comments Download
A + webkit/fileapi/local_file_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +17 lines, -17 lines 0 comments Download
A webkit/fileapi/native_file_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +103 lines, -0 lines 0 comments Download
A webkit/fileapi/native_file_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +291 lines, -0 lines 0 comments Download
D webkit/fileapi/obfuscated_file_system_file_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +0 lines, -264 lines 0 comments Download
D webkit/fileapi/obfuscated_file_system_file_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -1255 lines 0 comments Download
D webkit/fileapi/obfuscated_file_system_file_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -1449 lines 0 comments Download
A + webkit/fileapi/obfuscated_file_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 9 chunks +59 lines, -55 lines 0 comments Download
A + webkit/fileapi/obfuscated_file_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 20 chunks +572 lines, -572 lines 0 comments Download
A + webkit/fileapi/obfuscated_file_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 46 chunks +218 lines, -222 lines 0 comments Download
M webkit/fileapi/quota_file_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -9 lines 0 comments Download
M webkit/fileapi/quota_file_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 6 chunks +33 lines, -32 lines 0 comments Download
M webkit/fileapi/quota_file_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M webkit/fileapi/sandbox_mount_point_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +3 lines, -3 lines 0 comments Download
M webkit/fileapi/sandbox_mount_point_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 11 chunks +11 lines, -13 lines 0 comments Download
M webkit/fileapi/sandbox_mount_point_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M webkit/fileapi/webkit_fileapi.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -4 lines 0 comments Download
M webkit/tools/test_shell/simple_file_system.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +0 lines, -2 lines 0 comments Download
M webkit/tools/test_shell/simple_file_writer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Dai Mikurube (NOT FULLTIME)
Splits FileSystemFileUtil into three classes. 1. FileUtil (pure virtual and non-virtual functions) 2. NativeFileUtil (FileUtil ...
9 years, 4 months ago (2011-07-29 11:35:43 UTC) #1
Dai Mikurube (NOT FULLTIME)
I've splitted the base class FileSystemFileUtil and renamed some -FileUtil classes in this change. (***FileSystemFileUtil ...
9 years, 4 months ago (2011-08-03 07:44:29 UTC) #2
ericu
I see that this makes a slightly more elegant inheritance/composition hierarchy, but it's also more ...
9 years, 4 months ago (2011-08-03 22:59:26 UTC) #3
Dai Mikurube (NOT FULLTIME)
Thank you for your comments, Eric! The main reasons of this change are : * ...
9 years, 4 months ago (2011-08-04 03:54:48 UTC) #4
kinuko
On Thu, Aug 4, 2011 at 12:54 PM, <dmikurube@chromium.org> wrote: > Thank you for your ...
9 years, 4 months ago (2011-08-04 04:21:05 UTC) #5
kinuko
Partial comments. I'm wondering if we could address/combine multiple issues into this one to simplify ...
9 years, 4 months ago (2011-08-04 05:56:27 UTC) #6
ericu
Just checking--is this one of the refactorings that's going to be abandoned now?
9 years, 4 months ago (2011-08-05 18:48:11 UTC) #7
Dai Mikurube (NOT FULLTIME)
Thanks. > Mikurube-san, if it's possible I think you / we should show this next ...
9 years, 4 months ago (2011-08-08 02:34:06 UTC) #8
ericu
On Sun, Aug 7, 2011 at 7:34 PM, <dmikurube@chromium.org> wrote: > Thanks. > >> Mikurube-san, ...
9 years, 4 months ago (2011-08-08 22:18:53 UTC) #9
Dai Mikurube (NOT FULLTIME)
Updated it with combined FileApiFU and OverlayFU.
9 years, 4 months ago (2011-08-18 04:52:53 UTC) #10
Dai Mikurube (NOT FULLTIME)
On 2011/08/18 04:52:53, Dai Mikurube wrote: > Updated it with combined FileApiFU and OverlayFU. Caught ...
9 years, 4 months ago (2011-08-22 09:53:36 UTC) #11
ericu
I'm happy with the idea of switching back to FSFU, as well. As you say, ...
9 years, 4 months ago (2011-08-22 17:59:36 UTC) #12
kinuko
On 2011/08/22 17:59:36, ericu wrote: > I'm happy with the idea of switching back to ...
9 years, 4 months ago (2011-08-24 07:50:31 UTC) #13
Dai Mikurube (NOT FULLTIME)
Eric, Kinuko-san, Thank you. Switched FileApiFileUtil back to FileSystemFileUtil, and reordered the member functions. http://codereview.chromium.org/7470037/diff/26001/webkit/fileapi/fileapi_file_util.cc ...
9 years, 4 months ago (2011-08-24 11:57:30 UTC) #14
ericu
Getting very close now! I've assumed that all the changes were the reorderings we spoke ...
9 years, 4 months ago (2011-08-25 17:58:05 UTC) #15
Dai Mikurube (NOT FULLTIME)
Thanks. http://codereview.chromium.org/7470037/diff/44001/webkit/chromeos/fileapi/cros_mount_point_provider.cc File webkit/chromeos/fileapi/cros_mount_point_provider.cc (right): http://codereview.chromium.org/7470037/diff/44001/webkit/chromeos/fileapi/cros_mount_point_provider.cc#newcode19 webkit/chromeos/fileapi/cros_mount_point_provider.cc:19: #include "webkit/chromeos/fileapi/file_access_permissions.h" On 2011/08/25 17:58:05, ericu wrote: > ...
9 years, 4 months ago (2011-08-26 05:10:59 UTC) #16
kinuko
Mostly nits, I think it's looking good to me. http://codereview.chromium.org/7470037/diff/51010/webkit/fileapi/file_system_file_util.h File webkit/fileapi/file_system_file_util.h (right): http://codereview.chromium.org/7470037/diff/51010/webkit/fileapi/file_system_file_util.h#newcode6 webkit/fileapi/file_system_file_util.h:6: ...
9 years, 3 months ago (2011-08-29 07:19:59 UTC) #17
Dai Mikurube (NOT FULLTIME)
Thank you. http://codereview.chromium.org/7470037/diff/51010/webkit/fileapi/file_system_file_util.h File webkit/fileapi/file_system_file_util.h (right): http://codereview.chromium.org/7470037/diff/51010/webkit/fileapi/file_system_file_util.h#newcode6 webkit/fileapi/file_system_file_util.h:6: #define WEBKIT_FILEAPI_FILE_UTIL_H_ On 2011/08/29 07:20:00, kinuko wrote: ...
9 years, 3 months ago (2011-08-30 07:47:26 UTC) #18
ericu
On Tue, Aug 30, 2011 at 12:47 AM, <dmikurube@chromium.org> wrote: > Thank you. > > ...
9 years, 3 months ago (2011-08-30 17:31:37 UTC) #19
ericu
I think you let two files slip in here by accident from another CL; path_obfuscator.{cc,h} ...
9 years, 3 months ago (2011-08-30 17:33:17 UTC) #20
Dai Mikurube (NOT FULLTIME)
On 2011/08/30 17:33:17, ericu wrote: > I think you let two files slip in here ...
9 years, 3 months ago (2011-08-31 07:47:24 UTC) #21
Dai Mikurube (NOT FULLTIME)
Rebased and submitted to try bots.
9 years, 3 months ago (2011-09-01 05:29:34 UTC) #22
Dai Mikurube (NOT FULLTIME)
Rebased. Kinuko-san, could you PTAL at this change?
9 years, 3 months ago (2011-09-05 07:39:22 UTC) #23
kinuko
On 2011/09/05 07:39:22, Dai Mikurube wrote: > Rebased. Kinuko-san, could you PTAL at this change? ...
9 years, 3 months ago (2011-09-05 08:06:34 UTC) #24
Dai Mikurube (NOT FULLTIME)
On 2011/09/05 08:06:34, kinuko wrote: > On 2011/09/05 07:39:22, Dai Mikurube wrote: > > Rebased. ...
9 years, 3 months ago (2011-09-05 11:05:28 UTC) #25
commit-bot: I haz the power
9 years, 3 months ago (2011-09-05 11:05:31 UTC) #26
Can't process patch for file webkit/fileapi/local_file_util_unittest.cc.
A +

Powered by Google App Engine
This is Rietveld 408576698