summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/posix
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-05-18 12:40:50 +0100
committerBen Murdoch <benm@google.com>2010-05-21 10:18:18 +0100
commit7b52283c1a7f90ff5441d7bc30677c91af016b22 (patch)
treed7f831bcec87066d040c8d876bada22365719ada /WebCore/platform/posix
parent92bec5fddeb29963e6b950dc26452b6976ff42e0 (diff)
downloadexternal_webkit-7b52283c1a7f90ff5441d7bc30677c91af016b22.zip
external_webkit-7b52283c1a7f90ff5441d7bc30677c91af016b22.tar.gz
external_webkit-7b52283c1a7f90ff5441d7bc30677c91af016b22.tar.bz2
Add a method to the PlatformBridge to resolve the filename of a file
given its representation as a content:// URI, and the associated JNI plumbing. Requires a frameworks/base change. Change-Id: I9b8b8bb3fbfa31c86f4212f91c140fe62c6c6682
Diffstat (limited to 'WebCore/platform/posix')
-rw-r--r--WebCore/platform/posix/FileSystemPOSIX.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/WebCore/platform/posix/FileSystemPOSIX.cpp b/WebCore/platform/posix/FileSystemPOSIX.cpp
index ac8c7fa..b7fcd71 100644
--- a/WebCore/platform/posix/FileSystemPOSIX.cpp
+++ b/WebCore/platform/posix/FileSystemPOSIX.cpp
@@ -213,10 +213,12 @@ bool makeAllDirectories(const String& path)
return true;
}
+#if !PLATFORM(ANDROID)
String pathGetFileName(const String& path)
{
return path.substring(path.reverseFind('/') + 1);
}
+#endif
String directoryName(const String& path)
{