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

Unified Diff: content/renderer/dom_storage/webstoragearea_impl.h

Issue 10383123: Switch to using the async DomStorage IPC messages and add a caching layer … (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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: content/renderer/dom_storage/webstoragearea_impl.h
===================================================================
--- content/renderer/dom_storage/webstoragearea_impl.h (revision 139572)
+++ content/renderer/dom_storage/webstoragearea_impl.h (working copy)
@@ -7,11 +7,16 @@
#pragma once
#include "base/basictypes.h"
+#include "base/memory/ref_counted.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageArea.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
class GURL;
+namespace dom_storage {
+class DomStorageCachedArea;
+}
+
class WebStorageAreaImpl : public WebKit::WebStorageArea {
public:
static WebStorageAreaImpl* FromConnectionId(int id);
@@ -25,15 +30,14 @@
virtual WebKit::WebString getItem(const WebKit::WebString& key);
virtual void setItem(
const WebKit::WebString& key, const WebKit::WebString& value,
- const WebKit::WebURL& url, WebStorageArea::Result& result,
- WebKit::WebString& old_value);
+ const WebKit::WebURL& page_url, WebStorageArea::Result& result);
virtual void removeItem(
- const WebKit::WebString& key, const WebKit::WebURL& url,
- WebKit::WebString& old_value);
- virtual void clear(const WebKit::WebURL& url, bool& cleared_something);
+ const WebKit::WebString& key, const WebKit::WebURL& page_url);
+ virtual void clear(const WebKit::WebURL& url);
private:
int connection_id_;
+ scoped_refptr<dom_storage::DomStorageCachedArea> cached_area_;
};
#endif // CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGEAREA_IMPL_H_
« no previous file with comments | « content/renderer/dom_storage/dom_storage_dispatcher.cc ('k') | content/renderer/dom_storage/webstoragearea_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698