blob: 4338646bf9ca005a8b0997ecc2382b8b9943eb78 [file] [log] [blame]
Andrew de los Reyes09e56d62010-04-23 13:45:53 -07001// 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
3// found in the LICENSE file.
4
Alex Deymo759c2752014-03-17 21:09:36 -07005#ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_PERFORMER_H_
6#define CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_PERFORMER_H_
Andrew de los Reyes09e56d62010-04-23 13:45:53 -07007
8#include <inttypes.h>
Darin Petkovd7061ab2010-10-06 14:37:09 -07009
Andrew de los Reyes09e56d62010-04-23 13:45:53 -070010#include <vector>
Darin Petkovd7061ab2010-10-06 14:37:09 -070011
Alex Vakulenko75039d72014-03-25 12:36:28 -070012#include <base/time/time.h>
Andrew de los Reyes09e56d62010-04-23 13:45:53 -070013#include <google/protobuf/repeated_field.h>
Andrew de los Reyes353777c2010-10-08 10:34:30 -070014#include <gtest/gtest_prod.h> // for FRIEND_TEST
Darin Petkovd7061ab2010-10-06 14:37:09 -070015
Andrew de los Reyes09e56d62010-04-23 13:45:53 -070016#include "update_engine/file_writer.h"
Jay Srinivasan51dcf262012-09-13 17:24:32 -070017#include "update_engine/install_plan.h"
Darin Petkovd7061ab2010-10-06 14:37:09 -070018#include "update_engine/omaha_hash_calculator.h"
Jay Srinivasanf0572052012-10-23 18:12:56 -070019#include "update_engine/system_state.h"
Andrew de los Reyes09e56d62010-04-23 13:45:53 -070020#include "update_engine/update_metadata.pb.h"
21
22namespace chromeos_update_engine {
23
Darin Petkov73058b42010-10-06 16:32:19 -070024class PrefsInterface;
25
Andrew de los Reyes09e56d62010-04-23 13:45:53 -070026// This class performs the actions in a delta update synchronously. The delta
27// update itself should be passed in in chunks as it is received.
28
29class DeltaPerformer : public FileWriter {
30 public:
Darin Petkov9574f7e2011-01-13 10:48:12 -080031 enum MetadataParseResult {
32 kMetadataParseSuccess,
33 kMetadataParseError,
34 kMetadataParseInsufficientData,
35 };
36
Jay Srinivasanf4318702012-09-24 11:56:24 -070037 static const uint64_t kDeltaVersionSize;
38 static const uint64_t kDeltaManifestSizeSize;
Don Garrett4d039442013-10-28 18:40:06 -070039 static const uint64_t kSupportedMajorPayloadVersion;
Don Garrettb8dd1d92013-11-22 17:40:02 -080040 static const uint64_t kSupportedMinorPayloadVersion;
41 static const uint64_t kFullPayloadMinorVersion;
Darin Petkovabc7bc02011-02-23 14:39:43 -080042 static const char kUpdatePayloadPublicKeyPath[];
43
Gilad Arnold8a86fa52013-01-15 12:35:05 -080044 // Defines the granularity of progress logging in terms of how many "completed
45 // chunks" we want to report at the most.
46 static const unsigned kProgressLogMaxChunks;
47 // Defines a timeout since the last progress was logged after which we want to
48 // force another log message (even if the current chunk was not completed).
49 static const unsigned kProgressLogTimeoutSeconds;
50 // These define the relative weights (0-100) we give to the different work
51 // components associated with an update when computing an overall progress.
52 // Currently they include the download progress and the number of completed
53 // operations. They must add up to one hundred (100).
54 static const unsigned kProgressDownloadWeight;
55 static const unsigned kProgressOperationsWeight;
56
Jay Srinivasanf0572052012-10-23 18:12:56 -070057 DeltaPerformer(PrefsInterface* prefs,
58 SystemState* system_state,
59 InstallPlan* install_plan)
Darin Petkov73058b42010-10-06 16:32:19 -070060 : prefs_(prefs),
Jay Srinivasanf0572052012-10-23 18:12:56 -070061 system_state_(system_state),
Jay Srinivasan51dcf262012-09-13 17:24:32 -070062 install_plan_(install_plan),
Darin Petkov73058b42010-10-06 16:32:19 -070063 fd_(-1),
Andrew de los Reyesf4c7ef12010-04-30 10:37:00 -070064 kernel_fd_(-1),
Gilad Arnolddaa27402014-01-23 11:56:17 -080065 manifest_parsed_(false),
Andrew de los Reyes09e56d62010-04-23 13:45:53 -070066 manifest_valid_(false),
Gilad Arnoldfe133932014-01-14 12:25:50 -080067 metadata_size_(0),
Andrew de los Reyesf4c7ef12010-04-30 10:37:00 -070068 next_operation_num_(0),
Andrew de los Reyes09e56d62010-04-23 13:45:53 -070069 buffer_offset_(0),
Darin Petkov0406e402010-10-06 21:33:11 -070070 last_updated_buffer_offset_(kuint64max),
Jay Srinivasan51dcf262012-09-13 17:24:32 -070071 block_size_(0),
Gilad Arnold8a86fa52013-01-15 12:35:05 -080072 public_key_path_(kUpdatePayloadPublicKeyPath),
73 total_bytes_received_(0),
74 num_rootfs_operations_(0),
75 num_total_operations_(0),
76 overall_progress_(0),
77 last_progress_chunk_(0),
78 forced_progress_log_wait_(
79 base::TimeDelta::FromSeconds(kProgressLogTimeoutSeconds)) {}
Darin Petkovd7061ab2010-10-06 14:37:09 -070080
Andrew de los Reyesf4c7ef12010-04-30 10:37:00 -070081 // Opens the kernel. Should be called before or after Open(), but before
82 // Write(). The kernel file will be close()d when Close() is called.
83 bool OpenKernel(const char* kernel_path);
84
Andrew de los Reyes09e56d62010-04-23 13:45:53 -070085 // flags and mode ignored. Once Close()d, a DeltaPerformer can't be
86 // Open()ed again.
87 int Open(const char* path, int flags, mode_t mode);
88
Jay Srinivasan51dcf262012-09-13 17:24:32 -070089 // FileWriter's Write implementation where caller doesn't care about
90 // error codes.
91 bool Write(const void* bytes, size_t count) {
David Zeuthena99981f2013-04-29 13:42:47 -070092 ErrorCode error;
Jay Srinivasan51dcf262012-09-13 17:24:32 -070093 return Write(bytes, count, &error);
94 }
95
96 // FileWriter's Write implementation that returns a more specific |error| code
97 // in case of failures in Write operation.
David Zeuthena99981f2013-04-29 13:42:47 -070098 bool Write(const void* bytes, size_t count, ErrorCode *error);
Andrew de los Reyes09e56d62010-04-23 13:45:53 -070099
100 // Wrapper around close. Returns 0 on success or -errno on error.
Andrew de los Reyesf4c7ef12010-04-30 10:37:00 -0700101 // Closes both 'path' given to Open() and the kernel path.
Andrew de los Reyes09e56d62010-04-23 13:45:53 -0700102 int Close();
Darin Petkovd7061ab2010-10-06 14:37:09 -0700103
David Zeuthen8f191b22013-08-06 12:27:50 -0700104 // Returns |true| only if the manifest has been processed and it's valid.
105 bool IsManifestValid();
106
Darin Petkovd7061ab2010-10-06 14:37:09 -0700107 // Verifies the downloaded payload against the signed hash included in the
Jay Srinivasan51dcf262012-09-13 17:24:32 -0700108 // payload, against the update check hash (which is in base64 format) and
David Zeuthena99981f2013-04-29 13:42:47 -0700109 // size using the public key and returns kErrorCodeSuccess on success, an
Jay Srinivasan51dcf262012-09-13 17:24:32 -0700110 // error code on failure. This method should be called after closing the
111 // stream. Note this method skips the signed hash check if the public key is
David Zeuthena99981f2013-04-29 13:42:47 -0700112 // unavailable; it returns kErrorCodeSignedDeltaPayloadExpectedError if the
Jay Srinivasan51dcf262012-09-13 17:24:32 -0700113 // public key is available but the delta payload doesn't include a signature.
David Zeuthena99981f2013-04-29 13:42:47 -0700114 ErrorCode VerifyPayload(const std::string& update_check_response_hash,
Andrew de los Reyes771e1bd2011-08-30 14:47:23 -0700115 const uint64_t update_check_response_size);
Darin Petkovd7061ab2010-10-06 14:37:09 -0700116
Darin Petkov3aefa862010-12-07 14:45:00 -0800117 // Reads from the update manifest the expected sizes and hashes of the target
118 // kernel and rootfs partitions. These values can be used for applied update
119 // hash verification. This method must be called after the update manifest has
120 // been parsed (e.g., after closing the stream). Returns true on success, and
121 // false on failure (e.g., when the values are not present in the update
122 // manifest).
123 bool GetNewPartitionInfo(uint64_t* kernel_size,
124 std::vector<char>* kernel_hash,
125 uint64_t* rootfs_size,
126 std::vector<char>* rootfs_hash);
Darin Petkov2dd01092010-10-08 15:43:05 -0700127
Andrew de los Reyes09e56d62010-04-23 13:45:53 -0700128 // Converts an ordered collection of Extent objects which contain data of
129 // length full_length to a comma-separated string. For each Extent, the
130 // string will have the start offset and then the length in bytes.
131 // The length value of the last extent in the string may be short, since
132 // the full length of all extents in the string is capped to full_length.
133 // Also, an extent starting at kSparseHole, appears as -1 in the string.
134 // For example, if the Extents are {1, 1}, {4, 2}, {kSparseHole, 1},
135 // {0, 1}, block_size is 4096, and full_length is 5 * block_size - 13,
136 // the resulting string will be: "4096:4096,16384:8192,-1:4096,0:4083"
137 static bool ExtentsToBsdiffPositionsString(
138 const google::protobuf::RepeatedPtrField<Extent>& extents,
139 uint64_t block_size,
140 uint64_t full_length,
141 std::string* positions_string);
142
Darin Petkov0406e402010-10-06 21:33:11 -0700143 // Returns true if a previous update attempt can be continued based on the
144 // persistent preferences and the new update check response hash.
145 static bool CanResumeUpdate(PrefsInterface* prefs,
146 std::string update_check_response_hash);
147
148 // Resets the persistent update progress state to indicate that an update
Darin Petkov9b230572010-10-08 10:20:09 -0700149 // can't be resumed. Performs a quick update-in-progress reset if |quick| is
150 // true, otherwise resets all progress-related update state. Returns true on
151 // success, false otherwise.
152 static bool ResetUpdateProgress(PrefsInterface* prefs, bool quick);
Darin Petkov0406e402010-10-06 21:33:11 -0700153
Darin Petkov9574f7e2011-01-13 10:48:12 -0800154 // Attempts to parse the update metadata starting from the beginning of
Gilad Arnolddaa27402014-01-23 11:56:17 -0800155 // |payload|. On success, returns kMetadataParseSuccess. Returns
Gilad Arnoldfe133932014-01-14 12:25:50 -0800156 // kMetadataParseInsufficientData if more data is needed to parse the complete
157 // metadata. Returns kMetadataParseError if the metadata can't be parsed given
158 // the payload.
Gilad Arnolddaa27402014-01-23 11:56:17 -0800159 MetadataParseResult ParsePayloadMetadata(const std::vector<char>& payload,
160 ErrorCode* error);
Darin Petkov9574f7e2011-01-13 10:48:12 -0800161
Jay Srinivasan51dcf262012-09-13 17:24:32 -0700162 void set_public_key_path(const std::string& public_key_path) {
163 public_key_path_ = public_key_path;
Darin Petkov698d0412010-10-13 10:59:44 -0700164 }
165
Don Garrett4d039442013-10-28 18:40:06 -0700166 // Returns the byte offset at which the payload version can be found.
167 static uint64_t GetVersionOffset();
Jay Srinivasanf4318702012-09-24 11:56:24 -0700168
169 // Returns the byte offset where the size of the manifest is stored in
170 // a payload. This offset precedes the actual start of the manifest
171 // that's returned by the GetManifestOffset method.
172 static uint64_t GetManifestSizeOffset();
173
Don Garrett4d039442013-10-28 18:40:06 -0700174 // Returns the byte offset at which the manifest protobuf begins in a
175 // payload.
176 static uint64_t GetManifestOffset();
177
Gilad Arnoldfe133932014-01-14 12:25:50 -0800178 // Returns the size of the payload metadata, which includes the payload header
179 // and the manifest. Is the header was not yet parsed, returns zero.
180 uint64_t GetMetadataSize() const;
181
Gilad Arnolddaa27402014-01-23 11:56:17 -0800182 // If the manifest was successfully parsed, copies it to |*out_manifest_p|.
183 // Returns true on success.
184 bool GetManifest(DeltaArchiveManifest* out_manifest_p) const;
185
Andrew de los Reyes09e56d62010-04-23 13:45:53 -0700186 private:
Andrew de los Reyes353777c2010-10-08 10:34:30 -0700187 friend class DeltaPerformerTest;
188 FRIEND_TEST(DeltaPerformerTest, IsIdempotentOperationTest);
David Zeuthene7f89172013-10-31 10:21:04 -0700189 FRIEND_TEST(DeltaPerformerTest, UsePublicKeyFromResponse);
Andrew de los Reyes353777c2010-10-08 10:34:30 -0700190
Gilad Arnoldfe133932014-01-14 12:25:50 -0800191 // Appends up to |*count_p| bytes from |*bytes_p| to |buffer_|, but only to
192 // the extent that the size of |buffer_| does not exceed |max|. Advances
193 // |*cbytes_p| and decreases |*count_p| by the actual number of bytes copied,
194 // and returns this number.
195 size_t CopyDataToBuffer(const char** bytes_p, size_t* count_p, size_t max);
196
197 // If |op_result| is false, emits an error message using |op_type_name| and
198 // sets |*error| accordingly. Otherwise does nothing. Returns |op_result|.
199 bool HandleOpResult(bool op_result, const char* op_type_name,
200 ErrorCode* error);
201
Gilad Arnold8a86fa52013-01-15 12:35:05 -0800202 // Logs the progress of downloading/applying an update.
203 void LogProgress(const char* message_prefix);
204
205 // Update overall progress metrics, log as necessary.
206 void UpdateOverallProgress(bool force_log, const char* message_prefix);
207
Andrew de los Reyes353777c2010-10-08 10:34:30 -0700208 static bool IsIdempotentOperation(
209 const DeltaArchiveManifest_InstallOperation& op);
210
Darin Petkov698d0412010-10-13 10:59:44 -0700211 // Verifies that the expected source partition hashes (if present) match the
212 // hashes for the current partitions. Returns true if there're no expected
213 // hashes in the payload (e.g., if it's a new-style full update) or if the
214 // hashes match; returns false otherwise.
215 bool VerifySourcePartitions();
216
Andrew de los Reyes09e56d62010-04-23 13:45:53 -0700217 // Returns true if enough of the delta file has been passed via Write()
218 // to be able to perform a given install operation.
219 bool CanPerformInstallOperation(
220 const DeltaArchiveManifest_InstallOperation& operation);
Darin Petkovd7061ab2010-10-06 14:37:09 -0700221
Gilad Arnold21504f02013-05-24 08:51:22 -0700222 // Checks the integrity of the payload manifest. Returns true upon success,
223 // false otherwise.
224 ErrorCode ValidateManifest();
225
Jay Srinivasan51dcf262012-09-13 17:24:32 -0700226 // Validates that the hash of the blobs corresponding to the given |operation|
227 // matches what's specified in the manifest in the payload.
David Zeuthena99981f2013-04-29 13:42:47 -0700228 // Returns kErrorCodeSuccess on match or a suitable error code otherwise.
229 ErrorCode ValidateOperationHash(
Gilad Arnold8a86fa52013-01-15 12:35:05 -0800230 const DeltaArchiveManifest_InstallOperation& operation);
Jay Srinivasan51dcf262012-09-13 17:24:32 -0700231
232 // Interprets the given |protobuf| as a DeltaArchiveManifest protocol buffer
233 // of the given protobuf_length and verifies that the signed hash of the
Jay Srinivasanf4318702012-09-24 11:56:24 -0700234 // metadata matches what's specified in the install plan from Omaha.
David Zeuthena99981f2013-04-29 13:42:47 -0700235 // Returns kErrorCodeSuccess on match or a suitable error code otherwise.
Jay Srinivasan51dcf262012-09-13 17:24:32 -0700236 // This method must be called before any part of the |protobuf| is parsed
237 // so that a man-in-the-middle attack on the SSL connection to the payload
238 // server doesn't exploit any vulnerability in the code that parses the
239 // protocol buffer.
David Zeuthena99981f2013-04-29 13:42:47 -0700240 ErrorCode ValidateMetadataSignature(const char* protobuf,
Jay Srinivasan51dcf262012-09-13 17:24:32 -0700241 uint64_t protobuf_length);
242
Andrew de los Reyes09e56d62010-04-23 13:45:53 -0700243 // Returns true on success.
244 bool PerformInstallOperation(
245 const DeltaArchiveManifest_InstallOperation& operation);
Darin Petkovd7061ab2010-10-06 14:37:09 -0700246
Andrew de los Reyes09e56d62010-04-23 13:45:53 -0700247 // These perform a specific type of operation and return true on success.
248 bool PerformReplaceOperation(
Andrew de los Reyesf4c7ef12010-04-30 10:37:00 -0700249 const DeltaArchiveManifest_InstallOperation& operation,
250 bool is_kernel_partition);
Andrew de los Reyes09e56d62010-04-23 13:45:53 -0700251 bool PerformMoveOperation(
Andrew de los Reyesf4c7ef12010-04-30 10:37:00 -0700252 const DeltaArchiveManifest_InstallOperation& operation,
253 bool is_kernel_partition);
Andrew de los Reyes09e56d62010-04-23 13:45:53 -0700254 bool PerformBsdiffOperation(
Andrew de los Reyesf4c7ef12010-04-30 10:37:00 -0700255 const DeltaArchiveManifest_InstallOperation& operation,
256 bool is_kernel_partition);
Andrew de los Reyes09e56d62010-04-23 13:45:53 -0700257
Darin Petkovd7061ab2010-10-06 14:37:09 -0700258 // Returns true if the payload signature message has been extracted from
259 // |operation|, false otherwise.
260 bool ExtractSignatureMessage(
261 const DeltaArchiveManifest_InstallOperation& operation);
262
Gilad Arnoldfe133932014-01-14 12:25:50 -0800263 // Updates the hash calculator with the bytes in |buffer_|. Then discard the
Gilad Arnolddaa27402014-01-23 11:56:17 -0800264 // content, ensuring that memory is being deallocated. If |do_advance_offset|,
265 // advances the internal offset counter accordingly.
266 void DiscardBuffer(bool do_advance_offset);
Darin Petkovd7061ab2010-10-06 14:37:09 -0700267
Darin Petkov0406e402010-10-06 21:33:11 -0700268 // Checkpoints the update progress into persistent storage to allow this
269 // update attempt to be resumed after reboot.
Darin Petkov73058b42010-10-06 16:32:19 -0700270 bool CheckpointUpdateProgress();
271
Darin Petkov9b230572010-10-08 10:20:09 -0700272 // Primes the required update state. Returns true if the update state was
273 // successfully initialized to a saved resume state or if the update is a new
274 // update. Returns false otherwise.
275 bool PrimeUpdateState();
276
Jay Srinivasanf0572052012-10-23 18:12:56 -0700277 // Sends UMA statistics for the given error code.
David Zeuthena99981f2013-04-29 13:42:47 -0700278 void SendUmaStat(ErrorCode code);
Jay Srinivasanf0572052012-10-23 18:12:56 -0700279
David Zeuthene7f89172013-10-31 10:21:04 -0700280 // If the Omaha response contains a public RSA key and we're allowed
281 // to use it (e.g. if we're in developer mode), extract the key from
282 // the response and store it in a temporary file and return true. In
283 // the affirmative the path to the temporary file is stored in
284 // |out_tmp_key| and it is the responsibility of the caller to clean
285 // it up.
286 bool GetPublicKeyFromResponse(base::FilePath *out_tmp_key);
287
Darin Petkov73058b42010-10-06 16:32:19 -0700288 // Update Engine preference store.
289 PrefsInterface* prefs_;
290
Jay Srinivasanf0572052012-10-23 18:12:56 -0700291 // Global context of the system.
292 SystemState* system_state_;
293
Jay Srinivasan51dcf262012-09-13 17:24:32 -0700294 // Install Plan based on Omaha Response.
295 InstallPlan* install_plan_;
296
Andrew de los Reyes09e56d62010-04-23 13:45:53 -0700297 // File descriptor of open device.
298 int fd_;
Darin Petkovd7061ab2010-10-06 14:37:09 -0700299
Andrew de los Reyesf4c7ef12010-04-30 10:37:00 -0700300 // File descriptor of the kernel device
301 int kernel_fd_;
Darin Petkovd7061ab2010-10-06 14:37:09 -0700302
Andrew de los Reyesf4c7ef12010-04-30 10:37:00 -0700303 std::string path_; // Path that fd_ refers to.
304 std::string kernel_path_; // Path that kernel_fd_ refers to.
Darin Petkovd7061ab2010-10-06 14:37:09 -0700305
Andrew de los Reyes09e56d62010-04-23 13:45:53 -0700306 DeltaArchiveManifest manifest_;
Gilad Arnolddaa27402014-01-23 11:56:17 -0800307 bool manifest_parsed_;
Andrew de los Reyes09e56d62010-04-23 13:45:53 -0700308 bool manifest_valid_;
Gilad Arnoldfe133932014-01-14 12:25:50 -0800309 uint64_t metadata_size_;
Darin Petkovd7061ab2010-10-06 14:37:09 -0700310
Andrew de los Reyes09e56d62010-04-23 13:45:53 -0700311 // Index of the next operation to perform in the manifest.
Gilad Arnold8a86fa52013-01-15 12:35:05 -0800312 size_t next_operation_num_;
Andrew de los Reyes09e56d62010-04-23 13:45:53 -0700313
Gilad Arnoldfe133932014-01-14 12:25:50 -0800314 // A buffer used for accumulating downloaded data. Initially, it stores the
315 // payload metadata; once that's downloaded and parsed, it stores data for the
316 // next update operation.
Andrew de los Reyes09e56d62010-04-23 13:45:53 -0700317 std::vector<char> buffer_;
318 // Offset of buffer_ in the binary blobs section of the update.
319 uint64_t buffer_offset_;
Darin Petkovd7061ab2010-10-06 14:37:09 -0700320
Darin Petkov0406e402010-10-06 21:33:11 -0700321 // Last |buffer_offset_| value updated as part of the progress update.
322 uint64_t last_updated_buffer_offset_;
323
Andrew de los Reyes09e56d62010-04-23 13:45:53 -0700324 // The block size (parsed from the manifest).
325 uint32_t block_size_;
Darin Petkovd7061ab2010-10-06 14:37:09 -0700326
Darin Petkov437adc42010-10-07 13:12:24 -0700327 // Calculates the payload hash.
Darin Petkovd7061ab2010-10-06 14:37:09 -0700328 OmahaHashCalculator hash_calculator_;
329
Darin Petkov437adc42010-10-07 13:12:24 -0700330 // Saves the signed hash context.
331 std::string signed_hash_context_;
332
Darin Petkovd7061ab2010-10-06 14:37:09 -0700333 // Signatures message blob extracted directly from the payload.
334 std::vector<char> signatures_message_data_;
335
Jay Srinivasan51dcf262012-09-13 17:24:32 -0700336 // The public key to be used. Provided as a member so that tests can
337 // override with test keys.
338 std::string public_key_path_;
Darin Petkov698d0412010-10-13 10:59:44 -0700339
Gilad Arnold8a86fa52013-01-15 12:35:05 -0800340 // The number of bytes received so far, used for progress tracking.
341 size_t total_bytes_received_;
342
343 // The number rootfs and total operations in a payload, once we know them.
344 size_t num_rootfs_operations_;
345 size_t num_total_operations_;
346
347 // An overall progress counter, which should reflect both download progress
348 // and the ratio of applied operations. Range is 0-100.
349 unsigned overall_progress_;
350
351 // The last progress chunk recorded.
352 unsigned last_progress_chunk_;
353
354 // The timeout after which we should force emitting a progress log (constant),
355 // and the actual point in time for the next forced log to be emitted.
356 const base::TimeDelta forced_progress_log_wait_;
357 base::Time forced_progress_log_time_;
358
Andrew de los Reyes09e56d62010-04-23 13:45:53 -0700359 DISALLOW_COPY_AND_ASSIGN(DeltaPerformer);
360};
361
362} // namespace chromeos_update_engine
363
Alex Deymo759c2752014-03-17 21:09:36 -0700364#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_PERFORMER_H_