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

Issue 6604020: Introduce FileSystemFileUtil and -Proxy to decorate base::file_util in webkit/fileapi. (Closed)

Created:
9 years, 9 months ago by Dai Mikurube (google.com)
Modified:
9 years, 7 months ago
Reviewers:
ericu, kinuko
CC:
chromium-reviews, kinuko+watch, darin-cc_chromium.org, brettw-cc_chromium.org, Dai Mikurube (NOT FULLTIME)
Visibility:
Public.

Description

Introduce FileSystemFileUtil and -Proxy to decorate base::file_util in webkit/fileapi. BUG=74841 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=76875

Patch Set 1 #

Total comments: 18

Patch Set 2 : Reflected comments. #

Total comments: 15

Patch Set 3 : Fixed. #

Patch Set 4 : Passing FileSystemOperationContext by value. #

Total comments: 1

Patch Set 5 : Modified webkit_fileapi.gypi. #

Total comments: 1

Patch Set 6 : Made file_system_operation_context_ a simple variable (replaced from not scoped_ptr.) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1150 lines, -28 lines) Patch
M webkit/fileapi/file_system_context.h View 1 1 chunk +1 line, -1 line 0 comments Download
A webkit/fileapi/file_system_file_util.h View 1 2 1 chunk +135 lines, -0 lines 0 comments Download
A webkit/fileapi/file_system_file_util.cc View 1 2 1 chunk +253 lines, -0 lines 0 comments Download
A webkit/fileapi/file_system_file_util_proxy.h View 1 2 3 1 chunk +150 lines, -0 lines 0 comments Download
A webkit/fileapi/file_system_file_util_proxy.cc View 1 2 3 1 chunk +527 lines, -0 lines 0 comments Download
M webkit/fileapi/file_system_operation.h View 1 2 3 4 5 3 chunks +3 lines, -1 line 0 comments Download
M webkit/fileapi/file_system_operation.cc View 1 2 3 4 5 14 chunks +47 lines, -26 lines 0 comments Download
A webkit/fileapi/file_system_operation_context.h View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
M webkit/fileapi/webkit_fileapi.gypi View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
Dai Mikurube (google.com)
Picked out fileapi::FileSystemFileUtil -related parts from http://codereview.chromium.org/6286038/ and http://codereview.chromium.org/6471019/ . (i.e. factored out Obfuscation- and ...
9 years, 9 months ago (2011-03-02 23:35:46 UTC) #1
ericu
Are those unit tests you mentioned close enough to ready that you can include them ...
9 years, 9 months ago (2011-03-03 01:05:11 UTC) #2
Dai Mikurube (google.com)
Thanks for your review. :) Yes, it changes nothing, but untested. Unit tests are far ...
9 years, 9 months ago (2011-03-03 01:13:48 UTC) #3
ericu
http://codereview.chromium.org/6604020/diff/1/webkit/fileapi/file_system_file_util_proxy.cc File webkit/fileapi/file_system_file_util_proxy.cc (right): http://codereview.chromium.org/6604020/diff/1/webkit/fileapi/file_system_file_util_proxy.cc#newcode54 webkit/fileapi/file_system_file_util_proxy.cc:54: return fileapi::FileSystemFileUtil::GetInstance(); On 2011/03/03 01:05:11, ericu wrote: > Rather ...
9 years, 9 months ago (2011-03-03 02:34:07 UTC) #4
kinuko
On Thu, Mar 3, 2011 at 10:05 AM, <ericu@chromium.org> wrote: > Are those unit tests ...
9 years, 9 months ago (2011-03-03 02:41:47 UTC) #5
ericu
On Wed, Mar 2, 2011 at 6:41 PM, Kinuko Yasuda <kinuko@chromium.org> wrote: > On Thu, ...
9 years, 9 months ago (2011-03-03 02:46:55 UTC) #6
kinuko
On Wed, Mar 2, 2011 at 6:46 PM, Eric Uhrhane <ericu@chromium.org> wrote: > On Wed, ...
9 years, 9 months ago (2011-03-03 03:45:23 UTC) #7
ericu
On Wed, Mar 2, 2011 at 7:44 PM, Kinuko Yasuda <kinuko@chromium.org> wrote: > On Wed, ...
9 years, 9 months ago (2011-03-03 03:53:01 UTC) #8
Dai Mikurube (google.com)
Thank you for the comments. :) Ok, I've reflected the comments and uploaded it without ...
9 years, 9 months ago (2011-03-03 20:24:52 UTC) #9
ericu
LGTM other than that one nit. http://codereview.chromium.org/6604020/diff/1/webkit/fileapi/file_system_file_util.cc File webkit/fileapi/file_system_file_util.cc (right): http://codereview.chromium.org/6604020/diff/1/webkit/fileapi/file_system_file_util.cc#newcode16 webkit/fileapi/file_system_file_util.cc:16: // or not ...
9 years, 9 months ago (2011-03-03 21:27:48 UTC) #10
kinuko
looking good. I think we'd better have a few more comments in the code. http://codereview.chromium.org/6604020/diff/6003/webkit/fileapi/file_system_file_util.cc ...
9 years, 9 months ago (2011-03-03 21:29:22 UTC) #11
Dai Mikurube (google.com)
Thank you. :) http://codereview.chromium.org/6604020/diff/6003/webkit/fileapi/file_system_file_util.cc File webkit/fileapi/file_system_file_util.cc (right): http://codereview.chromium.org/6604020/diff/6003/webkit/fileapi/file_system_file_util.cc#newcode73 webkit/fileapi/file_system_file_util.cc:73: On 2011/03/03 21:29:22, kinuko wrote: > ...
9 years, 9 months ago (2011-03-03 22:19:10 UTC) #12
ericu
http://codereview.chromium.org/6604020/diff/6003/webkit/fileapi/file_system_file_util_proxy.cc File webkit/fileapi/file_system_file_util_proxy.cc (right): http://codereview.chromium.org/6604020/diff/6003/webkit/fileapi/file_system_file_util_proxy.cc#newcode55 webkit/fileapi/file_system_file_util_proxy.cc:55: return file_system_file_util_; On 2011/03/03 22:19:10, Dai Mikurube wrote: > ...
9 years, 9 months ago (2011-03-03 23:13:22 UTC) #13
kinuko
On 2011/03/03 23:13:22, ericu wrote: > http://codereview.chromium.org/6604020/diff/6003/webkit/fileapi/file_system_file_util_proxy.cc > File webkit/fileapi/file_system_file_util_proxy.cc (right): > > http://codereview.chromium.org/6604020/diff/6003/webkit/fileapi/file_system_file_util_proxy.cc#newcode55 > ...
9 years, 9 months ago (2011-03-03 23:17:03 UTC) #14
ericu
On Thu, Mar 3, 2011 at 3:17 PM, <kinuko@chromium.org> wrote: > On 2011/03/03 23:13:22, ericu ...
9 years, 9 months ago (2011-03-03 23:22:55 UTC) #15
kinuko
On 2011/03/03 23:22:55, ericu wrote: > > Can we pass the context by value? &nbsp;Passing ...
9 years, 9 months ago (2011-03-03 23:45:30 UTC) #16
ericu
On Thu, Mar 3, 2011 at 3:45 PM, <kinuko@chromium.org> wrote: > On 2011/03/03 23:22:55, ericu ...
9 years, 9 months ago (2011-03-03 23:56:13 UTC) #17
kinuko
On Thu, Mar 3, 2011 at 3:45 PM, <kinuko@chromium.org> wrote: > On 2011/03/03 23:22:55, ericu ...
9 years, 9 months ago (2011-03-03 23:56:19 UTC) #18
kinuko
On Thu, Mar 3, 2011 at 3:55 PM, Eric Uhrhane <ericu@chromium.org> wrote: > On Thu, ...
9 years, 9 months ago (2011-03-04 00:00:07 UTC) #19
Dai Mikurube (google.com)
Ok, I've changed FileSystemOperationContext to be passed by value to the File thread. Passing-by-value (copying) ...
9 years, 9 months ago (2011-03-04 01:00:32 UTC) #20
ericu
The rest LGTM if you can get the trybots happier. http://codereview.chromium.org/6604020/diff/4006/webkit/fileapi/file_system_file_util_proxy.cc File webkit/fileapi/file_system_file_util_proxy.cc (right): http://codereview.chromium.org/6604020/diff/4006/webkit/fileapi/file_system_file_util_proxy.cc#newcode94 ...
9 years, 9 months ago (2011-03-04 01:05:34 UTC) #21
Dai Mikurube (google.com)
On 2011/03/04 01:05:34, ericu wrote: > The rest LGTM if you can get the trybots ...
9 years, 9 months ago (2011-03-04 01:56:51 UTC) #22
Dai Mikurube (google.com)
I missed uploading newly added files. Do it again.
9 years, 9 months ago (2011-03-04 02:05:57 UTC) #23
Dai Mikurube (google.com)
I've uploaded again.
9 years, 9 months ago (2011-03-04 02:13:56 UTC) #24
ericu
On Thu, Mar 3, 2011 at 5:56 PM, <dmikurube@google.com> wrote: > On 2011/03/04 01:05:34, ericu ...
9 years, 9 months ago (2011-03-04 02:52:04 UTC) #25
kinuko
lgtm http://codereview.chromium.org/6604020/diff/16001/webkit/fileapi/file_system_operation.h File webkit/fileapi/file_system_operation.h (right): http://codereview.chromium.org/6604020/diff/16001/webkit/fileapi/file_system_operation.h#newcode176 webkit/fileapi/file_system_operation.h:176: scoped_ptr<FileSystemOperationContext> file_system_operation_context_; Does this need to be scoped_ptr?
9 years, 9 months ago (2011-03-04 03:15:18 UTC) #26
ericu
On Thu, Mar 3, 2011 at 7:15 PM, <kinuko@chromium.org> wrote: > lgtm > > > ...
9 years, 9 months ago (2011-03-04 03:25:10 UTC) #27
Dai Mikurube (google.com)
On 2011/03/04 03:25:10, ericu wrote: > On Thu, Mar 3, 2011 at 7:15 PM, <mailto:kinuko@chromium.org> ...
9 years, 9 months ago (2011-03-04 03:29:26 UTC) #28
ericu
9 years, 9 months ago (2011-03-04 03:31:43 UTC) #29
On Thu, Mar 3, 2011 at 7:29 PM,  <dmikurube@google.com> wrote:
> On 2011/03/04 03:25:10, ericu wrote:
>>
>> On Thu, Mar 3, 2011 at 7:15 PM,  <mailto:kinuko@chromium.org> wrote:
>> > lgtm
>> >
>> >
>> >
>
>
http://codereview.chromium.org/6604020/diff/16001/webkit/fileapi/file_system_...
>>
>> > File webkit/fileapi/file_system_operation.h (right):
>> >
>> >
>
>
http://codereview.chromium.org/6604020/diff/16001/webkit/fileapi/file_system_...
>>
>> > webkit/fileapi/file_system_operation.h:176:
>> > scoped_ptr<FileSystemOperationContext> file_system_operation_context_;
>> > Does this need to be scoped_ptr?
>
>> Good point.  Just a simple variable would work.
>
>> > http://codereview.chromium.org/6604020/
>> >
>
> Agreed. Made it a simple variable.
>
> http://codereview.chromium.org/6604020/
>

Great!  Fire when ready.

Powered by Google App Engine
This is Rietveld 408576698