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

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

Issue 11031008: Upstreaming chrome/common/chrome_* diff. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | base/android/path_utils.cc » ('j') | base/android/path_utils_unittest.cc » ('J')
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 #include <string> 9 #include <string>
nilesh 2012/10/01 20:38:35 Remove the include.
aurimas (slooooooooow) 2012/10/01 21:06:41 Done.
10 10
11 class FilePath;
12
11 namespace base { 13 namespace base {
12 namespace android { 14 namespace android {
13 15
14 // Return the absolute path to the data directory of the current application. 16 // Return the absolute path to the data directory of the current application.
nilesh 2012/10/01 20:38:35 Please update the comment. Something like: "Retrie
aurimas (slooooooooow) 2012/10/01 21:06:41 Done.
15 // This method is dedicated for base_paths_android.c, Using 17 // This method is dedicated for base_paths_android.c, Using
16 // PathService::Get(base::DIR_ANDROID_APP_DATA, ...) gets the data dir. 18 // PathService::Get(base::DIR_ANDROID_APP_DATA, ...) gets the data dir.
17 std::string GetDataDirectory(); 19 bool GetDataDirectory(FilePath* result);
18 20
19 // Return the absolute path to the cache directory. This method is dedicated for 21 // 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 22 // base_paths_android.c, Using PathService::Get(base::DIR_CACHE, ...) gets the
21 // cache dir. 23 // cache dir.
22 std::string GetCacheDirectory(); 24 bool GetCacheDirectory(FilePath* result);
23 25
24 // Returns the path to the public downloads directory. 26 // Returns the path to the public downloads directory.
25 std::string GetDownloadsDirectory(); 27 bool GetDownloadsDirectory(FilePath* result);
26 28
27 // Returns the path to the native JNI libraries via 29 // Returns the path to the native JNI libraries via
28 // ApplicationInfo.nativeLibraryDir on the Java side. 30 // ApplicationInfo.nativeLibraryDir on the Java side.
29 std::string GetNativeLibraryDirectory(); 31 bool GetNativeLibraryDirectory(FilePath* result);
30 32
31 // Returns the absolute path to the external storage directory. 33 // Returns the absolute path to the external storage directory.
32 std::string GetExternalStorageDirectory(); 34 bool GetExternalStorageDirectory(FilePath* result);
33 35
34 bool RegisterPathUtils(JNIEnv* env); 36 bool RegisterPathUtils(JNIEnv* env);
35 37
36 } // namespace android 38 } // namespace android
37 } // namespace base 39 } // namespace base
38 40
39 #endif // BASE_ANDROID_PATH_UTILS_H_ 41 #endif // BASE_ANDROID_PATH_UTILS_H_
OLDNEW
« no previous file with comments | « no previous file | base/android/path_utils.cc » ('j') | base/android/path_utils_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698