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

Issue 10126004: fileapi: FileWriter and LocalFileWriter. (Closed)

Created:
8 years, 8 months ago by kinaba
Modified:
8 years, 8 months ago
Reviewers:
kinuko
CC:
chromium-reviews, pam+watch_chromium.org, kinuko+watch, darin-cc_chromium.org, Dai Mikurube (NOT FULLTIME), tzik, zel
Visibility:
Public.

Description

fileapi: FileWriter and LocalFileWriter. We need these write stream interface for implementing generic cross-filesystem operation and to eventually deprecate OpenFileSystem::Write and PlatformFile related interface. BUG=123993 TEST=unit_tests --gtest_filter='*LocalFileWriter*' Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133892

Patch Set 1 : First working version. #

Total comments: 24

Patch Set 2 : Drop Seek(), loosen Cancel() and destructor's requirements, and add constuctor parameters. #

Total comments: 12

Patch Set 3 : Reflect review. #

Total comments: 10

Patch Set 4 : Drop CREAET_OR_TRUNCATE mode. Reflect review. #

Total comments: 4

Patch Set 5 : Review. #

Patch Set 6 : #include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+493 lines, -0 lines) Patch
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A webkit/fileapi/file_writer.h View 1 2 3 4 1 chunk +56 lines, -0 lines 0 comments Download
A webkit/fileapi/local_file_writer.h View 1 2 3 1 chunk +83 lines, -0 lines 0 comments Download
A webkit/fileapi/local_file_writer.cc View 1 2 3 4 5 1 chunk +190 lines, -0 lines 0 comments Download
A webkit/fileapi/local_file_writer_unittest.cc View 1 2 3 1 chunk +160 lines, -0 lines 0 comments Download
M webkit/fileapi/webkit_fileapi.gypi View 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
kinaba
8 years, 8 months ago (2012-04-20 04:46:17 UTC) #1
kinuko
Thanks! Added my first comments. http://codereview.chromium.org/10126004/diff/2001/webkit/fileapi/file_writer.h File webkit/fileapi/file_writer.h (right): http://codereview.chromium.org/10126004/diff/2001/webkit/fileapi/file_writer.h#newcode22 webkit/fileapi/file_writer.h:22: // Cancels the in-flight ...
8 years, 8 months ago (2012-04-20 11:26:36 UTC) #2
kinaba
Thanks for many feedbacks! Seek, Cancel and destructors' are changed per your suggestions. In addition, ...
8 years, 8 months ago (2012-04-23 08:56:41 UTC) #3
kinuko
The code looking good to me. Comments on the test code will come later. http://codereview.chromium.org/10126004/diff/8001/webkit/fileapi/file_writer.h ...
8 years, 8 months ago (2012-04-23 09:29:57 UTC) #4
kinaba
Updated. Other than that, the win_rel trybot failure is a real failure. I'll fix it ...
8 years, 8 months ago (2012-04-23 10:55:14 UTC) #5
kinuko
As for the win_rel failure please see the inline comment about message loop type. http://codereview.chromium.org/10126004/diff/8001/webkit/fileapi/local_file_writer.h ...
8 years, 8 months ago (2012-04-23 12:50:28 UTC) #6
kinuko
http://codereview.chromium.org/10126004/diff/8001/webkit/fileapi/local_file_writer.h File webkit/fileapi/local_file_writer.h (right): http://codereview.chromium.org/10126004/diff/8001/webkit/fileapi/local_file_writer.h#newcode34 webkit/fileapi/local_file_writer.h:34: // |initial_offset|. If |mode| is |CREATE|, |file_path| is set ...
8 years, 8 months ago (2012-04-23 13:13:47 UTC) #7
kinaba
Cc'ing Zel.
8 years, 8 months ago (2012-04-24 00:44:04 UTC) #8
kinaba
Addressed all comments. Thank you for the advises! For open/creation mode, let me put it ...
8 years, 8 months ago (2012-04-24 07:35:03 UTC) #9
kinuko
lgtm. http://codereview.chromium.org/10126004/diff/27001/webkit/fileapi/file_writer.h File webkit/fileapi/file_writer.h (right): http://codereview.chromium.org/10126004/diff/27001/webkit/fileapi/file_writer.h#newcode11 webkit/fileapi/file_writer.h:11: #include "net/base/net_errors.h" This file is probably not needed ...
8 years, 8 months ago (2012-04-24 09:26:50 UTC) #10
kinaba
http://codereview.chromium.org/10126004/diff/27001/webkit/fileapi/file_writer.h File webkit/fileapi/file_writer.h (right): http://codereview.chromium.org/10126004/diff/27001/webkit/fileapi/file_writer.h#newcode11 webkit/fileapi/file_writer.h:11: #include "net/base/net_errors.h" On 2012/04/24 09:26:50, kinuko wrote: > This ...
8 years, 8 months ago (2012-04-24 09:47:42 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinaba@chromium.org/10126004/33002
8 years, 8 months ago (2012-04-25 09:40:59 UTC) #12
commit-bot: I haz the power
8 years, 8 months ago (2012-04-25 11:00:02 UTC) #13
Change committed as 133892

Powered by Google App Engine
This is Rietveld 408576698