diff options
author | Steve Block <steveblock@google.com> | 2011-06-08 10:42:33 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-06-08 13:52:19 +0100 |
commit | 5461f2587f09db45fac0a6f6e1b9c62f638aebc0 (patch) | |
tree | af1db1ccafffc50b49e7edbf1a85845e4ea2a8d3 /Source/WebCore/platform/android | |
parent | 74ee772b3c1ea8b557e5a596e9cbc655d1c0e161 (diff) | |
download | external_webkit-5461f2587f09db45fac0a6f6e1b9c62f638aebc0.zip external_webkit-5461f2587f09db45fac0a6f6e1b9c62f638aebc0.tar.gz external_webkit-5461f2587f09db45fac0a6f6e1b9c62f638aebc0.tar.bz2 |
Merge WebKit at r82507: Fix conflicts due to new StorageTracker
- FileSystemAndroid.cpp, FileSystemPOSIX.cpp
Use new common version of listDirectory(), which is identical to the
existing Android version.
- StorageNamespace.h, StorageNamespaceImpl.h
Conflict due to Android's clearPage()
- PageGroup.cpp
Conflict due to Android's clearDomStorage()
See http://trac.webkit.org/changeset/80892
Change-Id: Ifac131155f5019959de8761438cd0372547b0e6c
Diffstat (limited to 'Source/WebCore/platform/android')
-rw-r--r-- | Source/WebCore/platform/android/FileSystemAndroid.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/Source/WebCore/platform/android/FileSystemAndroid.cpp b/Source/WebCore/platform/android/FileSystemAndroid.cpp index 30dc1d3..5efba84 100644 --- a/Source/WebCore/platform/android/FileSystemAndroid.cpp +++ b/Source/WebCore/platform/android/FileSystemAndroid.cpp @@ -86,30 +86,6 @@ String homeDirectoryPath() return sPluginPath; } -Vector<String> listDirectory(const String& path, const String& filter) -{ - Vector<String> entries; - CString cpath = path.utf8(); - CString cfilter = filter.utf8(); - DIR* dir = opendir(cpath.data()); - if (dir) { - struct dirent* dp; - while ((dp = readdir(dir))) { - const char* name = dp->d_name; - if (!strcmp(name, ".") || !strcmp(name, "..")) - continue; - if (fnmatch(cfilter.data(), name, 0)) - continue; - char filePath[1024]; - if (static_cast<int>(sizeof(filePath) - 1) < snprintf(filePath, sizeof(filePath), "%s/%s", cpath.data(), name)) - continue; // buffer overflow - entries.append(filePath); - } - closedir(dir); - } - return entries; -} - // We define our own pathGetFileName rather than use the POSIX versions as we // may get passed a content URI representing the path to the file. We pass // the input through fileSystemRepresentation before using it to resolve it if |