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

Unified Diff: webkit/dom_storage/dom_storage_proxy.h

Issue 10450009: DomStorageCachedArea + DomStorageProxy interface and unittests. These classes aren't used yet. (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
« no previous file with comments | « webkit/dom_storage/dom_storage_map.h ('k') | webkit/dom_storage/webkit_dom_storage.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/dom_storage/dom_storage_proxy.h
===================================================================
--- webkit/dom_storage/dom_storage_proxy.h (revision 0)
+++ webkit/dom_storage/dom_storage_proxy.h (revision 0)
@@ -0,0 +1,44 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_DOM_STORAGE_CACHED_AREA_H_
+#define WEBKIT_DOM_STORAGE_CACHED_AREA_H_
+#pragma once
+
+#include "base/bind.h"
+#include "base/memory/ref_counted.h"
+#include "base/nullable_string16.h"
+#include "base/string16.h"
+#include "googleurl/src/gurl.h"
+#include "webkit/dom_storage/dom_storage_types.h"
+
+namespace dom_storage {
+
+// Abstract interface for cached area, renderer to browser communications.
+class DomStorageProxy : public base::RefCounted<DomStorageProxy> {
+ public:
+ typedef base::Callback<void(bool)> CompletionCallback;
+
+ virtual void LoadArea(int connection_id, ValuesMap* values,
+ const CompletionCallback& callback) = 0;
+
+ virtual void SetItem(int connection_id, const string16& key,
+ const string16& value, const GURL& page_url,
+ const CompletionCallback& callback) = 0;
+
+ virtual void RemoveItem(int connection_id, const string16& key,
+ const GURL& page_url,
+ const CompletionCallback& callback) = 0;
+
+ virtual void ClearArea(int connection_id,
+ const GURL& page_url,
+ const CompletionCallback& callback) = 0;
+ protected:
+ friend class base::RefCounted<DomStorageProxy>;
+ virtual ~DomStorageProxy() {}
+};
+
+} // namespace dom_storage
+
+#endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_AREA_H_
Property changes on: webkit\dom_storage\dom_storage_proxy.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « webkit/dom_storage/dom_storage_map.h ('k') | webkit/dom_storage/webkit_dom_storage.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698