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

Unified Diff: src/platform/update_engine/file_writer.h

Issue 1800009: AU: SplitWriter class for parsing our full update files. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: fixes for review Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/update_engine/delta_performer.cc ('k') | src/platform/update_engine/file_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/update_engine/file_writer.h
diff --git a/src/platform/update_engine/file_writer.h b/src/platform/update_engine/file_writer.h
index 37207d0472e6da9972803860c6080facd2f8aa72..ebb8535113eb9bf3098f7382ebddf4d2d6646844 100644
--- a/src/platform/update_engine/file_writer.h
+++ b/src/platform/update_engine/file_writer.h
@@ -29,7 +29,7 @@ class FileWriter {
// Wrapper around write. Returns bytes written on success or
// -errno on error.
- virtual int Write(const void* bytes, size_t count) = 0;
+ virtual ssize_t Write(const void* bytes, size_t count) = 0;
// Wrapper around close. Returns 0 on success or -errno on error.
virtual int Close() = 0;
@@ -47,7 +47,7 @@ class DirectFileWriter : public FileWriter {
virtual ~DirectFileWriter() {}
virtual int Open(const char* path, int flags, mode_t mode);
- virtual int Write(const void* bytes, size_t count);
+ virtual ssize_t Write(const void* bytes, size_t count);
virtual int Close();
int fd() const { return fd_; }
« no previous file with comments | « src/platform/update_engine/delta_performer.cc ('k') | src/platform/update_engine/file_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698