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

Side by Side Diff: components/update_client/component_unpacker.cc

Issue 2873513002: Fix dependencies on OutOfProcessPatcher. (Closed)
Patch Set: base namespace fix Created 3 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/update_client/component_unpacker.h" 5 #include "components/update_client/component_unpacker.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/base64.h" 11 #include "base/base64.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/files/file_util.h" 14 #include "base/files/file_util.h"
15 #include "base/files/scoped_file.h" 15 #include "base/files/scoped_file.h"
16 #include "base/json/json_file_value_serializer.h" 16 #include "base/json/json_file_value_serializer.h"
17 #include "base/location.h" 17 #include "base/location.h"
18 #include "base/logging.h" 18 #include "base/logging.h"
19 #include "base/macros.h" 19 #include "base/macros.h"
20 #include "base/numerics/safe_conversions.h" 20 #include "base/numerics/safe_conversions.h"
21 #include "base/strings/string_number_conversions.h" 21 #include "base/strings/string_number_conversions.h"
22 #include "base/strings/stringprintf.h" 22 #include "base/strings/stringprintf.h"
23 #include "base/values.h" 23 #include "base/values.h"
24 #include "components/crx_file/crx_file.h" 24 #include "components/crx_file/crx_file.h"
25 #include "components/update_client/component_patcher.h" 25 #include "components/update_client/component_patcher.h"
26 #include "components/update_client/component_patcher_operation.h"
27 #include "components/update_client/update_client.h" 26 #include "components/update_client/update_client.h"
28 #include "components/update_client/update_client_errors.h" 27 #include "components/update_client/update_client_errors.h"
29 #include "crypto/secure_hash.h" 28 #include "crypto/secure_hash.h"
30 #include "crypto/sha2.h" 29 #include "crypto/sha2.h"
31 #include "third_party/zlib/google/zip.h" 30 #include "third_party/zlib/google/zip.h"
32 31
33 using crypto::SecureHash; 32 using crypto::SecureHash;
34 using crx_file::CrxFile; 33 using crx_file::CrxFile;
35 34
36 namespace update_client { 35 namespace update_client {
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 Result result; 180 Result result;
182 result.error = error_; 181 result.error = error_;
183 result.extended_error = extended_error_; 182 result.extended_error = extended_error_;
184 if (error_ == UnpackerError::kNone) 183 if (error_ == UnpackerError::kNone)
185 result.unpack_path = unpack_path_; 184 result.unpack_path = unpack_path_;
186 185
187 task_runner_->PostTask(FROM_HERE, base::Bind(callback_, result)); 186 task_runner_->PostTask(FROM_HERE, base::Bind(callback_, result));
188 } 187 }
189 188
190 } // namespace update_client 189 } // namespace update_client
OLDNEW
« no previous file with comments | « components/update_client/component_unpacker.h ('k') | components/update_client/component_unpacker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698