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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
213 | 213 |
214 // Returns true if |op| is a no-op operation that doesn't do any useful work | 214 // Returns true if |op| is a no-op operation that doesn't do any useful work |
215 // (e.g., a move operation that copies blocks onto themselves). | 215 // (e.g., a move operation that copies blocks onto themselves). |
216 static bool IsNoopOperation(const DeltaArchiveManifest_InstallOperation& op); | 216 static bool IsNoopOperation(const DeltaArchiveManifest_InstallOperation& op); |
217 | 217 |
218 private: | 218 private: |
219 // This should never be constructed | 219 // This should never be constructed |
220 DISALLOW_IMPLICIT_CONSTRUCTORS(DeltaDiffGenerator); | 220 DISALLOW_IMPLICIT_CONSTRUCTORS(DeltaDiffGenerator); |
221 }; | 221 }; |
222 | 222 |
223 bool InitializePartitionInfo(bool is_kernel, | |
petkov
2010/10/22 20:15:16
Ah, I should have made this a static member of Del
adlr
2010/10/22 20:40:18
Done.
| |
224 const std::string& partition, | |
225 PartitionInfo* info); | |
226 | |
223 extern const char* const kBsdiffPath; | 227 extern const char* const kBsdiffPath; |
224 extern const char* const kBspatchPath; | 228 extern const char* const kBspatchPath; |
225 extern const char* const kDeltaMagic; | 229 extern const char* const kDeltaMagic; |
226 | 230 |
227 }; // namespace chromeos_update_engine | 231 }; // namespace chromeos_update_engine |
228 | 232 |
229 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_DIFF_GENERATOR_H__ | 233 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_DELTA_DIFF_GENERATOR_H__ |
OLD | NEW |