Changeset 116273 in webkit
- Timestamp:
- May 6, 2012 10:33:34 PM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r116269 r116273 1 2012-05-06 Kinuko Yasuda <kinuko@chromium.org> 2 3 Cleanup: FileSystem API's Entry.toURL() impl should return KURL instead of String 4 https://bugs.webkit.org/show_bug.cgi?id=85736 5 6 Change the return type of Entry::toURL() from String to KURL. 7 8 Reviewed by David Levin. 9 10 No new tests as this change should not have any visible impact in the javascript layer. 11 12 * Modules/filesystem/EntryBase.cpp: 13 (WebCore::EntryBase::toURL): 14 * Modules/filesystem/EntryBase.h: 15 * platform/AsyncFileSystem.h: 16 * platform/blackberry/AsyncFileSystemBlackberry.cpp: 17 (AsyncFileSystemBlackberry::toURL): 18 * platform/blackberry/AsyncFileSystemBlackberry.h: 19 * platform/gtk/AsyncFileSystemGtk.cpp: 20 (AsyncFileSystemGtk::toURL): 21 * platform/gtk/AsyncFileSystemGtk.h: 22 1 23 2012-05-06 Kentaro Hara <haraken@chromium.org> 2 24 -
trunk/Source/WebCore/Modules/filesystem/EntryBase.cpp
r111075 r116273 55 55 } 56 56 57 String EntryBase::toURL() 57 KURL EntryBase::toURL() const 58 58 { 59 59 return m_fileSystem->asyncFileSystem()->toURL(m_fileSystem->securityOrigin()->toString(), m_fullPath); -
trunk/Source/WebCore/Modules/filesystem/EntryBase.h
r111075 r116273 34 34 #if ENABLE(FILE_SYSTEM) 35 35 36 #include " PlatformString.h"36 #include "KURL.h" 37 37 #include <wtf/PassRefPtr.h> 38 38 #include <wtf/RefCounted.h> … … 56 56 const String& name() const { return m_name; } 57 57 58 String toURL();58 KURL toURL() const; 59 59 60 60 protected: -
trunk/Source/WebCore/platform/AsyncFileSystem.h
r109324 r116273 73 73 static bool crackFileSystemURL(const KURL&, Type&, String& filePath); 74 74 75 virtual String toURL(const String& originString, const String& fullPath)= 0;75 virtual KURL toURL(const String& originString, const String& fullPath) const = 0; 76 76 77 77 // Subclass must implement this if it supports synchronous operations. -
trunk/Source/WebCore/platform/blackberry/AsyncFileSystemBlackBerry.cpp
r112106 r116273 81 81 } 82 82 83 String AsyncFileSystemBlackBerry::toURL(const String& originString, const String& fullPath) 83 KURL AsyncFileSystemBlackBerry::toURL(const String& originString, const String& fullPath) const 84 84 { 85 85 UNUSED_PARAM(originString); … … 87 87 88 88 notImplemented(); 89 return String();89 return KURL(); 90 90 } 91 91 -
trunk/Source/WebCore/platform/blackberry/AsyncFileSystemBlackBerry.h
r112106 r116273 30 30 AsyncFileSystemBlackBerry(AsyncFileSystem::Type); 31 31 virtual ~AsyncFileSystemBlackBerry(); 32 virtual String toURL(const String& originString, const String& fullPath);32 virtual KURL toURL(const String& originString, const String& fullPath) const; 33 33 virtual void move(const String& sourcePath, const String& destinationPath, PassOwnPtr<AsyncFileSystemCallbacks>); 34 34 virtual void copy(const String& sourcePath, const String& destinationPath, PassOwnPtr<AsyncFileSystemCallbacks>); -
trunk/Source/WebCore/platform/gtk/AsyncFileSystemGtk.cpp
r107986 r116273 70 70 } 71 71 72 String AsyncFileSystemGtk::toURL(const String& originString, const String& fullPath) 72 KURL AsyncFileSystemGtk::toURL(const String& originString, const String& fullPath) const 73 73 { 74 74 notImplemented(); 75 return String();75 return KURL(); 76 76 } 77 77 -
trunk/Source/WebCore/platform/gtk/AsyncFileSystemGtk.h
r107986 r116273 35 35 virtual ~AsyncFileSystemGtk(); 36 36 37 virtual String toURL(const String& originString, const String& fullPath);37 virtual KURL toURL(const String& originString, const String& fullPath) const; 38 38 virtual void move(const String& sourcePath, const String& destinationPath, PassOwnPtr<AsyncFileSystemCallbacks>); 39 39 virtual void copy(const String& sourcePath, const String& destinationPath, PassOwnPtr<AsyncFileSystemCallbacks>); -
trunk/Source/WebKit/chromium/ChangeLog
r116270 r116273 1 2012-05-06 Kinuko Yasuda <kinuko@chromium.org> 2 3 Cleanup: FileSystem API's Entry.toURL() impl should return KURL instead of String 4 https://bugs.webkit.org/show_bug.cgi?id=85736 5 6 Reviewed by David Levin. 7 8 Change AsyncFileSystemChromium::toURL()'s return type from String to KURL. 9 10 * src/AsyncFileSystemChromium.cpp: 11 (WebCore::AsyncFileSystemChromium::toURL): 12 String to KURL. 13 * src/AsyncFileSystemChromium.h: 14 (AsyncFileSystemChromium): 15 1 16 2012-05-06 Mark Pilgrim <pilgrim@chromium.org> 2 17 -
trunk/Source/WebKit/chromium/src/AsyncFileSystemChromium.cpp
r112510 r116273 199 199 } 200 200 201 String AsyncFileSystemChromium::toURL(const String& originString, const String& fullPath) 201 KURL AsyncFileSystemChromium::toURL(const String& originString, const String& fullPath) const 202 202 { 203 203 ASSERT(!originString.isEmpty()); 204 204 if (originString == "null") 205 return String();205 return KURL(); 206 206 207 207 // For now we don't support toURL for isolated filesystem (until we resolve the isolated filesystem lifetime issue). 208 208 if (type() == isolatedType) 209 return String();209 return KURL(); 210 210 211 211 if (type() == externalType) { … … 217 217 result.append(externalPathPrefix); 218 218 result.append(encodeWithURLEscapeSequences(fullPath)); 219 return result.toString();219 return KURL(ParsedURLString, result.toString()); 220 220 } 221 221 222 222 // For regular types we can just call virtualPathToFileSystemURL which appends the fullPath to the m_filesystemRootURL that should look like 'filesystem:<origin>/<typePrefix>'. 223 223 ASSERT(SecurityOrigin::create(m_filesystemRootURL)->toString() == originString); 224 return virtualPathToFileSystemURL(fullPath);224 return KURL(ParsedURLString, virtualPathToFileSystemURL(fullPath)); 225 225 } 226 226 -
trunk/Source/WebKit/chromium/src/AsyncFileSystemChromium.h
r112510 r116273 58 58 virtual ~AsyncFileSystemChromium(); 59 59 60 virtual String toURL(const String& originString, const String& fullPath);60 virtual KURL toURL(const String& originString, const String& fullPath) const; 61 61 virtual void move(const String& sourcePath, const String& destinationPath, PassOwnPtr<AsyncFileSystemCallbacks>); 62 62 virtual void copy(const String& sourcePath, const String& destinationPath, PassOwnPtr<AsyncFileSystemCallbacks>);
Note: See TracChangeset
for help on using the changeset viewer.