Cleanup: Move FileSystem API type definitions into a separate header file
authorkinuko@chromium.org <kinuko@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 May 2012 07:39:20 +0000 (07:39 +0000)
committerkinuko@chromium.org <kinuko@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 May 2012 07:39:20 +0000 (07:39 +0000)
commit7387100048f295debfe25f51064a61f4f313a597
tree4135c0f45b957b7ba387977282c710159b21ed1b
parent86646c7ea466ecd96dffe7245c9ed0f7cd7b9479
Cleanup: Move FileSystem API type definitions into a separate header file
https://bugs.webkit.org/show_bug.cgi?id=85738

Reviewed by David Levin.

Move FileSystem API type definitions from AsyncFileSystem.h and
AsyncFileSystemChromium.cpp for chromium port into a single separate
header file: FileSystemType.h

By doing this we make it clearer that every filesystem type can be
found in the header file and also can save including entire
AsyncFileSystem definition just for referring type enum value.

Source/WebCore:

No new tests as this change has no visible or functional changes.

* Modules/filesystem/DOMFileSystemBase.cpp:
(WebCore::pathToAbsolutePath):
* Modules/filesystem/DOMWindowFileSystem.cpp:
(WebCore::DOMWindowFileSystem::webkitRequestFileSystem):
(WebCore::DOMWindowFileSystem::webkitResolveLocalFileSystemURL):
(WebCore):
* Modules/filesystem/DOMWindowFileSystem.h:
* Modules/filesystem/LocalFileSystem.h:
(LocalFileSystem):
* Modules/filesystem/WorkerContextFileSystem.cpp:
(WebCore::WorkerContextFileSystem::webkitRequestFileSystem):
(WebCore::WorkerContextFileSystem::webkitRequestFileSystemSync):
(WebCore::WorkerContextFileSystem::webkitResolveLocalFileSystemURL):
(WebCore::WorkerContextFileSystem::webkitResolveLocalFileSystemSyncURL):
(WebCore):
* Modules/filesystem/WorkerContextFileSystem.h:
* platform/AsyncFileSystem.cpp:
(WebCore::AsyncFileSystem::isValidType):
(WebCore::AsyncFileSystem::create):
(WebCore::AsyncFileSystem::openFileSystem):
* platform/AsyncFileSystem.h:
(AsyncFileSystem):
(WebCore::AsyncFileSystem::type):
(WebCore::AsyncFileSystem::AsyncFileSystem):
* platform/FileSystemType.h: Added.
(WebCore):
* platform/blackberry/AsyncFileSystemBlackBerry.cpp:
(WebCore::AsyncFileSystem::isValidType):
(WebCore::AsyncFileSystem::create):
(WebCore::AsyncFileSystem::openFileSystem):
(WebCore::AsyncFileSystem::crackFileSystemURL):
(WebCore::AsyncFileSystemBlackBerry::AsyncFileSystemBlackBerry):
* platform/blackberry/AsyncFileSystemBlackBerry.h:
(AsyncFileSystemBlackBerry):
* platform/gtk/AsyncFileSystemGtk.cpp:
(WebCore::AsyncFileSystem::isValidType):
(WebCore::AsyncFileSystem::create):
(WebCore::AsyncFileSystem::openFileSystem):
(WebCore::AsyncFileSystem::crackFileSystemURL):
(WebCore::AsyncFileSystemGtk::AsyncFileSystemGtk):
* platform/gtk/AsyncFileSystemGtk.h:
(AsyncFileSystemGtk):

Source/WebKit/chromium:

* src/AssertMatchingEnums.cpp:
* src/AsyncFileSystemChromium.cpp:
(WebCore::AsyncFileSystem::crackFileSystemURL):
(WebCore::AsyncFileSystem::isValidType):
(WebCore::AsyncFileSystemChromium::AsyncFileSystemChromium):
(WebCore::AsyncFileSystemChromium::createIsolatedFileSystem):
(WebCore::AsyncFileSystemChromium::toURL):
* src/AsyncFileSystemChromium.h:
(WebCore::AsyncFileSystemChromium::create):
(AsyncFileSystemChromium):
* src/LocalFileSystemChromium.cpp:
(WebCore::openFileSystemHelper):
(WebCore::LocalFileSystem::readFileSystem):
(WebCore::LocalFileSystem::requestFileSystem):
* src/WebFileSystemCallbacksImpl.cpp:
(WebKit::WebFileSystemCallbacksImpl::WebFileSystemCallbacksImpl):
* src/WebFileSystemCallbacksImpl.h:
(WebFileSystemCallbacksImpl):
* src/WebFrameImpl.cpp:
(WebKit::WebFrameImpl::createFileSystem):
(WebKit::WebFrameImpl::createFileEntry):
* src/WorkerAsyncFileSystemChromium.cpp:
(WebCore::WorkerAsyncFileSystemChromium::WorkerAsyncFileSystemChromium):
* src/WorkerAsyncFileSystemChromium.h:
(WebCore::WorkerAsyncFileSystemChromium::create):
(WorkerAsyncFileSystemChromium):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@116280 268f45cc-cd09-0410-ab3c-d52691b4dbfc
24 files changed:
Source/WebCore/ChangeLog
Source/WebCore/Modules/filesystem/DOMFileSystemBase.cpp
Source/WebCore/Modules/filesystem/DOMWindowFileSystem.cpp
Source/WebCore/Modules/filesystem/DOMWindowFileSystem.h
Source/WebCore/Modules/filesystem/LocalFileSystem.h
Source/WebCore/Modules/filesystem/WorkerContextFileSystem.cpp
Source/WebCore/Modules/filesystem/WorkerContextFileSystem.h
Source/WebCore/platform/AsyncFileSystem.cpp
Source/WebCore/platform/AsyncFileSystem.h
Source/WebCore/platform/FileSystemType.h [new file with mode: 0644]
Source/WebCore/platform/blackberry/AsyncFileSystemBlackBerry.cpp
Source/WebCore/platform/blackberry/AsyncFileSystemBlackBerry.h
Source/WebCore/platform/gtk/AsyncFileSystemGtk.cpp
Source/WebCore/platform/gtk/AsyncFileSystemGtk.h
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/src/AssertMatchingEnums.cpp
Source/WebKit/chromium/src/AsyncFileSystemChromium.cpp
Source/WebKit/chromium/src/AsyncFileSystemChromium.h
Source/WebKit/chromium/src/LocalFileSystemChromium.cpp
Source/WebKit/chromium/src/WebFileSystemCallbacksImpl.cpp
Source/WebKit/chromium/src/WebFileSystemCallbacksImpl.h
Source/WebKit/chromium/src/WebFrameImpl.cpp
Source/WebKit/chromium/src/WorkerAsyncFileSystemChromium.cpp
Source/WebKit/chromium/src/WorkerAsyncFileSystemChromium.h