| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/file_path.h" | |
| 12 | |
| 13 class BrowserDistribution; | 11 class BrowserDistribution; |
| 12 class FilePath; |
| 14 | 13 |
| 15 namespace installer { | 14 namespace installer { |
| 16 | 15 |
| 17 // This function returns the install path for Chrome depending on whether its | 16 // This function returns the install path for Chrome depending on whether its |
| 18 // system wide install or user specific install. | 17 // system wide install or user specific install. |
| 19 // system_install: if true, the function returns system wide location | 18 // system_install: if true, the function returns system wide location |
| 20 // (ProgramFiles\Google). Otherwise it returns user specific | 19 // (ProgramFiles\Google). Otherwise it returns user specific |
| 21 // location (Document And Settings\<user>\Local Settings...) | 20 // location (Document And Settings\<user>\Local Settings...) |
| 22 FilePath GetChromeInstallPath(bool system_install, BrowserDistribution* dist); | 21 FilePath GetChromeInstallPath(bool system_install, BrowserDistribution* dist); |
| 23 | 22 |
| 24 // This function returns the path to the directory that holds the user data, | 23 // This function returns the path to the directory that holds the user data, |
| 25 // this is always inside "Document And Settings\<user>\Local Settings.". Note | 24 // this is always inside "Document And Settings\<user>\Local Settings.". Note |
| 26 // that this is the default user data directory and does not take into account | 25 // that this is the default user data directory and does not take into account |
| 27 // that it can be overriden with a command line parameter. | 26 // that it can be overriden with a command line parameter. |
| 28 FilePath GetChromeUserDataPath(BrowserDistribution* dist); | 27 FilePath GetChromeUserDataPath(BrowserDistribution* dist); |
| 29 | 28 |
| 30 } // namespace installer | 29 } // namespace installer |
| 31 | 30 |
| 32 #endif // CHROME_INSTALLER_UTIL_HELPER_H_ | 31 #endif // CHROME_INSTALLER_UTIL_HELPER_H_ |
| OLD | NEW |