OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium 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 #include "chrome/browser/component_updater/component_patcher_operation.h" | 5 #include "components/component_updater/component_patcher_operation.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/files/memory_mapped_file.h" | 11 #include "base/files/memory_mapped_file.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "chrome/browser/component_updater/component_patcher.h" | 14 #include "components/component_updater/component_patcher.h" |
15 #include "chrome/browser/component_updater/component_updater_service.h" | 15 #include "components/component_updater/component_updater_service.h" |
16 #include "courgette/courgette.h" | 16 #include "courgette/courgette.h" |
17 #include "courgette/third_party/bsdiff.h" | 17 #include "courgette/third_party/bsdiff.h" |
18 #include "crypto/secure_hash.h" | 18 #include "crypto/secure_hash.h" |
19 #include "crypto/sha2.h" | 19 #include "crypto/sha2.h" |
20 #include "crypto/signature_verifier.h" | 20 #include "crypto/signature_verifier.h" |
21 #include "extensions/common/crx_file.h" | 21 #include "extensions/common/crx_file.h" |
22 | 22 |
23 using crypto::SecureHash; | 23 using crypto::SecureHash; |
24 | 24 |
25 namespace component_updater { | 25 namespace component_updater { |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 } else { | 257 } else { |
258 callback.Run(ComponentUnpacker::kDeltaOperationFailure, | 258 callback.Run(ComponentUnpacker::kDeltaOperationFailure, |
259 result + kCourgetteErrorOffset); | 259 result + kCourgetteErrorOffset); |
260 } | 260 } |
261 } else { | 261 } else { |
262 NOTREACHED(); | 262 NOTREACHED(); |
263 } | 263 } |
264 } | 264 } |
265 | 265 |
266 } // namespace component_updater | 266 } // namespace component_updater |
OLD | NEW |