mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2025-02-17 23:43:17 +03:00
base: Remove JNI function on Android
This commit is contained in:
parent
a61bfa6458
commit
cb962b5887
@ -6,14 +6,22 @@
|
||||
|
||||
namespace base {
|
||||
|
||||
bool ContentUriExists(const FilePath& content_uri) {
|
||||
return false;
|
||||
std::optional<std::string> TranslateOpenFlagsToJavaMode(uint32_t) {
|
||||
return {};
|
||||
}
|
||||
|
||||
File OpenContentUriForRead(const FilePath& content_uri) {
|
||||
File OpenContentUri(const FilePath&, uint32_t) {
|
||||
return {};
|
||||
}
|
||||
|
||||
int64_t GetContentUriFileSize(const FilePath&) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
bool ContentUriExists(const FilePath&) {
|
||||
return false;
|
||||
}
|
||||
|
||||
std::string GetContentUriMimeType(const FilePath& content_uri) {
|
||||
return {};
|
||||
}
|
||||
@ -27,8 +35,4 @@ bool DeleteContentUri(const FilePath& content_uri) {
|
||||
return false;
|
||||
}
|
||||
|
||||
FilePath GetContentUriFromFilePath(const FilePath& file_path) {
|
||||
return {};
|
||||
}
|
||||
|
||||
} // namespace base
|
||||
|
@ -4,22 +4,10 @@
|
||||
|
||||
#include "base/files/file_util.h"
|
||||
|
||||
#include "base/android/jni_string.h"
|
||||
#include "base/files/file_path.h"
|
||||
#include "base/path_service.h"
|
||||
|
||||
// Must come after all headers that specialize FromJniType() / ToJniType().
|
||||
#include "base/base_jni/FileUtils_jni.h"
|
||||
|
||||
namespace base {
|
||||
namespace android {
|
||||
|
||||
static std::string JNI_FileUtils_GetAbsoluteFilePath(JNIEnv* env,
|
||||
std::string& file_path) {
|
||||
return MakeAbsoluteFilePath(base::FilePath(file_path)).value();
|
||||
}
|
||||
|
||||
} // namespace android
|
||||
|
||||
bool GetShmemTempDir(bool executable, base::FilePath* path) {
|
||||
return PathService::Get(base::DIR_CACHE, path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user