OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 |
11 namespace base { | 11 namespace base { |
12 namespace android { | 12 namespace android { |
13 | 13 |
14 // Return the absolute path to the data directory of the current application. | 14 // Return the absolute path to the data directory of the current application. |
15 // This method is dedicated for base_paths_android.c, Using | 15 // This method is dedicated for base_paths_android.c, Using |
16 // PathService::Get(base::DIR_ANDROID_APP_DATA, ...) gets the data dir. | 16 // PathService::Get(base::DIR_ANDROID_APP_DATA, ...) gets the data dir. |
17 std::string GetDataDirectory(); | 17 std::string GetDataDirectory(); |
18 | 18 |
19 // Return the absolute path to the cache directory. This method is dedicated for | 19 // Return the absolute path to the cache directory. This method is dedicated for |
20 // base_paths_android.c, Using PathService::Get(base::DIR_CACHE, ...) gets the | 20 // base_paths_android.c, Using PathService::Get(base::DIR_CACHE, ...) gets the |
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. |
| 25 std::string GetDownloadsDirectory(); |
| 26 |
24 bool RegisterPathUtils(JNIEnv* env); | 27 bool RegisterPathUtils(JNIEnv* env); |
25 | 28 |
26 } // namespace android | 29 } // namespace android |
27 } // namespace base | 30 } // namespace base |
28 | 31 |
29 #endif // BASE_ANDROID_PATH_UTILS_H_ | 32 #endif // BASE_ANDROID_PATH_UTILS_H_ |
OLD | NEW |