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

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

Issue 5729004: Merge the installer, installer_util and setup_util namespaces into a single i... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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. 5 // This file declares util functions for setup project.
6 6
7 #ifndef CHROME_INSTALLER_SETUP_SETUP_UTIL_H_ 7 #ifndef CHROME_INSTALLER_SETUP_SETUP_UTIL_H_
8 #define CHROME_INSTALLER_SETUP_SETUP_UTIL_H_ 8 #define CHROME_INSTALLER_SETUP_SETUP_UTIL_H_
9 #pragma once 9 #pragma once
10 10
11 #include "chrome/installer/util/version.h" 11 #include "chrome/installer/util/version.h"
12 12
13 class FilePath; 13 class FilePath;
14 14
15 namespace setup_util { 15 namespace installer {
16 // Apply a diff patch to source file. First tries to apply it using courgette 16 // Apply a diff patch to source file. First tries to apply it using courgette
17 // since it checks for courgette header and fails quickly. If that fails 17 // since it checks for courgette header and fails quickly. If that fails
18 // tries to apply the patch using regular bsdiff. Returns status code. 18 // tries to apply the patch using regular bsdiff. Returns status code.
19 int ApplyDiffPatch(const FilePath& src, 19 int ApplyDiffPatch(const FilePath& src,
20 const FilePath& patch, 20 const FilePath& patch,
21 const FilePath& dest); 21 const FilePath& dest);
22 22
23 // Find the version of Chrome from an install source directory. 23 // Find the version of Chrome from an install source directory.
24 // Chrome_path should contain a version folder. 24 // Chrome_path should contain a version folder.
25 // Returns the first version found or NULL if no version is found. 25 // Returns the first version found or NULL if no version is found.
26 installer::Version* GetVersionFromArchiveDir(const FilePath& chrome_path); 26 installer::Version* GetVersionFromArchiveDir(const FilePath& chrome_path);
27 } // namespace setup_util 27 } // namespace installer
28 28
29 #endif // CHROME_INSTALLER_SETUP_SETUP_UTIL_H_ 29 #endif // CHROME_INSTALLER_SETUP_SETUP_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698