Changeset 117544 in webkit
- Timestamp:
- May 17, 2012 10:35:07 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r117541 r117544 1 2012-05-15 Kinuko Yasuda <kinuko@chromium.org> 2 3 Some Spelling Mistakes Result in Compile Errors with ENABLE(FILE_SYSTEM) in LocalFileSystem.cpp 4 https://bugs.webkit.org/show_bug.cgi?id=86103 5 6 Reviewed by Rob Buis. 7 8 Added build fixes and some (limited) common implementation for non-chromium ports. 9 10 No new tests as this should have no functionality changes. 11 12 * Modules/filesystem/DOMFileSystemBase.cpp: 13 (WebCore::DOMFileSystemBase::isValidType): Added common implementation for non-chromium ports. 14 (WebCore::DOMFileSystemBase::crackFileSystemURL): Ditto. 15 (WebCore::DOMFileSystemBase::supportsToURL): Ditto. 16 (WebCore::DOMFileSystemBase::createFileSystemURL): Ditto. 17 * Modules/filesystem/LocalFileSystem.cpp: 18 (WebCore::LocalFileSystem::readFileSystem): Fixed. 19 (WebCore::LocalFileSystem::requestFileSystem): Fixed. 20 * platform/blackberry/AsyncFileSystemBlackBerry.cpp: 21 (WebCore::AsyncFileSystem::openFileSystem): Fixed. 22 * platform/gtk/AsyncFileSystemGtk.cpp: 23 (WebCore::AsyncFileSystem::openFileSystem): Fixed. 24 1 25 2012-05-17 Wei James <james.wei@intel.com> 2 26 -
trunk/Source/WebCore/Modules/filesystem/DOMFileSystemBase.cpp
r116388 r117544 69 69 } 70 70 71 #if !PLATFORM(CHROMIUM) 72 // static 73 bool DOMFileSystemBase::isValidType(FileSystemType type) 74 { 75 return type == FileSystemTypeTemporary || type == FileSystemTypePersistent; 76 } 77 78 // static 79 bool DOMFileSystemBase::crackFileSystemURL(const KURL& url, FileSystemType& type, String& filePath) 80 { 81 if (!url.protocolIs("filesystem")) 82 return false; 83 84 if (!url.innerURL()) 85 return false; 86 87 String typeString = url.innerURL()->path().substring(1); 88 if (typeString == temporaryPathPrefix) 89 type = FileSystemTypeTemporary; 90 else if (typeString == persistentPathPrefix) 91 type = FileSystemTypePersistent; 92 else 93 return false; 94 95 filePath = decodeURLEscapeSequences(url.path()); 96 return true; 97 } 98 99 bool DOMFileSystemBase::supportsToURL() const 100 { 101 ASSERT(isValidType(m_type)); 102 return true; 103 } 104 105 KURL DOMFileSystemBase::createFileSystemURL(const String& fullPath) const 106 { 107 ASSERT(DOMFilePath::isAbsolute(fullPath)); 108 KURL url = m_filesystemRootURL; 109 // Remove the extra leading slash. 110 url.setPath(url.path() + encodeWithURLEscapeSequences(fullPath.substring(1))); 111 return url; 112 } 113 #endif 114 71 115 SecurityOrigin* DOMFileSystemBase::securityOrigin() const 72 116 { -
trunk/Source/WebCore/Modules/filesystem/LocalFileSystem.cpp
r116388 r117544 83 83 } 84 84 85 void LocalFileSystem::readFileSystem(ScriptExecutionContext* context, DOMFileSystemBase::Type, PassOwnPtr<AsyncFileSystemCallbacks> callbacks, FileSystemSynchronousMode)85 void LocalFileSystem::readFileSystem(ScriptExecutionContext* context, FileSystemType, PassOwnPtr<AsyncFileSystemCallbacks> callbacks, FileSystemSynchronousType) 86 86 { 87 87 // AsyncFileSystem::openFileSystem calls callbacks synchronously, so the method needs to be called asynchronously. … … 89 89 } 90 90 91 void LocalFileSystem::requestFileSystem(ScriptExecutionContext* context, DOMFileSystemBase::Type, long long, PassOwnPtr<AsyncFileSystemCallbacks> callbacks, FileSystemSynchronousType)91 void LocalFileSystem::requestFileSystem(ScriptExecutionContext* context, FileSystemType, long long, PassOwnPtr<AsyncFileSystemCallbacks> callbacks, FileSystemSynchronousType) 92 92 { 93 93 // AsyncFileSystem::openFileSystem calls callbacks synchronously, so the method needs to be called asynchronously. -
trunk/Source/WebCore/platform/blackberry/AsyncFileSystemBlackBerry.cpp
r116388 r117544 41 41 } 42 42 43 void AsyncFileSystem::openFileSystem(const KURL& basePath, const String& storageIdentifier, bool, PassOwnPtr<AsyncFileSystemCallbacks> callbacks)43 void AsyncFileSystem::openFileSystem(const String& basePath, const String& storageIdentifier, bool, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) 44 44 { 45 45 UNUSED_PARAM(basePath); -
trunk/Source/WebCore/platform/gtk/AsyncFileSystemGtk.cpp
r116388 r117544 41 41 } 42 42 43 void AsyncFileSystem::openFileSystem(const KURL& basePath, const String& storageIdentifier, bool, PassOwnPtr<AsyncFileSystemCallbacks> callbacks)43 void AsyncFileSystem::openFileSystem(const String& basePath, const String& storageIdentifier, bool, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) 44 44 { 45 45 notImplemented();
Note: See TracChangeset
for help on using the changeset viewer.