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

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

Issue 1718001: AU: Class to perform delta updates. (Closed)
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
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 c506c01f3b97297107714fbd33bfd8bed7f9922c..37207d0472e6da9972803860c6080facd2f8aa72 100644
--- a/src/platform/update_engine/file_writer.h
+++ b/src/platform/update_engine/file_writer.h
@@ -21,6 +21,7 @@ namespace chromeos_update_engine {
class FileWriter {
public:
+ FileWriter() {}
virtual ~FileWriter() {}
// Wrapper around open. Returns 0 on success or -errno on error.
@@ -32,6 +33,9 @@ class FileWriter {
// Wrapper around close. Returns 0 on success or -errno on error.
virtual int Close() = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(FileWriter);
};
// Direct file writer is probably the simplest FileWriter implementation.
@@ -50,6 +54,8 @@ class DirectFileWriter : public FileWriter {
private:
int fd_;
+
+ DISALLOW_COPY_AND_ASSIGN(DirectFileWriter);
};
class ScopedFileWriterCloser {
@@ -63,6 +69,8 @@ class ScopedFileWriterCloser {
}
private:
FileWriter* writer_;
+
+ DISALLOW_COPY_AND_ASSIGN(ScopedFileWriterCloser);
};
} // namespace chromeos_update_engine

Powered by Google App Engine
This is Rietveld 408576698