| Index: webkit/api/src/ChromiumBridge.cpp
|
| ===================================================================
|
| --- webkit/api/src/ChromiumBridge.cpp (revision 22402)
|
| +++ webkit/api/src/ChromiumBridge.cpp (working copy)
|
| @@ -152,20 +152,17 @@
|
|
|
| bool ChromiumBridge::fileExists(const String& path)
|
| {
|
| - ASSERT_NOT_REACHED();
|
| - return false;
|
| + return webKitClient()->fileExists(path);
|
| }
|
|
|
| bool ChromiumBridge::deleteFile(const String& path)
|
| {
|
| - ASSERT_NOT_REACHED();
|
| - return false;
|
| + return webKitClient()->deleteFile(path);
|
| }
|
|
|
| bool ChromiumBridge::deleteEmptyDirectory(const String& path)
|
| {
|
| - ASSERT_NOT_REACHED();
|
| - return false;
|
| + return webKitClient()->deleteEmptyDirectory(path);
|
| }
|
|
|
| bool ChromiumBridge::getFileSize(const String& path, long long& result)
|
| @@ -175,26 +172,22 @@
|
|
|
| bool ChromiumBridge::getFileModificationTime(const String& path, time_t& result)
|
| {
|
| - ASSERT_NOT_REACHED();
|
| - return false;
|
| + return webKitClient()->getFileModificationTime(path, result);
|
| }
|
|
|
| String ChromiumBridge::directoryName(const String& path)
|
| {
|
| - ASSERT_NOT_REACHED();
|
| - return String();
|
| + return webKitClient()->directoryName(path);
|
| }
|
|
|
| String ChromiumBridge::pathByAppendingComponent(const String& path, const String& component)
|
| {
|
| - ASSERT_NOT_REACHED();
|
| - return String();
|
| + return webKitClient()->pathByAppendingComponent(path, component);
|
| }
|
|
|
| bool ChromiumBridge::makeAllDirectories(const String& path)
|
| {
|
| - ASSERT_NOT_REACHED();
|
| - return false;
|
| + return webKitClient()->makeAllDirectories(path);
|
| }
|
|
|
| // Font -----------------------------------------------------------------------
|
| @@ -220,6 +213,30 @@
|
| }
|
| #endif
|
|
|
| +// HTML5 DB -------------------------------------------------------------------
|
| +
|
| +#if ENABLE(DATABASE)
|
| +PlatformFileHandle ChromiumBridge::databaseOpenFile(const String& fileName, int desiredFlags)
|
| +{
|
| + return webKitClient()->databaseOpenFile(WebString(fileName), desiredFlags);
|
| +}
|
| +
|
| +bool ChromiumBridge::databaseDeleteFile(const String& fileName)
|
| +{
|
| + return webKitClient()->databaseDeleteFile(WebString(fileName));
|
| +}
|
| +
|
| +long ChromiumBridge::databaseGetFileAttributes(const String& fileName)
|
| +{
|
| + return webKitClient()->databaseGetFileAttributes(WebString(fileName));
|
| +}
|
| +
|
| +long long ChromiumBridge::databaseGetFileSize(const String& fileName)
|
| +{
|
| + return webKitClient()->databaseGetFileSize(WebString(fileName));
|
| +}
|
| +#endif
|
| +
|
| // Language -------------------------------------------------------------------
|
|
|
| String ChromiumBridge::computedDefaultLanguage()
|
| @@ -295,7 +312,7 @@
|
|
|
| bool ChromiumBridge::sandboxEnabled()
|
| {
|
| - return true;
|
| + return webKitClient()->sandboxEnabled();
|
| }
|
|
|
| // SharedTimers ---------------------------------------------------------------
|
| @@ -472,29 +489,4 @@
|
| return webKitClient()->isLinkVisited(visitedLinkHash);
|
| }
|
|
|
| -// HTML5 DB -------------------------------------------------------------------
|
| -
|
| -#if ENABLE(DATABASE)
|
| -PlatformFileHandle ChromiumBridge::databaseOpenFile(const String& fileName,
|
| - int desiredFlags)
|
| -{
|
| - return webKitClient()->databaseOpenFile(WebString(fileName), desiredFlags);
|
| -}
|
| -
|
| -bool ChromiumBridge::databaseDeleteFile(const String& fileName)
|
| -{
|
| - return webKitClient()->databaseDeleteFile(WebString(fileName));
|
| -}
|
| -
|
| -long ChromiumBridge::databaseGetFileAttributes(const String& fileName)
|
| -{
|
| - return webKitClient()->databaseGetFileAttributes(WebString(fileName));
|
| -}
|
| -
|
| -long long ChromiumBridge::databaseGetFileSize(const String& fileName)
|
| -{
|
| - return webKitClient()->databaseGetFileSize(WebString(fileName));
|
| -}
|
| -#endif
|
| -
|
| } // namespace WebCore
|
|
|