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

Side by Side Diff: chrome/installer/setup/setup_util.h

Issue 1961963003: Move //courgette/third_party to subfolder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes according to comments Created 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This file declares util functions for setup project. It also declares a 5 // This file declares util functions for setup project. It also declares a
6 // few functions that the Chrome component updater uses for patching binary 6 // few functions that the Chrome component updater uses for patching binary
7 // deltas. 7 // deltas.
8 8
9 #ifndef CHROME_INSTALLER_SETUP_SETUP_UTIL_H_ 9 #ifndef CHROME_INSTALLER_SETUP_SETUP_UTIL_H_
10 #define CHROME_INSTALLER_SETUP_SETUP_UTIL_H_ 10 #define CHROME_INSTALLER_SETUP_SETUP_UTIL_H_
(...skipping 27 matching lines...) Expand all
38 // Applies a patch file to source file using Courgette. Returns 0 in case of 38 // Applies a patch file to source file using Courgette. Returns 0 in case of
39 // success. In case of errors, it returns kCourgetteErrorOffset + a Courgette 39 // success. In case of errors, it returns kCourgetteErrorOffset + a Courgette
40 // status code, as defined in courgette/courgette.h 40 // status code, as defined in courgette/courgette.h
41 int CourgettePatchFiles(const base::FilePath& src, 41 int CourgettePatchFiles(const base::FilePath& src,
42 const base::FilePath& patch, 42 const base::FilePath& patch,
43 const base::FilePath& dest); 43 const base::FilePath& dest);
44 44
45 // Applies a patch file to source file using bsdiff. This function uses 45 // Applies a patch file to source file using bsdiff. This function uses
46 // Courgette's flavor of bsdiff. Returns 0 in case of success, or 46 // Courgette's flavor of bsdiff. Returns 0 in case of success, or
47 // kBsdiffErrorOffset + a bsdiff status code in case of errors. 47 // kBsdiffErrorOffset + a bsdiff status code in case of errors.
48 // See courgette/third_party/bsdiff.h for details. 48 // See courgette/third_party/bsdiff/bsdiff.h for details.
49 int BsdiffPatchFiles(const base::FilePath& src, 49 int BsdiffPatchFiles(const base::FilePath& src,
50 const base::FilePath& patch, 50 const base::FilePath& patch,
51 const base::FilePath& dest); 51 const base::FilePath& dest);
52 52
53 // Find the version of Chrome from an install source directory. 53 // Find the version of Chrome from an install source directory.
54 // Chrome_path should contain at least one version folder. 54 // Chrome_path should contain at least one version folder.
55 // Returns the maximum version found or NULL if no version is found. 55 // Returns the maximum version found or NULL if no version is found.
56 Version* GetMaxVersionFromArchiveDir(const base::FilePath& chrome_path); 56 Version* GetMaxVersionFromArchiveDir(const base::FilePath& chrome_path);
57 57
58 // Returns the uncompressed archive of the installed version that serves as the 58 // Returns the uncompressed archive of the installed version that serves as the
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // The previous state of the privilege this object is responsible for. As set 149 // The previous state of the privilege this object is responsible for. As set
150 // by AdjustTokenPrivileges() upon construction. 150 // by AdjustTokenPrivileges() upon construction.
151 TOKEN_PRIVILEGES previous_privileges_; 151 TOKEN_PRIVILEGES previous_privileges_;
152 152
153 DISALLOW_IMPLICIT_CONSTRUCTORS(ScopedTokenPrivilege); 153 DISALLOW_IMPLICIT_CONSTRUCTORS(ScopedTokenPrivilege);
154 }; 154 };
155 155
156 } // namespace installer 156 } // namespace installer
157 157
158 #endif // CHROME_INSTALLER_SETUP_SETUP_UTIL_H_ 158 #endif // CHROME_INSTALLER_SETUP_SETUP_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/component_updater/component_patcher_operation_out_of_process.cc ('k') | chrome/installer/setup/setup_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698