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

Side by Side Diff: chrome/browser/component_updater/component_patcher_operation.cc

Issue 334783002: Componentize component_updater: Move some paths/constants to component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add component updater to common dependency list Created 6 years, 5 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
OLDNEW
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 "chrome/browser/component_updater/component_patcher_operation.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/files/memory_mapped_file.h" 12 #include "base/files/memory_mapped_file.h"
13 #include "base/json/json_file_value_serializer.h" 13 #include "base/json/json_file_value_serializer.h"
14 #include "base/path_service.h" 14 #include "base/path_service.h"
15 #include "base/strings/string_number_conversions.h" 15 #include "base/strings/string_number_conversions.h"
16 #include "chrome/browser/component_updater/component_patcher.h" 16 #include "chrome/browser/component_updater/component_patcher.h"
17 #include "chrome/browser/component_updater/component_updater_service.h" 17 #include "chrome/browser/component_updater/component_updater_service.h"
18 #include "chrome/common/chrome_utility_messages.h" 18 #include "chrome/common/chrome_utility_messages.h"
19 #include "chrome/common/extensions/extension_constants.h"
20 #include "content/public/browser/browser_thread.h" 19 #include "content/public/browser/browser_thread.h"
21 #include "content/public/browser/utility_process_host.h" 20 #include "content/public/browser/utility_process_host.h"
22 #include "courgette/courgette.h" 21 #include "courgette/courgette.h"
23 #include "courgette/third_party/bsdiff.h" 22 #include "courgette/third_party/bsdiff.h"
24 #include "crypto/secure_hash.h" 23 #include "crypto/secure_hash.h"
25 #include "crypto/sha2.h" 24 #include "crypto/sha2.h"
26 #include "crypto/signature_verifier.h" 25 #include "crypto/signature_verifier.h"
27 #include "extensions/common/crx_file.h" 26 #include "extensions/common/crx_file.h"
28 #include "ipc/ipc_message_macros.h" 27 #include "ipc/ipc_message_macros.h"
29 28
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 if (error != ComponentUnpacker::kNone) { 402 if (error != ComponentUnpacker::kNone) {
404 error_code += strategy_->GetErrorOffset(); 403 error_code += strategy_->GetErrorOffset();
405 } 404 }
406 callback_.Run(error, error_code); 405 callback_.Run(error, error_code);
407 // The callback is no longer needed - it is best to release it in case it 406 // The callback is no longer needed - it is best to release it in case it
408 // contains a reference to this object. 407 // contains a reference to this object.
409 callback_.Reset(); 408 callback_.Reset();
410 } 409 }
411 410
412 } // namespace component_updater 411 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698