summaryrefslogtreecommitdiff
path: root/Source/WebCore/fileapi/DOMFileSystemBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/fileapi/DOMFileSystemBase.cpp')
-rw-r--r--Source/WebCore/fileapi/DOMFileSystemBase.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/Source/WebCore/fileapi/DOMFileSystemBase.cpp b/Source/WebCore/fileapi/DOMFileSystemBase.cpp
index ec8ef725a..2135f2bbc 100644
--- a/Source/WebCore/fileapi/DOMFileSystemBase.cpp
+++ b/Source/WebCore/fileapi/DOMFileSystemBase.cpp
@@ -50,43 +50,6 @@
namespace WebCore {
-const char DOMFileSystemBase::kPersistentPathPrefix[] = "persistent";
-const size_t DOMFileSystemBase::kPersistentPathPrefixLength = sizeof(DOMFileSystemBase::kPersistentPathPrefix) - 1;
-const char DOMFileSystemBase::kTemporaryPathPrefix[] = "temporary";
-const size_t DOMFileSystemBase::kTemporaryPathPrefixLength = sizeof(DOMFileSystemBase::kTemporaryPathPrefix) - 1;
-const char DOMFileSystemBase::kExternalPathPrefix[] = "external";
-const size_t DOMFileSystemBase::kExternalPathPrefixLength = sizeof(DOMFileSystemBase::kExternalPathPrefix) - 1;
-
-bool DOMFileSystemBase::crackFileSystemURL(const KURL& url, AsyncFileSystem::Type& type, String& filePath)
-{
- if (!url.protocolIs("filesystem"))
- return false;
-
- KURL originURL(ParsedURLString, url.path());
- String path = decodeURLEscapeSequences(originURL.path());
- if (path.isEmpty() || path[0] != '/')
- return false;
- path = path.substring(1);
-
- if (path.startsWith(kTemporaryPathPrefix)) {
- type = AsyncFileSystem::Temporary;
- path = path.substring(kTemporaryPathPrefixLength);
- } else if (path.startsWith(kPersistentPathPrefix)) {
- type = AsyncFileSystem::Persistent;
- path = path.substring(kPersistentPathPrefixLength);
- } else if (path.startsWith(kExternalPathPrefix)) {
- type = AsyncFileSystem::External;
- path = path.substring(kExternalPathPrefixLength);
- } else
- return false;
-
- if (path.isEmpty() || path[0] != '/')
- return false;
-
- filePath.swap(path);
- return true;
-}
-
DOMFileSystemBase::DOMFileSystemBase(ScriptExecutionContext* context, const String& name, PassOwnPtr<AsyncFileSystem> asyncFileSystem)
: m_context(context)
, m_name(name)