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

Issue 3212002: Changes for browser-side implementation for file api.... (Closed)

Created:
10 years, 3 months ago by Kavita Kanetkar
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org, brettw-cc_chromium.org, michaeln, Eric U.
Visibility:
Public.

Description

Changes for browser-side implementation for file api. BUG=32277 TEST=Separate CL for unit test. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=58312

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 97

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 20

Patch Set 6 : '' #

Total comments: 6

Patch Set 7 : '' #

Total comments: 18

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+610 lines, -26 lines) Patch
M base/file_util_proxy.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +61 lines, -14 lines 3 comments Download
M base/file_util_proxy.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +239 lines, -10 lines 0 comments Download
M base/platform_file.h View 1 2 3 7 8 9 10 1 chunk +3 lines, -2 lines 0 comments Download
A chrome/browser/file_system/file_system_backend.h View 1 2 3 4 5 6 7 1 chunk +83 lines, -0 lines 0 comments Download
A chrome/browser/file_system/file_system_backend.cc View 1 2 3 4 5 6 7 1 chunk +188 lines, -0 lines 0 comments Download
A chrome/browser/file_system/file_system_backend_client.h View 1 2 3 4 5 6 1 chunk +32 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 1 comment Download

Messages

Total messages: 20 (0 generated)
Kavita Kanetkar
Dumi please see the base/ Kinuko please see base/file_util_proxy for correct return codes, and the ...
10 years, 3 months ago (2010-08-27 02:15:32 UTC) #1
kinuko
Thanks for working on this - writing generic file operations and defining error code is ...
10 years, 3 months ago (2010-08-27 05:19:02 UTC) #2
kinuko
http://codereview.chromium.org/3212002/diff/16001/7005 File chrome/browser/file_system/file_system_backend.cc (right): http://codereview.chromium.org/3212002/diff/16001/7005#newcode124 chrome/browser/file_system/file_system_backend.cc:124: int rv, base::PassPlatformFile file, bool created) { Hmm... if ...
10 years, 3 months ago (2010-08-27 05:33:48 UTC) #3
kinuko
http://codereview.chromium.org/3212002/diff/16001/7002 File base/file_util_proxy.cc (right): http://codereview.chromium.org/3212002/diff/16001/7002#newcode445 base/file_util_proxy.cc:445: modification_time_ = file_info.last_modified.ToDoubleT(); I think it'd make more sense ...
10 years, 3 months ago (2010-08-27 06:15:43 UTC) #4
dumi
i'm assuming kinuko is reviewing the code in chrome/browser/file_system, so i have only a few ...
10 years, 3 months ago (2010-08-27 19:30:30 UTC) #5
dumi
http://codereview.chromium.org/3212002/diff/16001/7002 File base/file_util_proxy.cc (right): http://codereview.chromium.org/3212002/diff/16001/7002#newcode297 base/file_util_proxy.cc:297: if (!DirectoryExists(dest_file_path_)) { > 4. if src_file_path == dest_file_path, ...
10 years, 3 months ago (2010-08-27 19:48:52 UTC) #6
dumi
http://codereview.chromium.org/3212002/diff/16001/7004 File base/platform_file.h (right): http://codereview.chromium.org/3212002/diff/16001/7004#newcode47 base/platform_file.h:47: PLATFORM_FILE_MODIFICATION_DISALLOWED_ERROR = -3, one more minor comment: what do ...
10 years, 3 months ago (2010-08-27 20:17:59 UTC) #7
kinuko
http://codereview.chromium.org/3212002/diff/16001/7002 File base/file_util_proxy.cc (right): http://codereview.chromium.org/3212002/diff/16001/7002#newcode108 base/file_util_proxy.cc:108: set_error_code(base::PLATFORM_FILE_MODIFICATION_DISALLOWED_ERROR); On 2010/08/27 19:30:31, dumi wrote: > i just ...
10 years, 3 months ago (2010-08-27 20:20:35 UTC) #8
kinuko
On 2010/08/27 20:17:59, dumi wrote: > http://codereview.chromium.org/3212002/diff/16001/7004 > File base/platform_file.h (right): > > http://codereview.chromium.org/3212002/diff/16001/7004#newcode47 > ...
10 years, 3 months ago (2010-08-27 20:22:30 UTC) #9
Kavita Kanetkar
Dumi - I have patched your CL and will wait to submit - I have ...
10 years, 3 months ago (2010-08-30 20:44:40 UTC) #10
kinuko
looking good; some more comments. http://codereview.chromium.org/3212002/diff/16001/7006 File chrome/browser/file_system/file_system_backend.h (right): http://codereview.chromium.org/3212002/diff/16001/7006#newcode25 chrome/browser/file_system/file_system_backend.h:25: void CreateDirectory( On 2010/08/27 ...
10 years, 3 months ago (2010-08-30 21:51:35 UTC) #11
Kavita Kanetkar
Thanks. Changed the metadata to now give you the entire file info instead of just ...
10 years, 3 months ago (2010-08-30 23:54:29 UTC) #12
kinuko
LGTM for error codes & browser/file_system/ part. http://codereview.chromium.org/3212002/diff/37001/38001 File base/file_util_proxy.cc (right): http://codereview.chromium.org/3212002/diff/37001/38001#newcode236 base/file_util_proxy.cc:236: // |src_file_path| ...
10 years, 3 months ago (2010-08-31 00:29:25 UTC) #13
Kavita Kanetkar
Dumi, I have your changes now. I will wait for your LGTM as well. Thanks ...
10 years, 3 months ago (2010-08-31 02:29:49 UTC) #14
dumi
i'm _really_ hoping to submit my patch tonight... sorry it's taking so long... http://codereview.chromium.org/3212002/diff/17003/16002 File ...
10 years, 3 months ago (2010-08-31 04:19:34 UTC) #15
dumi
http://codereview.chromium.org/3212002/diff/17003/16002 File base/file_util_proxy.cc (right): http://codereview.chromium.org/3212002/diff/17003/16002#newcode298 base/file_util_proxy.cc:298: if (!file_util::PathExists(src_file_path_)) { On 2010/08/31 04:19:34, dumi wrote: > ...
10 years, 3 months ago (2010-08-31 04:26:03 UTC) #16
kkanetkar
I tried replying through the codereview.chromium it didn't work. Dumi please take a look - ...
10 years, 3 months ago (2010-08-31 20:57:11 UTC) #17
dumi
LGTM!!! http://codereview.chromium.org/3212002/diff/60001/61007 File chrome/chrome_browser.gypi (right): http://codereview.chromium.org/3212002/diff/60001/61007#newcode1511 chrome/chrome_browser.gypi:1511: 'browser/file_system/file_system_backend.h', remove.
10 years, 3 months ago (2010-09-01 23:11:52 UTC) #18
darin (slow to review)
http://codereview.chromium.org/3212002/diff/60001/61002 File base/file_util_proxy.h (right): http://codereview.chromium.org/3212002/diff/60001/61002#newcode23 base/file_util_proxy.h:23: namespace file_util_proxy { introducing the file_util_proxy namespace like this ...
10 years, 1 month ago (2010-11-01 17:28:38 UTC) #19
Kavita Kanetkar
10 years, 1 month ago (2010-11-01 19:00:30 UTC) #20
http://codereview.chromium.org/3212002/diff/60001/61002
File base/file_util_proxy.h (right):

http://codereview.chromium.org/3212002/diff/60001/61002#newcode23
base/file_util_proxy.h:23: namespace file_util_proxy {
Sending a follow-up CL to move this within the FileUtilProxy class.

On 2010/11/01 17:28:38, darin wrote:
> introducing the file_util_proxy namespace like this is kind of awkward.  why
not
> just make Entry be defined within the FileUtilProxy class?  were you trying to
> support forward declaring Entry without including this header file?

Powered by Google App Engine
This is Rietveld 408576698