| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_FILE_WRITER_H__ | 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_FILE_WRITER_H__ |
| 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_FILE_WRITER_H__ | 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_FILE_WRITER_H__ |
| 7 | 7 |
| 8 #include <sys/types.h> | 8 #include <sys/types.h> |
| 9 #include <sys/stat.h> | 9 #include <sys/stat.h> |
| 10 #include <fcntl.h> | 10 #include <fcntl.h> |
| 11 #include <unistd.h> | 11 #include <unistd.h> |
| 12 #include "chromeos/obsolete_logging.h" | 12 #include "base/logging.h" |
| 13 #include "update_engine/utils.h" | 13 #include "update_engine/utils.h" |
| 14 | 14 |
| 15 // FileWriter is a class that is used to (synchronously, for now) write to | 15 // FileWriter is a class that is used to (synchronously, for now) write to |
| 16 // a file. This file is a thin wrapper around open/write/close system calls, | 16 // a file. This file is a thin wrapper around open/write/close system calls, |
| 17 // but provides and interface that can be customized by subclasses that wish | 17 // but provides and interface that can be customized by subclasses that wish |
| 18 // to filter the data. | 18 // to filter the data. |
| 19 | 19 |
| 20 namespace chromeos_update_engine { | 20 namespace chromeos_update_engine { |
| 21 | 21 |
| 22 class FileWriter { | 22 class FileWriter { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 } | 69 } |
| 70 private: | 70 private: |
| 71 FileWriter* writer_; | 71 FileWriter* writer_; |
| 72 | 72 |
| 73 DISALLOW_COPY_AND_ASSIGN(ScopedFileWriterCloser); | 73 DISALLOW_COPY_AND_ASSIGN(ScopedFileWriterCloser); |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 } // namespace chromeos_update_engine | 76 } // namespace chromeos_update_engine |
| 77 | 77 |
| 78 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_FILE_WRITER_H__ | 78 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_FILE_WRITER_H__ |
| OLD | NEW |