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" |
11 | 11 |
| 12 namespace base { |
| 13 |
12 class FilePath; | 14 class FilePath; |
13 | 15 |
14 namespace base { | |
15 namespace android { | 16 namespace android { |
16 | 17 |
17 // Retrieves the absolute path to the data directory of the current | 18 // Retrieves the absolute path to the data directory of the current |
18 // application. The result is placed in the FilePath pointed to by 'result'. | 19 // application. The result is placed in the FilePath pointed to by 'result'. |
19 // This method is dedicated for base_paths_android.c, Using | 20 // This method is dedicated for base_paths_android.c, Using |
20 // PathService::Get(base::DIR_ANDROID_APP_DATA, ...) gets the data dir. | 21 // PathService::Get(base::DIR_ANDROID_APP_DATA, ...) gets the data dir. |
21 BASE_EXPORT bool GetDataDirectory(FilePath* result); | 22 BASE_EXPORT bool GetDataDirectory(FilePath* result); |
22 | 23 |
23 // Retrieves the absolute path to the cache directory. The result is placed in | 24 // Retrieves the absolute path to the cache directory. The result is placed in |
24 // the FilePath pointed to by 'result'. This method is dedicated for | 25 // the FilePath pointed to by 'result'. This method is dedicated for |
(...skipping 13 matching lines...) Expand all Loading... |
38 // Retrieves the absolute path to the external storage directory. The result | 39 // Retrieves the absolute path to the external storage directory. The result |
39 // is placed in the FilePath pointed to by 'result'. | 40 // is placed in the FilePath pointed to by 'result'. |
40 BASE_EXPORT bool GetExternalStorageDirectory(FilePath* result); | 41 BASE_EXPORT bool GetExternalStorageDirectory(FilePath* result); |
41 | 42 |
42 bool RegisterPathUtils(JNIEnv* env); | 43 bool RegisterPathUtils(JNIEnv* env); |
43 | 44 |
44 } // namespace android | 45 } // namespace android |
45 } // namespace base | 46 } // namespace base |
46 | 47 |
47 #endif // BASE_ANDROID_PATH_UTILS_H_ | 48 #endif // BASE_ANDROID_PATH_UTILS_H_ |
OLD | NEW |