OLD | NEW |
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DELTA_PERFORMER_H__ | 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_PERFORMER_H__ |
6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_PERFORMER_H__ | 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_PERFORMER_H__ |
7 | 7 |
8 #include <inttypes.h> | 8 #include <inttypes.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 13 matching lines...) Expand all Loading... |
24 // update itself should be passed in in chunks as it is received. | 24 // update itself should be passed in in chunks as it is received. |
25 | 25 |
26 class DeltaPerformer : public FileWriter { | 26 class DeltaPerformer : public FileWriter { |
27 public: | 27 public: |
28 enum MetadataParseResult { | 28 enum MetadataParseResult { |
29 kMetadataParseSuccess, | 29 kMetadataParseSuccess, |
30 kMetadataParseError, | 30 kMetadataParseError, |
31 kMetadataParseInsufficientData, | 31 kMetadataParseInsufficientData, |
32 }; | 32 }; |
33 | 33 |
| 34 static const char kUpdatePayloadPublicKeyPath[]; |
| 35 |
34 DeltaPerformer(PrefsInterface* prefs) | 36 DeltaPerformer(PrefsInterface* prefs) |
35 : prefs_(prefs), | 37 : prefs_(prefs), |
36 fd_(-1), | 38 fd_(-1), |
37 kernel_fd_(-1), | 39 kernel_fd_(-1), |
38 manifest_valid_(false), | 40 manifest_valid_(false), |
39 manifest_metadata_size_(0), | 41 manifest_metadata_size_(0), |
40 next_operation_num_(0), | 42 next_operation_num_(0), |
41 buffer_offset_(0), | 43 buffer_offset_(0), |
42 last_updated_buffer_offset_(kuint64max), | 44 last_updated_buffer_offset_(kuint64max), |
43 block_size_(0) {} | 45 block_size_(0) {} |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 // verification. | 224 // verification. |
223 std::vector<char> current_kernel_hash_; | 225 std::vector<char> current_kernel_hash_; |
224 std::vector<char> current_rootfs_hash_; | 226 std::vector<char> current_rootfs_hash_; |
225 | 227 |
226 DISALLOW_COPY_AND_ASSIGN(DeltaPerformer); | 228 DISALLOW_COPY_AND_ASSIGN(DeltaPerformer); |
227 }; | 229 }; |
228 | 230 |
229 } // namespace chromeos_update_engine | 231 } // namespace chromeos_update_engine |
230 | 232 |
231 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_PERFORMER_H__ | 233 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_PERFORMER_H__ |
OLD | NEW |