| 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 #ifndef CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ | 5 #ifndef CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ |
| 6 #define CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ | 6 #define CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 class FilePath; | 10 #include "base/file_path.h" |
| 11 | 11 |
| 12 namespace chrome { | 12 namespace chrome { |
| 13 | 13 |
| 14 // Get the path to the user's data directory, regardless of whether | 14 // Get the path to the user's data directory, regardless of whether |
| 15 // DIR_USER_DATA has been overridden by a command-line option. | 15 // DIR_USER_DATA has been overridden by a command-line option. |
| 16 bool GetDefaultUserDataDirectory(FilePath* result); | 16 bool GetDefaultUserDataDirectory(FilePath* result); |
| 17 | 17 |
| 18 #if defined(OS_LINUX) | 18 #if defined(OS_LINUX) |
| 19 // Get the path to the user's cache directory. | 19 // Get the path to the user's cache directory. |
| 20 bool GetUserCacheDirectory(FilePath* result); | 20 bool GetUserCacheDirectory(FilePath* result); |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 // Get the path to the user's documents directory. | 23 // Get the path to the user's documents directory. |
| 24 bool GetUserDocumentsDirectory(FilePath* result); | 24 bool GetUserDocumentsDirectory(FilePath* result); |
| 25 | 25 |
| 26 // Get the path to the user's downloads directory. | 26 // Get the path to the user's downloads directory. |
| 27 bool GetUserDownloadsDirectory(FilePath* result); | 27 bool GetUserDownloadsDirectory(FilePath* result); |
| 28 | 28 |
| 29 // The path to the user's desktop. | 29 // The path to the user's desktop. |
| 30 bool GetUserDesktop(FilePath* result); | 30 bool GetUserDesktop(FilePath* result); |
| 31 | 31 |
| 32 #if defined(OS_MACOSX) |
| 33 // Retrieves the browser bundle path. It is only valid to call this from a |
| 34 // helper process, as it makes assumptions about the location of the enclosing |
| 35 // bundle on disk. |
| 36 FilePath GetBrowserBundlePath(); |
| 37 #endif // defined(OS_MACOSX) |
| 38 |
| 32 } // namespace chrome | 39 } // namespace chrome |
| 33 | 40 |
| 34 | 41 |
| 35 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ | 42 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ |
| OLD | NEW |