Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: webkit/api/src/ChromiumBridge.cpp

Issue 159778: Make LocalStorage persistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/api/public/WebKitClient.h ('k') | webkit/api/src/WebKit.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « webkit/api/public/WebKitClient.h ('k') | webkit/api/src/WebKit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698