| 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 15 matching lines...) Expand all Loading... |
| 26 // cache dir. | 26 // cache dir. |
| 27 BASE_EXPORT bool GetCacheDirectory(FilePath* result); | 27 BASE_EXPORT bool GetCacheDirectory(FilePath* result); |
| 28 | 28 |
| 29 // Retrieves the path to the public downloads directory. The result is placed | 29 // Retrieves the path to the public downloads directory. The result is placed |
| 30 // in the FilePath pointed to by 'result'. | 30 // in the FilePath pointed to by 'result'. |
| 31 bool GetDownloadsDirectory(FilePath* result); | 31 bool GetDownloadsDirectory(FilePath* result); |
| 32 | 32 |
| 33 // Retrieves the path to the native JNI libraries via | 33 // Retrieves the path to the native JNI libraries via |
| 34 // ApplicationInfo.nativeLibraryDir on the Java side. The result is placed in | 34 // ApplicationInfo.nativeLibraryDir on the Java side. The result is placed in |
| 35 // the FilePath pointed to by 'result'. | 35 // the FilePath pointed to by 'result'. |
| 36 bool GetNativeLibraryDirectory(FilePath* result); | 36 BASE_EXPORT bool GetNativeLibraryDirectory(FilePath* result); |
| 37 | 37 |
| 38 // Retrieves the absolute path to the external storage directory. The result | 38 // Retrieves the absolute path to the external storage directory. The result |
| 39 // is placed in the FilePath pointed to by 'result'. | 39 // is placed in the FilePath pointed to by 'result'. |
| 40 BASE_EXPORT bool GetExternalStorageDirectory(FilePath* result); | 40 BASE_EXPORT bool GetExternalStorageDirectory(FilePath* result); |
| 41 | 41 |
| 42 bool RegisterPathUtils(JNIEnv* env); | 42 bool RegisterPathUtils(JNIEnv* env); |
| 43 | 43 |
| 44 } // namespace android | 44 } // namespace android |
| 45 } // namespace base | 45 } // namespace base |
| 46 | 46 |
| 47 #endif // BASE_ANDROID_PATH_UTILS_H_ | 47 #endif // BASE_ANDROID_PATH_UTILS_H_ |
| OLD | NEW |