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

Unified Diff: WebKit/chromium/public/WebStorageNamespace.h

Issue 10012034: WebKit/WebCore DomStorage House cleaning (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/Source/
Patch Set: Created 8 years, 8 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/chromium/WebKit.gyp ('k') | WebKit/chromium/public/platform/WebKitPlatformSupport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebKit/chromium/public/WebStorageNamespace.h
===================================================================
--- WebKit/chromium/public/WebStorageNamespace.h (revision 113961)
+++ WebKit/chromium/public/WebStorageNamespace.h (working copy)
@@ -43,23 +43,6 @@
// StorageNamespace to represent LocalStorage for the entire browser.
class WebStorageNamespace {
public:
- // Create a new WebStorageNamespace. LocalStorageNamespaces require a path to specify
- // where the SQLite databases that make LocalStorage data persistent are located.
- // If path is empty, data will not persist. You should call delete on the returned
- // object when you're finished.
- WEBKIT_EXPORT static WebStorageNamespace* createLocalStorageNamespace(const WebString& backingDirectoryPath, unsigned quota);
- WEBKIT_EXPORT static WebStorageNamespace* createSessionStorageNamespace(unsigned quota);
-
- // The quota for each storage area. Suggested by the spec.
- static const unsigned m_localStorageQuota = 5 * 1024 * 1024;
-
- // Since SessionStorage memory is allocated in the browser process, we place a
- // per-origin quota on it. Like LocalStorage there are known attacks against
- // this, so it's more of a sanity check than a real security measure.
- static const unsigned m_sessionStorageQuota = 5 * 1024 * 1024;
-
- static const unsigned noQuota = UINT_MAX;
-
virtual ~WebStorageNamespace() { }
// Create a new WebStorageArea object. Two subsequent calls with the same origin
@@ -70,9 +53,8 @@
// Copy a StorageNamespace. This only makes sense in the case of SessionStorage.
virtual WebStorageNamespace* copy() = 0;
- // Shutdown the StorageNamespace. Write all StorageArea's to disk and disallow new
- // write activity.
- virtual void close() = 0;
+ // DEPRECATED
+ virtual void close() { }
};
} // namespace WebKit
« no previous file with comments | « WebKit/chromium/WebKit.gyp ('k') | WebKit/chromium/public/platform/WebKitPlatformSupport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698