| OLD | NEW |
| 1 // Copyright (c) 2011 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 #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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| 11 #if defined(OS_MACOSX) | 11 #if defined(OS_MACOSX) |
| (...skipping 22 matching lines...) Expand all Loading... |
| 34 // $XDG_CACHE_HOME and on Mac it can be under ~/Library/Caches. | 34 // $XDG_CACHE_HOME and on Mac it can be under ~/Library/Caches. |
| 35 // Note that the Chrome cache directories are actually subdirectories | 35 // Note that the Chrome cache directories are actually subdirectories |
| 36 // of this directory, with names like "Cache" and "Media Cache". | 36 // of this directory, with names like "Cache" and "Media Cache". |
| 37 // This will always fill in |result| with a directory, sometimes | 37 // This will always fill in |result| with a directory, sometimes |
| 38 // just |profile_dir|. | 38 // just |profile_dir|. |
| 39 void GetUserCacheDirectory(const FilePath& profile_dir, FilePath* result); | 39 void GetUserCacheDirectory(const FilePath& profile_dir, FilePath* result); |
| 40 | 40 |
| 41 // Get the path to the user's documents directory. | 41 // Get the path to the user's documents directory. |
| 42 bool GetUserDocumentsDirectory(FilePath* result); | 42 bool GetUserDocumentsDirectory(FilePath* result); |
| 43 | 43 |
| 44 #if defined (OS_WIN) | 44 #if defined(OS_WIN) || defined(OS_LINUX) |
| 45 // Gets the path to a safe default download directory for a user. | 45 // Gets the path to a safe default download directory for a user. |
| 46 bool GetUserDownloadsDirectorySafe(FilePath* result); | 46 bool GetUserDownloadsDirectorySafe(FilePath* result); |
| 47 #endif | 47 #endif |
| 48 | 48 |
| 49 // Get the path to the user's downloads directory. | 49 // Get the path to the user's downloads directory. |
| 50 bool GetUserDownloadsDirectory(FilePath* result); | 50 bool GetUserDownloadsDirectory(FilePath* result); |
| 51 | 51 |
| 52 // The path to the user's desktop. | 52 // The path to the user's desktop. |
| 53 bool GetUserDesktop(FilePath* result); | 53 bool GetUserDesktop(FilePath* result); |
| 54 | 54 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 81 | 81 |
| 82 // Returns the NSBundle for the outer browser application, even when running | 82 // Returns the NSBundle for the outer browser application, even when running |
| 83 // inside the helper. In unbundled applications, such as tests, returns nil. | 83 // inside the helper. In unbundled applications, such as tests, returns nil. |
| 84 NSBundle* OuterAppBundle(); | 84 NSBundle* OuterAppBundle(); |
| 85 | 85 |
| 86 #endif // OS_MACOSX | 86 #endif // OS_MACOSX |
| 87 | 87 |
| 88 } // namespace chrome | 88 } // namespace chrome |
| 89 | 89 |
| 90 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ | 90 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ |
| OLD | NEW |