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

Unified Diff: webkit/glue/webkitclient_impl.cc

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/glue/webkitclient_impl.h ('k') | webkit/tools/test_shell/test_shell_webkit_init.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webkitclient_impl.cc
===================================================================
--- webkit/glue/webkitclient_impl.cc (revision 22402)
+++ webkit/glue/webkitclient_impl.cc (working copy)
@@ -4,6 +4,8 @@
#include "webkit/glue/webkitclient_impl.h"
+#include "base/file_path.h"
+#include "base/file_util.h"
#include "base/message_loop.h"
#include "base/platform_file.h"
#include "base/stats_counters.h"
@@ -227,23 +229,72 @@
}
base::PlatformFile WebKitClientImpl::databaseOpenFile(
- const WebKit::WebString& file_name, int desired_flags) {
+ const WebKit::WebString& file_name, int desired_flags) {
return base::kInvalidPlatformFileValue;
}
bool WebKitClientImpl::databaseDeleteFile(
- const WebKit::WebString& file_name) {
+ const WebKit::WebString& file_name) {
return false;
}
long WebKitClientImpl::databaseGetFileAttributes(
- const WebKit::WebString& file_name) {
+ const WebKit::WebString& file_name) {
return 0;
}
long long WebKitClientImpl::databaseGetFileSize(
- const WebKit::WebString& file_name) {
+ const WebKit::WebString& file_name) {
return 0;
}
+bool WebKitClientImpl::fileExists(const WebKit::WebString& path) {
+ NOTREACHED();
+ return false;
+}
+
+bool WebKitClientImpl::deleteFile(const WebKit::WebString& path) {
+ NOTREACHED();
+ return false;
+}
+
+bool WebKitClientImpl::deleteEmptyDirectory(const WebKit::WebString& path) {
+ NOTREACHED();
+ return false;
+}
+
+bool WebKitClientImpl::getFileSize(const WebKit::WebString& path,
+ long long& result) {
+ NOTREACHED();
+ return false;
+}
+
+bool WebKitClientImpl::getFileModificationTime(const WebKit::WebString& path,
+ time_t& result) {
+ NOTREACHED();
+ return false;
+}
+
+WebKit::WebString WebKitClientImpl::directoryName(
+ const WebKit::WebString& path) {
+ NOTREACHED();
+ return WebKit::WebString();
+}
+
+WebKit::WebString WebKitClientImpl::pathByAppendingComponent(
+ const WebKit::WebString& webkit_path,
+ const WebKit::WebString& webkit_component) {
+ FilePath path(webkit_glue::WebStringToFilePathString(webkit_path));
+ FilePath component(webkit_glue::WebStringToFilePathString(webkit_component));
+ FilePath combined_path = path.Append(component);
+ return webkit_glue::FilePathStringToWebString(combined_path.value());
+}
+
+bool WebKitClientImpl::makeAllDirectories(
+ const WebKit::WebString& path) {
+ DCHECK(!sandboxEnabled());
+ FilePath::StringType file_path = webkit_glue::WebStringToFilePathString(path);
+ return file_util::CreateDirectory(FilePath(file_path));
+}
+
} // namespace webkit_glue
« no previous file with comments | « webkit/glue/webkitclient_impl.h ('k') | webkit/tools/test_shell/test_shell_webkit_init.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698