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 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 // cache dir. | 21 // cache dir. |
22 std::string GetCacheDirectory(); | 22 std::string GetCacheDirectory(); |
23 | 23 |
24 // Returns the path to the public downloads directory. | 24 // Returns the path to the public downloads directory. |
25 std::string GetDownloadsDirectory(); | 25 std::string GetDownloadsDirectory(); |
26 | 26 |
27 // Returns the path to the native JNI libraries via | 27 // Returns the path to the native JNI libraries via |
28 // ApplicationInfo.nativeLibraryDir on the Java side. | 28 // ApplicationInfo.nativeLibraryDir on the Java side. |
29 std::string GetNativeLibraryDirectory(); | 29 std::string GetNativeLibraryDirectory(); |
30 | 30 |
| 31 // Returns the absolute path to the external storage directory. |
| 32 std::string GetExternalStorageDirectory(); |
| 33 |
31 bool RegisterPathUtils(JNIEnv* env); | 34 bool RegisterPathUtils(JNIEnv* env); |
32 | 35 |
33 } // namespace android | 36 } // namespace android |
34 } // namespace base | 37 } // namespace base |
35 | 38 |
36 #endif // BASE_ANDROID_PATH_UTILS_H_ | 39 #endif // BASE_ANDROID_PATH_UTILS_H_ |
OLD | NEW |