| 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_DIFF_GENERATOR_H__ | 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_DIFF_GENERATOR_H__ |
| 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_DIFF_GENERATOR_H__ | 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_DIFF_GENERATOR_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 // For each block in |operation| that is read or written, find that block | 225 // For each block in |operation| that is read or written, find that block |
| 226 // in |blocks| and set the reader/writer field to the vertex passed. | 226 // in |blocks| and set the reader/writer field to the vertex passed. |
| 227 // |graph| is not strictly necessary, but useful for printing out | 227 // |graph| is not strictly necessary, but useful for printing out |
| 228 // error messages. | 228 // error messages. |
| 229 static bool AddInstallOpToBlocksVector( | 229 static bool AddInstallOpToBlocksVector( |
| 230 const DeltaArchiveManifest_InstallOperation& operation, | 230 const DeltaArchiveManifest_InstallOperation& operation, |
| 231 const Graph& graph, | 231 const Graph& graph, |
| 232 Vertex::Index vertex, | 232 Vertex::Index vertex, |
| 233 std::vector<DeltaDiffGenerator::Block>* blocks); | 233 std::vector<DeltaDiffGenerator::Block>* blocks); |
| 234 | 234 |
| 235 // Adds to |manifest| a dummy operation that points to a signature blob |
| 236 // located at the specified offset/length. |
| 237 static void AddSignatureOp(uint64_t signature_blob_offset, |
| 238 uint64_t signature_blob_length, |
| 239 DeltaArchiveManifest* manifest); |
| 240 |
| 235 private: | 241 private: |
| 236 // This should never be constructed | 242 // This should never be constructed |
| 237 DISALLOW_IMPLICIT_CONSTRUCTORS(DeltaDiffGenerator); | 243 DISALLOW_IMPLICIT_CONSTRUCTORS(DeltaDiffGenerator); |
| 238 }; | 244 }; |
| 239 | 245 |
| 240 extern const char* const kBsdiffPath; | 246 extern const char* const kBsdiffPath; |
| 241 extern const char* const kBspatchPath; | 247 extern const char* const kBspatchPath; |
| 242 extern const char* const kDeltaMagic; | 248 extern const char* const kDeltaMagic; |
| 243 | 249 |
| 244 }; // namespace chromeos_update_engine | 250 }; // namespace chromeos_update_engine |
| 245 | 251 |
| 246 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_DIFF_GENERATOR_H__ | 252 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_DIFF_GENERATOR_H__ |
| OLD | NEW |