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

Unified Diff: chrome/browser/renderer_host/render_sandbox_host_linux.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
Index: chrome/browser/renderer_host/render_sandbox_host_linux.cc
===================================================================
--- chrome/browser/renderer_host/render_sandbox_host_linux.cc (revision 22402)
+++ chrome/browser/renderer_host/render_sandbox_host_linux.cc (working copy)
@@ -111,16 +111,13 @@
virtual WebClipboard* clipboard() { return NULL; }
virtual WebMimeRegistry* mimeRegistry() { return NULL; }
virtual WebSandboxSupport* sandboxSupport() { return NULL; }
+ virtual bool sandboxEnabled() { return true; }
virtual WebThemeEngine* themeEngine() { return NULL; }
virtual WebStorageNamespace* createLocalStorageNamespace(
const WebString& path) { return 0; }
virtual WebStorageNamespace* createSessionStorageNamespace() { return 0; }
- virtual bool getFileSize(const WebString& path, long long& result) {
- return false;
- }
-
virtual unsigned long long visitedLinkHash(const char*, size_t) { return 0; }
virtual bool isLinkVisited(unsigned long long) { return false; }
@@ -129,7 +126,9 @@
}
virtual void setCookies(const WebURL&, const WebURL&, const WebString&) { }
- virtual WebString cookies(const WebURL&, const WebURL&) { return WebString(); }
+ virtual WebString cookies(const WebURL&, const WebURL&) {
+ return WebString();
+ }
virtual void prefetchHostName(const WebString&) { }
@@ -177,6 +176,22 @@
return 0;
}
+ bool fileExists(const WebString& path) { return false; }
+ bool deleteFile(const WebString& path) { return false; }
+ bool deleteEmptyDirectory(const WebString& path) { return false; }
+ bool getFileSize(const WebString& path, long long& result) {
+ return false;
+ }
+ bool getFileModificationTime(const WebString& path, time_t& result) {
+ return false;
+ }
+ WebString directoryName(const WebString& path) { return WebString(); }
+ WebString pathByAppendingComponent(const WebString& path,
+ const WebString& component) {
+ return WebString();
+ }
+ bool makeAllDirectories(const WebString& path) { return false; }
+
private:
// ---------------------------------------------------------------------------
// Requests from the renderer...
« no previous file with comments | « chrome/browser/in_process_webkit/dom_storage_dispatcher_host.cc ('k') | chrome/renderer/renderer_webkitclient_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698