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_EXTENT_WRITER_H__ | 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_EXTENT_WRITER_H__ |
6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_EXTENT_WRITER_H__ | 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_EXTENT_WRITER_H__ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 #include "chromeos/obsolete_logging.h" | 9 #include "base/logging.h" |
10 #include "update_engine/update_metadata.pb.h" | 10 #include "update_engine/update_metadata.pb.h" |
11 #include "update_engine/utils.h" | 11 #include "update_engine/utils.h" |
12 | 12 |
13 // ExtentWriter is an abstract class which synchronously writes to a given | 13 // ExtentWriter is an abstract class which synchronously writes to a given |
14 // file descriptor at the extents given. | 14 // file descriptor at the extents given. |
15 | 15 |
16 namespace chromeos_update_engine { | 16 namespace chromeos_update_engine { |
17 | 17 |
18 class ExtentWriter { | 18 class ExtentWriter { |
19 public: | 19 public: |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
113 private: | 113 private: |
114 ExtentWriter* underlying_extent_writer_; // The underlying ExtentWriter. | 114 ExtentWriter* underlying_extent_writer_; // The underlying ExtentWriter. |
115 size_t block_size_; | 115 size_t block_size_; |
116 size_t bytes_written_mod_block_size_; | 116 size_t bytes_written_mod_block_size_; |
117 }; | 117 }; |
118 | 118 |
119 } // namespace chromeos_update_engine | 119 } // namespace chromeos_update_engine |
120 | 120 |
121 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_EXTENT_WRITER_H__ | 121 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_EXTENT_WRITER_H__ |
OLD | NEW |