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

Issue 1363183004: Files services library: Add an "output stream" file impl helper class. (Closed)

Created:
5 years, 2 months ago by viettrungluu
Modified:
5 years, 2 months ago
Reviewers:
vardhan
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Files services library: Add an "output stream" file impl helper class. Notes: * This is an "impl" library, not a client library. I.e., it's for those who are implementing |mojo::files::File|s, not using them. This is a bit unusual, so maybe it should live in a subdirectory of mojo/services/files/public/cpp or something. * Maybe the name of the class should also have "impl" in its name, e.g., "OutputStreamFileImpl"? But have "impl" in a "public" class in a library would be strange. Maybe it should live in a namespace? Still to do (separately): * Fill in parts of the implementation, like Dup and the data pipe write methods. * Add "input stream" and "input/output stream" versions of this. * Convert things, like moterm, to use this (or an input/output version of this). The benefit is that as the implementation of this class gets filled in, things using it will automatically get a more complete implementation as well. R=vardhan@google.com Committed: https://chromium.googlesource.com/external/mojo/+/b8fecbf5a2ffa456a6056c2478fe9477d35ce389

Patch Set 1 #

Total comments: 1

Patch Set 2 : files_impl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+701 lines, -4 lines) Patch
M apps/moterm/moterm_driver.h View 1 chunk +2 lines, -2 lines 0 comments Download
M apps/moterm/moterm_driver.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A mojo/services/files/public/cpp/BUILD.gn View 1 1 chunk +55 lines, -0 lines 0 comments Download
A mojo/services/files/public/cpp/lib/output_stream_file.cc View 1 1 chunk +237 lines, -0 lines 0 comments Download
A mojo/services/files/public/cpp/output_stream_file.h View 1 1 chunk +114 lines, -0 lines 0 comments Download
A mojo/services/files/public/cpp/tests/output_stream_file_unittest.cc View 1 1 chunk +287 lines, -0 lines 0 comments Download
M mojo/tools/data/apptests View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
viettrungluu
5 years, 2 months ago (2015-09-25 16:47:42 UTC) #1
vardhan
lgtm w/ a suggestion https://codereview.chromium.org/1363183004/diff/1/mojo/services/files/public/cpp/output_stream_file.h File mojo/services/files/public/cpp/output_stream_file.h (right): https://codereview.chromium.org/1363183004/diff/1/mojo/services/files/public/cpp/output_stream_file.h#newcode22 mojo/services/files/public/cpp/output_stream_file.h:22: class OutputStreamFile : public mojo::files::File ...
5 years, 2 months ago (2015-09-25 17:19:16 UTC) #2
viettrungluu
On 2015/09/25 17:19:16, vardhan wrote: > lgtm w/ a suggestion > > https://codereview.chromium.org/1363183004/diff/1/mojo/services/files/public/cpp/output_stream_file.h > File ...
5 years, 2 months ago (2015-09-25 17:32:46 UTC) #3
viettrungluu
On 2015/09/25 17:32:46, viettrungluu wrote: > On 2015/09/25 17:19:16, vardhan wrote: > > lgtm w/ ...
5 years, 2 months ago (2015-09-25 17:48:09 UTC) #4
viettrungluu
On 2015/09/25 17:48:09, viettrungluu wrote: > On 2015/09/25 17:32:46, viettrungluu wrote: > > On 2015/09/25 ...
5 years, 2 months ago (2015-09-25 17:48:27 UTC) #5
viettrungluu
On 2015/09/25 17:48:27, viettrungluu wrote: > On 2015/09/25 17:48:09, viettrungluu wrote: > > On 2015/09/25 ...
5 years, 2 months ago (2015-09-25 17:49:50 UTC) #6
viettrungluu
OK, PTAL.
5 years, 2 months ago (2015-09-25 17:57:00 UTC) #7
vardhan
lgtm
5 years, 2 months ago (2015-09-25 18:08:39 UTC) #8
viettrungluu
5 years, 2 months ago (2015-09-25 18:11:31 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
b8fecbf5a2ffa456a6056c2478fe9477d35ce389 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698