Separate Simple Backend creation from initialization.
[chromium-blink-merge.git] / base / android / path_utils.h
blob60f8a79b1e2ce34c4787814b0810ad86ef8ef914
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
3 // found in the LICENSE file.
5 #ifndef BASE_ANDROID_PATH_UTILS_H_
6 #define BASE_ANDROID_PATH_UTILS_H_
8 #include <jni.h>
10 #include "base/base_export.h"
12 namespace base {
14 class FilePath;
16 namespace android {
18 // Retrieves the absolute path to the data directory of the current
19 // application. The result is placed in the FilePath pointed to by 'result'.
20 // This method is dedicated for base_paths_android.c, Using
21 // PathService::Get(base::DIR_ANDROID_APP_DATA, ...) gets the data dir.
22 BASE_EXPORT bool GetDataDirectory(FilePath* result);
24 // Retrieves the absolute path to the cache directory. The result is placed in
25 // the FilePath pointed to by 'result'. This method is dedicated for
26 // base_paths_android.c, Using PathService::Get(base::DIR_CACHE, ...) gets the
27 // cache dir.
28 BASE_EXPORT bool GetCacheDirectory(FilePath* result);
30 // Retrieves the path to the public downloads directory. The result is placed
31 // in the FilePath pointed to by 'result'.
32 BASE_EXPORT bool GetDownloadsDirectory(FilePath* result);
34 // Retrieves the path to the native JNI libraries via
35 // ApplicationInfo.nativeLibraryDir on the Java side. The result is placed in
36 // the FilePath pointed to by 'result'.
37 BASE_EXPORT bool GetNativeLibraryDirectory(FilePath* result);
39 // Retrieves the absolute path to the external storage directory. The result
40 // is placed in the FilePath pointed to by 'result'.
41 BASE_EXPORT bool GetExternalStorageDirectory(FilePath* result);
43 bool RegisterPathUtils(JNIEnv* env);
45 } // namespace android
46 } // namespace base
48 #endif // BASE_ANDROID_PATH_UTILS_H_