Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: delta_diff_generator.h

Issue 6265001: AU: Add support for signing of update payloads after they're generated. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git@master
Patch Set: rename function Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | delta_diff_generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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__
OLDNEW
« no previous file with comments | « no previous file | delta_diff_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698