Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: base/android/path_utils.h

Issue 23964011: Reuse webview classic cookies file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor fix Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/android/java/src/org/chromium/base/PathUtils.java ('k') | base/android/path_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 { 12 namespace base {
13 13
14 class FilePath; 14 class FilePath;
15 15
16 namespace android { 16 namespace android {
17 17
18 // Retrieves the absolute path to the data directory of the current 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'. 19 // application. The result is placed in the FilePath pointed to by 'result'.
20 // This method is dedicated for base_paths_android.c, Using 20 // This method is dedicated for base_paths_android.c, Using
21 // PathService::Get(base::DIR_ANDROID_APP_DATA, ...) gets the data dir. 21 // PathService::Get(base::DIR_ANDROID_APP_DATA, ...) gets the data dir.
22 BASE_EXPORT bool GetDataDirectory(FilePath* result); 22 BASE_EXPORT bool GetDataDirectory(FilePath* result);
23 23
24 // Retrieves the absolute path to the database directory that Android
25 // framework's SQLiteDatabase class uses when creating database files.
26 BASE_EXPORT bool GetDatabaseDirectory(FilePath* result);
27
24 // Retrieves the absolute path to the cache directory. The result is placed in 28 // 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 29 // the FilePath pointed to by 'result'. This method is dedicated for
26 // base_paths_android.c, Using PathService::Get(base::DIR_CACHE, ...) gets the 30 // base_paths_android.c, Using PathService::Get(base::DIR_CACHE, ...) gets the
27 // cache dir. 31 // cache dir.
28 BASE_EXPORT bool GetCacheDirectory(FilePath* result); 32 BASE_EXPORT bool GetCacheDirectory(FilePath* result);
29 33
30 // Retrieves the path to the public downloads directory. The result is placed 34 // Retrieves the path to the public downloads directory. The result is placed
31 // in the FilePath pointed to by 'result'. 35 // in the FilePath pointed to by 'result'.
32 BASE_EXPORT bool GetDownloadsDirectory(FilePath* result); 36 BASE_EXPORT bool GetDownloadsDirectory(FilePath* result);
33 37
34 // Retrieves the path to the native JNI libraries via 38 // Retrieves the path to the native JNI libraries via
35 // ApplicationInfo.nativeLibraryDir on the Java side. The result is placed in 39 // ApplicationInfo.nativeLibraryDir on the Java side. The result is placed in
36 // the FilePath pointed to by 'result'. 40 // the FilePath pointed to by 'result'.
37 BASE_EXPORT bool GetNativeLibraryDirectory(FilePath* result); 41 BASE_EXPORT bool GetNativeLibraryDirectory(FilePath* result);
38 42
39 // Retrieves the absolute path to the external storage directory. The result 43 // Retrieves the absolute path to the external storage directory. The result
40 // is placed in the FilePath pointed to by 'result'. 44 // is placed in the FilePath pointed to by 'result'.
41 BASE_EXPORT bool GetExternalStorageDirectory(FilePath* result); 45 BASE_EXPORT bool GetExternalStorageDirectory(FilePath* result);
42 46
43 bool RegisterPathUtils(JNIEnv* env); 47 bool RegisterPathUtils(JNIEnv* env);
44 48
45 } // namespace android 49 } // namespace android
46 } // namespace base 50 } // namespace base
47 51
48 #endif // BASE_ANDROID_PATH_UTILS_H_ 52 #endif // BASE_ANDROID_PATH_UTILS_H_
OLDNEW
« no previous file with comments | « base/android/java/src/org/chromium/base/PathUtils.java ('k') | base/android/path_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698