OLD | NEW |
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 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 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 CURRENT_USER, | 45 CURRENT_USER, |
46 // Install global shortcuts visible to all users. Note: the Quick Launch | 46 // Install global shortcuts visible to all users. Note: the Quick Launch |
47 // and taskbar pin shortcuts are still installed per-user (as they have no | 47 // and taskbar pin shortcuts are still installed per-user (as they have no |
48 // all-users version). | 48 // all-users version). |
49 ALL_USERS, | 49 ALL_USERS, |
50 }; | 50 }; |
51 | 51 |
52 // Escape |att_value| as per the XML AttValue production | 52 // Escape |att_value| as per the XML AttValue production |
53 // (http://www.w3.org/TR/2008/REC-xml-20081126/#NT-AttValue) for a value in | 53 // (http://www.w3.org/TR/2008/REC-xml-20081126/#NT-AttValue) for a value in |
54 // single quotes. | 54 // single quotes. |
55 void EscapeXmlAttributeValueInSingleQuotes(string16* att_value); | 55 void EscapeXmlAttributeValueInSingleQuotes(base::string16* att_value); |
56 | 56 |
57 // Creates VisualElementsManifest.xml beside chrome.exe in |src_path| if | 57 // Creates VisualElementsManifest.xml beside chrome.exe in |src_path| if |
58 // |src_path|\VisualElements exists. | 58 // |src_path|\VisualElements exists. |
59 // Returns true unless the manifest is supposed to be created, but fails to be. | 59 // Returns true unless the manifest is supposed to be created, but fails to be. |
60 bool CreateVisualElementsManifest(const base::FilePath& src_path, | 60 bool CreateVisualElementsManifest(const base::FilePath& src_path, |
61 const Version& version); | 61 const Version& version); |
62 | 62 |
63 // Overwrites shortcuts (desktop, quick launch, and start menu) if they are | 63 // Overwrites shortcuts (desktop, quick launch, and start menu) if they are |
64 // present on the system. | 64 // present on the system. |
65 // |prefs| can affect the behavior of this method through | 65 // |prefs| can affect the behavior of this method through |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 bool force); | 133 bool force); |
134 | 134 |
135 // Launches app_host.exe to install content from web store (non-blocking). | 135 // Launches app_host.exe to install content from web store (non-blocking). |
136 // Returns true on successful execution (although successful installation | 136 // Returns true on successful execution (although successful installation |
137 // is not guaranteed). | 137 // is not guaranteed). |
138 bool InstallFromWebstore(const std::string& app_code); | 138 bool InstallFromWebstore(const std::string& app_code); |
139 | 139 |
140 } // namespace installer | 140 } // namespace installer |
141 | 141 |
142 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ | 142 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ |
OLD | NEW |