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

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

Issue 10160011: Create VisualElementsManifest.xml from template -- install VisualElements in the version directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: new line at end of install_unittest.cc Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 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 contains the specification of setup main functions. 5 // This file contains the specification of setup main functions.
6 6
7 #ifndef CHROME_INSTALLER_SETUP_INSTALL_H_ 7 #ifndef CHROME_INSTALLER_SETUP_INSTALL_H_
8 #define CHROME_INSTALLER_SETUP_INSTALL_H_ 8 #define CHROME_INSTALLER_SETUP_INSTALL_H_
9 #pragma once 9 #pragma once
10 10
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/version.h" 14 #include "base/version.h"
15 #include "chrome/installer/util/product.h" 15 #include "chrome/installer/util/product.h"
16 #include "chrome/installer/util/util_constants.h" 16 #include "chrome/installer/util/util_constants.h"
17 17
18 class FilePath; 18 class FilePath;
19 19
20 namespace installer { 20 namespace installer {
21 21
22 class InstallationState; 22 class InstallationState;
23 class InstallerState; 23 class InstallerState;
24 class MasterPreferences; 24 class MasterPreferences;
25 25
26 // Escape |att_value| as per the XML AttValue production
27 // (http://www.w3.org/TR/2008/REC-xml-20081126/#NT-AttValue) for a value in
28 // single quotes.
29 void EscapeXmlAttributeValueInSingleQuotes(string16* att_value);
30
31 // Creates VisualElementsManifest.xml beside chrome.exe in |src_path| if
32 // |src_path|\VisualElements exists.
33 // Returns true unless the manifest is supposed to be created, but fails to be.
34 bool CreateVisualElementsManifest(const FilePath& src_path,
35 const Version& version);
36
26 // This function installs or updates a new version of Chrome. It returns 37 // This function installs or updates a new version of Chrome. It returns
27 // install status (failed, new_install, updated etc). 38 // install status (failed, new_install, updated etc).
28 // 39 //
29 // setup_path: Path to the executable (setup.exe) as it will be copied 40 // setup_path: Path to the executable (setup.exe) as it will be copied
30 // to Chrome install folder after install is complete 41 // to Chrome install folder after install is complete
31 // archive_path: Path to the archive (chrome.7z) as it will be copied 42 // archive_path: Path to the archive (chrome.7z) as it will be copied
32 // to Chrome install folder after install is complete 43 // to Chrome install folder after install is complete
33 // install_temp_path: working directory used during install/update. It should 44 // install_temp_path: working directory used during install/update. It should
34 // also has a sub dir source that contains a complete 45 // also has a sub dir source that contains a complete
35 // and unpacked Chrome package. 46 // and unpacked Chrome package.
(...skipping 10 matching lines...) Expand all
46 const FilePath& setup_path, 57 const FilePath& setup_path,
47 const FilePath& archive_path, 58 const FilePath& archive_path,
48 const FilePath& install_temp_path, 59 const FilePath& install_temp_path,
49 const FilePath& prefs_path, 60 const FilePath& prefs_path,
50 const installer::MasterPreferences& prefs, 61 const installer::MasterPreferences& prefs,
51 const Version& new_version); 62 const Version& new_version);
52 63
53 } // namespace installer 64 } // namespace installer
54 65
55 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ 66 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698