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

Side by Side Diff: content/renderer/dom_storage/dom_storage_proxy.h

Issue 22297005: Move webkit/{browser,common}/dom_storage into content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_DOM_STORAGE_DOM_STORAGE_PROXY_H_ 5 #ifndef CONTENT_RENDERER_DOM_STORAGE_DOM_STORAGE_PROXY_H_
6 #define CONTENT_RENDERER_DOM_STORAGE_DOM_STORAGE_PROXY_H_ 6 #define CONTENT_RENDERER_DOM_STORAGE_DOM_STORAGE_PROXY_H_
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/strings/nullable_string16.h" 10 #include "base/strings/nullable_string16.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "content/common/dom_storage/dom_storage_types.h"
12 #include "url/gurl.h" 13 #include "url/gurl.h"
13 #include "webkit/common/dom_storage/dom_storage_types.h"
14 14
15 namespace content { 15 namespace content {
16 16
17 // Abstract interface for cached area, renderer to browser communications. 17 // Abstract interface for cached area, renderer to browser communications.
18 class DomStorageProxy : public base::RefCounted<DomStorageProxy> { 18 class DOMStorageProxy : public base::RefCounted<DOMStorageProxy> {
19 public: 19 public:
20 typedef base::Callback<void(bool)> CompletionCallback; 20 typedef base::Callback<void(bool)> CompletionCallback;
21 21
22 virtual void LoadArea(int connection_id, 22 virtual void LoadArea(int connection_id,
23 dom_storage::ValuesMap* values, 23 DOMStorageValuesMap* values,
24 const CompletionCallback& callback) = 0; 24 const CompletionCallback& callback) = 0;
25 25
26 virtual void SetItem(int connection_id, 26 virtual void SetItem(int connection_id,
27 const base::string16& key, 27 const base::string16& key,
28 const base::string16& value, 28 const base::string16& value,
29 const GURL& page_url, 29 const GURL& page_url,
30 const CompletionCallback& callback) = 0; 30 const CompletionCallback& callback) = 0;
31 31
32 virtual void RemoveItem(int connection_id, 32 virtual void RemoveItem(int connection_id,
33 const base::string16& key, 33 const base::string16& key,
34 const GURL& page_url, 34 const GURL& page_url,
35 const CompletionCallback& callback) = 0; 35 const CompletionCallback& callback) = 0;
36 36
37 virtual void ClearArea(int connection_id, 37 virtual void ClearArea(int connection_id,
38 const GURL& page_url, 38 const GURL& page_url,
39 const CompletionCallback& callback) = 0; 39 const CompletionCallback& callback) = 0;
40 40
41 protected: 41 protected:
42 friend class base::RefCounted<DomStorageProxy>; 42 friend class base::RefCounted<DOMStorageProxy>;
43 virtual ~DomStorageProxy() {} 43 virtual ~DOMStorageProxy() {}
44 }; 44 };
45 45
46 } // namespace content 46 } // namespace content
47 47
48 #endif // CONTENT_RENDERER_DOM_STORAGE_DOM_STORAGE_PROXY_H_ 48 #endif // CONTENT_RENDERER_DOM_STORAGE_DOM_STORAGE_PROXY_H_
OLDNEW
« no previous file with comments | « content/renderer/dom_storage/dom_storage_dispatcher.cc ('k') | content/renderer/dom_storage/webstoragearea_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698