| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 helper functions used by setup. | 5 // This file contains helper functions used by setup. |
| 6 | 6 |
| 7 #ifndef CHROME_INSTALLER_UTIL_HELPER_H_ | 7 #ifndef CHROME_INSTALLER_UTIL_HELPER_H_ |
| 8 #define CHROME_INSTALLER_UTIL_HELPER_H_ | 8 #define CHROME_INSTALLER_UTIL_HELPER_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 class BrowserDistribution; | 13 class BrowserDistribution; |
| 14 class CommandLine; | |
| 15 class FilePath; | 14 class FilePath; |
| 16 | 15 |
| 17 namespace installer { | 16 namespace installer { |
| 18 | 17 |
| 19 // This function returns the install path for Chrome depending on whether its | 18 // This function returns the install path for Chrome depending on whether its |
| 20 // system wide install or user specific install. | 19 // system wide install or user specific install. |
| 21 // system_install: if true, the function returns system wide location | 20 // system_install: if true, the function returns system wide location |
| 22 // (ProgramFiles\Google). Otherwise it returns user specific | 21 // (ProgramFiles\Google). Otherwise it returns user specific |
| 23 // location (Document And Settings\<user>\Local Settings...) | 22 // location (Document And Settings\<user>\Local Settings...) |
| 24 FilePath GetChromeInstallPath(bool system_install, BrowserDistribution* dist); | 23 FilePath GetChromeInstallPath(bool system_install, BrowserDistribution* dist); |
| 25 | 24 |
| 26 // This function returns the path to the directory that holds the user data, | 25 // This function returns the path to the directory that holds the user data, |
| 27 // this is always inside "Document And Settings\<user>\Local Settings.". Note | 26 // this is always inside "Document And Settings\<user>\Local Settings.". Note |
| 28 // that this is the default user data directory and does not take into account | 27 // that this is the default user data directory and does not take into account |
| 29 // that it can be overriden with a command line parameter. | 28 // that it can be overriden with a command line parameter. |
| 30 FilePath GetChromeUserDataPath(BrowserDistribution* dist); | 29 FilePath GetChromeUserDataPath(BrowserDistribution* dist); |
| 31 | 30 |
| 32 // Returns the distribution corresponding to the current process's binaries. | 31 // Returns the distribution corresponding to the current process's binaries. |
| 33 // In the case of a multi-install product, this will be the CHROME_BINARIES | 32 // In the case of a multi-install product, this will be the CHROME_BINARIES |
| 34 // distribution. | 33 // distribution. |
| 35 BrowserDistribution* GetBinariesDistribution(bool system_install); | 34 BrowserDistribution* GetBinariesDistribution(bool system_install); |
| 36 | 35 |
| 37 // Returns the app guid under which the current process receives updates from | 36 // Returns the app guid under which the current process receives updates from |
| 38 // Google Update. | 37 // Google Update. |
| 39 std::wstring GetAppGuidForUpdates(bool system_install); | 38 std::wstring GetAppGuidForUpdates(bool system_install); |
| 40 | 39 |
| 41 } // namespace installer | 40 } // namespace installer |
| 42 | 41 |
| 43 #endif // CHROME_INSTALLER_UTIL_HELPER_H_ | 42 #endif // CHROME_INSTALLER_UTIL_HELPER_H_ |
| OLD | NEW |