| 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 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 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 class BrowserDistribution; | 13 class BrowserDistribution; |
| 14 |
| 15 namespace base { |
| 14 class FilePath; | 16 class FilePath; |
| 17 } |
| 15 | 18 |
| 16 namespace installer { | 19 namespace installer { |
| 17 | 20 |
| 18 // This function returns the install path for Chrome depending on whether its | 21 // This function returns the install path for Chrome depending on whether its |
| 19 // system wide install or user specific install. | 22 // system wide install or user specific install. |
| 20 // system_install: if true, the function returns system wide location | 23 // system_install: if true, the function returns system wide location |
| 21 // (ProgramFiles\Google). Otherwise it returns user specific | 24 // (ProgramFiles\Google). Otherwise it returns user specific |
| 22 // location (Document And Settings\<user>\Local Settings...) | 25 // location (Document And Settings\<user>\Local Settings...) |
| 23 FilePath GetChromeInstallPath(bool system_install, BrowserDistribution* dist); | 26 base::FilePath GetChromeInstallPath(bool system_install, BrowserDistribution* di
st); |
| 24 | 27 |
| 25 // Returns the path(s) to the directory that holds the user data (primary and, | 28 // Returns the path(s) to the directory that holds the user data (primary and, |
| 26 // if applicable to |dist|, alternate). This is always inside a user's local | 29 // if applicable to |dist|, alternate). This is always inside a user's local |
| 27 // application data folder (e.g., "AppData\Local or "Local Settings\Application | 30 // application data folder (e.g., "AppData\Local or "Local Settings\Application |
| 28 // Data" in %USERPROFILE%). Note that these are the defaults and do not take | 31 // Data" in %USERPROFILE%). Note that these are the defaults and do not take |
| 29 // into account that they can be overriden with a command line parameter. | 32 // into account that they can be overriden with a command line parameter. |
| 30 // |paths| may be empty on return, but is guaranteed not to contain empty paths | 33 // |paths| may be empty on return, but is guaranteed not to contain empty paths |
| 31 // otherwise. If more than one path is returned, they are guaranteed to be | 34 // otherwise. If more than one path is returned, they are guaranteed to be |
| 32 // siblings. | 35 // siblings. |
| 33 void GetChromeUserDataPaths(BrowserDistribution* dist, | 36 void GetChromeUserDataPaths(BrowserDistribution* dist, |
| 34 std::vector<FilePath>* paths); | 37 std::vector<base::FilePath>* paths); |
| 35 | 38 |
| 36 // Returns the distribution corresponding to the current process's binaries. | 39 // Returns the distribution corresponding to the current process's binaries. |
| 37 // In the case of a multi-install product, this will be the CHROME_BINARIES | 40 // In the case of a multi-install product, this will be the CHROME_BINARIES |
| 38 // distribution. | 41 // distribution. |
| 39 BrowserDistribution* GetBinariesDistribution(bool system_install); | 42 BrowserDistribution* GetBinariesDistribution(bool system_install); |
| 40 | 43 |
| 41 // Returns the app guid under which the current process receives updates from | 44 // Returns the app guid under which the current process receives updates from |
| 42 // Google Update. | 45 // Google Update. |
| 43 std::wstring GetAppGuidForUpdates(bool system_install); | 46 std::wstring GetAppGuidForUpdates(bool system_install); |
| 44 | 47 |
| 45 } // namespace installer | 48 } // namespace installer |
| 46 | 49 |
| 47 #endif // CHROME_INSTALLER_UTIL_HELPER_H_ | 50 #endif // CHROME_INSTALLER_UTIL_HELPER_H_ |
| OLD | NEW |