Changeset 146299 in webkit
- Timestamp:
- Mar 19, 2013, 9:08:49 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r146280 r146299 1 2013-03-19 Mark Pilgrim <pilgrim@chromium.org> 2 3 [Chromium] Migrate to WEBKIT_USE_NEW_WEBFILESYSTEMTYPE 4 https://bugs.webkit.org/show_bug.cgi?id=112754 5 6 Reviewed by Darin Fisher. 7 8 Remove old code behind ifndef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE 9 now that it's always defined. 10 11 * public/WebCommonWorkerClient.h: 12 (WebCommonWorkerClient): 13 * public/WebFrame.h: 14 (WebFrame): 15 * public/WebFrameClient.h: 16 (WebFrameClient): 17 (WebKit::WebFrameClient::openFileSystem): 18 (WebKit::WebFrameClient::deleteFileSystem): 19 * src/LocalFileSystemChromium.cpp: 20 (WebCore): 21 (WebCore::openFileSystemHelper): 22 (WebCore::LocalFileSystem::deleteFileSystem): 23 * src/WebFrameImpl.cpp: 24 * src/WebFrameImpl.h: 25 (WebFrameImpl): 26 * src/WebWorkerClientImpl.cpp: 27 (WebKit::WebWorkerClientImpl::openFileSystem): 28 * src/WebWorkerClientImpl.h: 29 * src/WorkerFileSystemCallbacksBridge.cpp: 30 * src/WorkerFileSystemCallbacksBridge.h: 31 (WorkerFileSystemCallbacksBridge): 32 1 33 2013-03-19 Kenneth Russell <kbr@google.com> 2 34 -
trunk/Source/WebKit/chromium/public/WebCommonWorkerClient.h
r146111 r146299 61 61 62 62 // Called on the main webkit thread before opening a file system. 63 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE64 63 virtual void openFileSystem(WebFileSystemType, long long size, bool create, WebFileSystemCallbacks*) 65 #else66 virtual void openFileSystem(WebFileSystem::Type, long long size, bool create, WebFileSystemCallbacks*)67 #endif68 64 { 69 65 WEBKIT_ASSERT_NOT_REACHED(); -
trunk/Source/WebKit/chromium/public/WebFrame.h
r146111 r146299 292 292 virtual v8::Local<v8::Context> mainWorldScriptContext() const = 0; 293 293 294 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE295 294 // Creates an instance of file system object. 296 295 virtual v8::Handle<v8::Value> createFileSystem(WebFileSystemType, … … 309 308 const WebString& filePath, 310 309 bool isDirectory) = 0; 311 #else312 // Creates an instance of file system object.313 virtual v8::Handle<v8::Value> createFileSystem(WebFileSystem::Type,314 const WebString& name,315 const WebString& rootURL) = 0;316 // Creates an instance of serializable file system object.317 // FIXME: Remove this API after we have a better way of creating serialized318 // file system object.319 virtual v8::Handle<v8::Value> createSerializableFileSystem(WebFileSystem::Type,320 const WebString& name,321 const WebString& rootURL) = 0;322 // Creates an instance of file or directory entry object.323 virtual v8::Handle<v8::Value> createFileEntry(WebFileSystem::Type,324 const WebString& fileSystemName,325 const WebString& fileSystemRootURL,326 const WebString& filePath,327 bool isDirectory) = 0;328 #endif // WEBKIT_USE_NEW_WEBFILESYSTEMTYPE329 310 330 311 // Navigation ---------------------------------------------------------- -
trunk/Source/WebKit/chromium/public/WebFrameClient.h
r146111 r146299 361 361 // called otherwise. The create bool is for indicating whether or not to 362 362 // create root path for file systems if it do not exist. 363 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE364 363 virtual void openFileSystem( 365 364 WebFrame*, WebFileSystemType, long long size, 366 365 bool create, WebFileSystemCallbacks*) { } 367 #else368 virtual void openFileSystem(369 WebFrame*, WebFileSystem::Type, long long size,370 bool create, WebFileSystemCallbacks*) { }371 #endif372 366 373 367 // Deletes FileSystem. … … 377 371 // All in-flight operations and following operations may fail after the 378 372 // FileSystem is deleted. 379 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE380 373 virtual void deleteFileSystem( 381 374 WebFrame*, WebFileSystemType, WebFileSystemCallbacks*) { } 382 #else383 virtual void deleteFileSystem(384 WebFrame*, WebFileSystem::Type, WebFileSystemCallbacks*) { }385 #endif386 375 387 376 // Quota --------------------------------------------------------- -
trunk/Source/WebKit/chromium/src/LocalFileSystemChromium.cpp
r146111 r146299 155 155 } 156 156 157 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE158 157 void openFileSystemForWorker(WebCommonWorkerClient* commonClient, WebFileSystemType type, long long size, bool create, WebFileSystemCallbacksImpl* callbacks, FileSystemSynchronousType synchronousType) 159 #else160 void openFileSystemForWorker(WebCommonWorkerClient* commonClient, WebFileSystem::Type type, long long size, bool create, WebFileSystemCallbacksImpl* callbacks, FileSystemSynchronousType synchronousType)161 #endif162 158 { 163 159 WorkerScriptController* controller = WorkerScriptController::controllerForContext(); … … 205 201 allowed = false; 206 202 else 207 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE208 203 webFrame->client()->openFileSystem(webFrame, static_cast<WebFileSystemType>(type), size, create == CreateIfNotPresent, new WebFileSystemCallbacksImpl(callbacks)); 209 #else210 webFrame->client()->openFileSystem(webFrame, static_cast<WebFileSystem::Type>(type), size, create == CreateIfNotPresent, new WebFileSystemCallbacksImpl(callbacks));211 #endif212 204 } else { 213 205 #if ENABLE(WORKERS) … … 217 209 allowed = false; 218 210 else 219 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE220 211 openFileSystemForWorker(webWorker->commonClient(), static_cast<WebFileSystemType>(type), size, create == CreateIfNotPresent, new WebFileSystemCallbacksImpl(callbacks, context, synchronousType), synchronousType); 221 #else222 openFileSystemForWorker(webWorker->commonClient(), static_cast<WebFileSystem::Type>(type), size, create == CreateIfNotPresent, new WebFileSystemCallbacksImpl(callbacks, context, synchronousType), synchronousType);223 #endif224 212 #else 225 213 ASSERT_NOT_REACHED(); … … 256 244 } 257 245 258 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE259 246 webFrame->client()->deleteFileSystem(webFrame, static_cast<WebFileSystemType>(type), new WebFileSystemCallbacksImpl(callbacks)); 260 #else261 webFrame->client()->deleteFileSystem(webFrame, static_cast<WebFileSystem::Type>(type), new WebFileSystemCallbacksImpl(callbacks));262 #endif263 247 } 264 248 -
trunk/Source/WebKit/chromium/src/WebFrameImpl.cpp
r146111 r146299 903 903 } 904 904 905 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE906 905 v8::Handle<v8::Value> WebFrameImpl::createFileSystem(WebFileSystemType type, const WebString& name, const WebString& path) 907 #else908 v8::Handle<v8::Value> WebFrameImpl::createFileSystem(WebFileSystem::Type type, const WebString& name, const WebString& path)909 #endif910 906 { 911 907 ASSERT(frame()); … … 913 909 } 914 910 915 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE916 911 v8::Handle<v8::Value> WebFrameImpl::createSerializableFileSystem(WebFileSystemType type, const WebString& name, const WebString& path) 917 #else918 v8::Handle<v8::Value> WebFrameImpl::createSerializableFileSystem(WebFileSystem::Type type, const WebString& name, const WebString& path)919 #endif920 912 { 921 913 ASSERT(frame()); … … 925 917 } 926 918 927 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE928 919 v8::Handle<v8::Value> WebFrameImpl::createFileEntry(WebFileSystemType type, const WebString& fileSystemName, const WebString& fileSystemPath, const WebString& filePath, bool isDirectory) 929 #else930 v8::Handle<v8::Value> WebFrameImpl::createFileEntry(WebFileSystem::Type type, const WebString& fileSystemName, const WebString& fileSystemPath, const WebString& filePath, bool isDirectory)931 #endif932 920 { 933 921 ASSERT(frame()); -
trunk/Source/WebKit/chromium/src/WebFrameImpl.h
r146111 r146299 129 129 v8::Handle<v8::Value> argv[]); 130 130 virtual v8::Local<v8::Context> mainWorldScriptContext() const; 131 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE132 131 virtual v8::Handle<v8::Value> createFileSystem(WebFileSystemType, 133 132 const WebString& name, … … 141 140 const WebString& filePath, 142 141 bool isDirectory); 143 #else144 virtual v8::Handle<v8::Value> createFileSystem(WebFileSystem::Type,145 const WebString& name,146 const WebString& path);147 virtual v8::Handle<v8::Value> createSerializableFileSystem(WebFileSystem::Type,148 const WebString& name,149 const WebString& path);150 virtual v8::Handle<v8::Value> createFileEntry(WebFileSystem::Type,151 const WebString& fileSystemName,152 const WebString& fileSystemPath,153 const WebString& filePath,154 bool isDirectory);155 #endif156 142 virtual void reload(bool ignoreCache); 157 143 virtual void reloadWithOverrideURL(const WebURL& overrideUrl, bool ignoreCache); -
trunk/Source/WebKit/chromium/src/WebWorkerClientImpl.cpp
r146111 r146299 123 123 } 124 124 125 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE126 125 void WebWorkerClientImpl::openFileSystem(WebFileSystemType type, long long size, bool create, 127 126 WebFileSystemCallbacks* callbacks) 128 #else129 void WebWorkerClientImpl::openFileSystem(WebFileSystem::Type type, long long size, bool create,130 WebFileSystemCallbacks* callbacks)131 #endif132 127 { 133 128 if (askedToTerminate()) { -
trunk/Source/WebKit/chromium/src/WebWorkerClientImpl.h
r146111 r146299 85 85 virtual bool allowDatabase(WebFrame*, const WebString& name, const WebString& displayName, unsigned long estimatedSize) OVERRIDE; 86 86 virtual bool allowFileSystem(); 87 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE88 87 virtual void openFileSystem(WebFileSystemType, long long size, bool create, 89 88 WebFileSystemCallbacks*) OVERRIDE; 90 #else91 virtual void openFileSystem(WebFileSystem::Type, long long size, bool create,92 WebFileSystemCallbacks*) OVERRIDE;93 #endif94 89 virtual bool allowIndexedDB(const WebString& name) OVERRIDE; 95 90 -
trunk/Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.cpp
r146111 r146299 207 207 } 208 208 209 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE210 209 void WorkerFileSystemCallbacksBridge::postOpenFileSystemToMainThread(WebCommonWorkerClient* commonClient, WebFileSystemType type, long long size, bool create, const String& mode) 211 #else212 void WorkerFileSystemCallbacksBridge::postOpenFileSystemToMainThread(WebCommonWorkerClient* commonClient, WebFileSystem::Type type, long long size, bool create, const String& mode)213 #endif214 210 { 215 211 dispatchTaskToMainThread( … … 315 311 } 316 312 317 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE318 313 void WorkerFileSystemCallbacksBridge::openFileSystemOnMainThread(ScriptExecutionContext*, WebCommonWorkerClient* commonClient, WebFileSystemType type, long long size, bool create, PassRefPtr<WorkerFileSystemCallbacksBridge> bridge, const String& mode) 319 #else320 void WorkerFileSystemCallbacksBridge::openFileSystemOnMainThread(ScriptExecutionContext*, WebCommonWorkerClient* commonClient, WebFileSystem::Type type, long long size, bool create, PassRefPtr<WorkerFileSystemCallbacksBridge> bridge, const String& mode)321 #endif322 314 { 323 315 if (!commonClient) -
trunk/Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.h
r146111 r146299 86 86 87 87 // Methods that create an instance and post an initial request task to the main thread. They must be called on the worker thread. 88 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE89 88 void postOpenFileSystemToMainThread(WebCommonWorkerClient*, WebFileSystemType, long long size, bool create, const String& mode); 90 #else91 void postOpenFileSystemToMainThread(WebCommonWorkerClient*, WebFileSystem::Type, long long size, bool create, const String& mode);92 #endif93 89 void postMoveToMainThread(WebFileSystem*, const WebCore::KURL& srcPath, const WebCore::KURL& destPath, const String& mode); 94 90 void postCopyToMainThread(WebFileSystem*, const WebCore::KURL& srcPath, const WebCore::KURL& destPath, const String& mode); … … 115 111 116 112 // Methods that are to be called on the main thread. 117 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE118 113 static void openFileSystemOnMainThread(WebCore::ScriptExecutionContext*, WebCommonWorkerClient*, WebFileSystemType, long long size, bool create, PassRefPtr<WorkerFileSystemCallbacksBridge>, const String& mode); 119 #else120 static void openFileSystemOnMainThread(WebCore::ScriptExecutionContext*, WebCommonWorkerClient*, WebFileSystem::Type, long long size, bool create, PassRefPtr<WorkerFileSystemCallbacksBridge>, const String& mode);121 #endif122 114 static void moveOnMainThread(WebCore::ScriptExecutionContext*, WebFileSystem*, const WebCore::KURL& srcPath, const WebCore::KURL& destPath, PassRefPtr<WorkerFileSystemCallbacksBridge>, const String& mode); 123 115 static void copyOnMainThread(WebCore::ScriptExecutionContext*, WebFileSystem*, const WebCore::KURL& srcPath, const WebCore::KURL& destPath, PassRefPtr<WorkerFileSystemCallbacksBridge>, const String& mode); -
trunk/Tools/ChangeLog
r146293 r146299 1 2013-03-19 Mark Pilgrim <pilgrim@chromium.org> 2 3 [Chromium] Migrate to WEBKIT_USE_NEW_WEBFILESYSTEMTYPE 4 https://bugs.webkit.org/show_bug.cgi?id=112754 5 6 Reviewed by Darin Fisher. 7 8 Remove old code behind ifndef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE 9 now that it's always defined. 10 11 * DumpRenderTree/chromium/WebViewHost.cpp: 12 * DumpRenderTree/chromium/WebViewHost.h: 13 (WebViewHost): 14 1 15 2013-03-19 Kenneth Russell <kbr@google.com> 2 16 -
trunk/Tools/DumpRenderTree/chromium/WebViewHost.cpp
r146139 r146299 498 498 } 499 499 500 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE501 500 void WebViewHost::openFileSystem(WebFrame* frame, WebFileSystemType type, long long size, bool create, WebFileSystemCallbacks* callbacks) 502 #else503 void WebViewHost::openFileSystem(WebFrame* frame, WebFileSystem::Type type, long long size, bool create, WebFileSystemCallbacks* callbacks)504 #endif505 501 { 506 502 webkit_support::OpenFileSystem(frame, type, size, create, callbacks); 507 503 } 508 504 509 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE510 505 void WebViewHost::deleteFileSystem(WebKit::WebFrame* frame, WebKit::WebFileSystemType type, WebKit::WebFileSystemCallbacks* callbacks) 511 #else512 void WebViewHost::deleteFileSystem(WebKit::WebFrame* frame, WebKit::WebFileSystem::Type type, WebKit::WebFileSystemCallbacks* callbacks)513 #endif514 506 { 515 507 webkit_support::DeleteFileSystem(frame, type, callbacks); -
trunk/Tools/DumpRenderTree/chromium/WebViewHost.h
r146139 r146299 194 194 virtual void didNavigateWithinPage(WebKit::WebFrame*, bool isNewNavigation); 195 195 virtual void willSendRequest(WebKit::WebFrame*, unsigned identifier, WebKit::WebURLRequest&, const WebKit::WebURLResponse&); 196 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE197 196 virtual void openFileSystem(WebKit::WebFrame*, WebKit::WebFileSystemType, long long size, bool create, WebKit::WebFileSystemCallbacks*); 198 197 virtual void deleteFileSystem(WebKit::WebFrame*, WebKit::WebFileSystemType, WebKit::WebFileSystemCallbacks*); 199 #else200 virtual void openFileSystem(WebKit::WebFrame*, WebKit::WebFileSystem::Type, long long size, bool create, WebKit::WebFileSystemCallbacks*);201 virtual void deleteFileSystem(WebKit::WebFrame*, WebKit::WebFileSystem::Type, WebKit::WebFileSystemCallbacks*);202 #endif203 198 virtual bool willCheckAndDispatchMessageEvent( 204 199 WebKit::WebFrame* sourceFrame, WebKit::WebFrame* targetFrame,
Note:
See TracChangeset
for help on using the changeset viewer.