| 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 #ifndef BASE_ANDROID_PATH_UTILS_H_ | 5 #ifndef BASE_ANDROID_PATH_UTILS_H_ |
| 6 #define BASE_ANDROID_PATH_UTILS_H_ | 6 #define BASE_ANDROID_PATH_UTILS_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/base_export.h" | 10 #include "base/base_export.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // Retrieves the absolute path to the cache directory. The result is placed in | 28 // Retrieves the absolute path to the cache directory. The result is placed in |
| 29 // the FilePath pointed to by 'result'. This method is dedicated for | 29 // the FilePath pointed to by 'result'. This method is dedicated for |
| 30 // base_paths_android.c, Using PathService::Get(base::DIR_CACHE, ...) gets the | 30 // base_paths_android.c, Using PathService::Get(base::DIR_CACHE, ...) gets the |
| 31 // cache dir. | 31 // cache dir. |
| 32 BASE_EXPORT bool GetCacheDirectory(FilePath* result); | 32 BASE_EXPORT bool GetCacheDirectory(FilePath* result); |
| 33 | 33 |
| 34 // Retrieves the path to the thumbnail cache directory. The result is placed | 34 // Retrieves the path to the thumbnail cache directory. The result is placed |
| 35 // in the FilePath pointed to by 'result'. | 35 // in the FilePath pointed to by 'result'. |
| 36 BASE_EXPORT bool GetThumbnailCacheDirectory(FilePath* result); | 36 BASE_EXPORT bool GetThumbnailCacheDirectory(FilePath* result); |
| 37 | 37 |
| 38 // Retrieves the path to the downloads internal directory. The result is placed |
| 39 // in the FilePath pointed to by 'result'. |
| 40 BASE_EXPORT bool GetDownloadInternalDirectory(FilePath* result); |
| 41 |
| 38 // Retrieves the path to the public downloads directory. The result is placed | 42 // Retrieves the path to the public downloads directory. The result is placed |
| 39 // in the FilePath pointed to by 'result'. | 43 // in the FilePath pointed to by 'result'. |
| 40 BASE_EXPORT bool GetDownloadsDirectory(FilePath* result); | 44 BASE_EXPORT bool GetDownloadsDirectory(FilePath* result); |
| 41 | 45 |
| 42 // Retrieves the path to the native JNI libraries via | 46 // Retrieves the path to the native JNI libraries via |
| 43 // ApplicationInfo.nativeLibraryDir on the Java side. The result is placed in | 47 // ApplicationInfo.nativeLibraryDir on the Java side. The result is placed in |
| 44 // the FilePath pointed to by 'result'. | 48 // the FilePath pointed to by 'result'. |
| 45 BASE_EXPORT bool GetNativeLibraryDirectory(FilePath* result); | 49 BASE_EXPORT bool GetNativeLibraryDirectory(FilePath* result); |
| 46 | 50 |
| 47 // Retrieves the absolute path to the external storage directory. The result | 51 // Retrieves the absolute path to the external storage directory. The result |
| 48 // is placed in the FilePath pointed to by 'result'. | 52 // is placed in the FilePath pointed to by 'result'. |
| 49 BASE_EXPORT bool GetExternalStorageDirectory(FilePath* result); | 53 BASE_EXPORT bool GetExternalStorageDirectory(FilePath* result); |
| 50 | 54 |
| 51 } // namespace android | 55 } // namespace android |
| 52 } // namespace base | 56 } // namespace base |
| 53 | 57 |
| 54 #endif // BASE_ANDROID_PATH_UTILS_H_ | 58 #endif // BASE_ANDROID_PATH_UTILS_H_ |
| OLD | NEW |