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

Side by Side Diff: webkit/dom_storage/dom_storage_proxy.h

Issue 13219005: Replace string16 with base::string16 in src/webkit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 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 WEBKIT_DOM_STORAGE_CACHED_AREA_H_ 5 #ifndef WEBKIT_DOM_STORAGE_CACHED_AREA_H_
6 #define WEBKIT_DOM_STORAGE_CACHED_AREA_H_ 6 #define WEBKIT_DOM_STORAGE_CACHED_AREA_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/nullable_string16.h" 10 #include "base/nullable_base::string16.h"
11 #include "base/string16.h" 11 #include "base/string16.h.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "webkit/dom_storage/dom_storage_types.h" 13 #include "webkit/dom_storage/dom_storage_types.h"
14 14
15 namespace dom_storage { 15 namespace dom_storage {
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, ValuesMap* values, 22 virtual void LoadArea(int connection_id, ValuesMap* values,
23 const CompletionCallback& callback) = 0; 23 const CompletionCallback& callback) = 0;
24 24
25 virtual void SetItem(int connection_id, const string16& key, 25 virtual void SetItem(int connection_id, const base::string16& key,
26 const string16& value, const GURL& page_url, 26 const base::string16& value, const GURL& page_url,
27 const CompletionCallback& callback) = 0; 27 const CompletionCallback& callback) = 0;
28 28
29 virtual void RemoveItem(int connection_id, const string16& key, 29 virtual void RemoveItem(int connection_id, const base::string16& key,
30 const GURL& page_url, 30 const GURL& page_url,
31 const CompletionCallback& callback) = 0; 31 const CompletionCallback& callback) = 0;
32 32
33 virtual void ClearArea(int connection_id, 33 virtual void ClearArea(int connection_id,
34 const GURL& page_url, 34 const GURL& page_url,
35 const CompletionCallback& callback) = 0; 35 const CompletionCallback& callback) = 0;
36 protected: 36 protected:
37 friend class base::RefCounted<DomStorageProxy>; 37 friend class base::RefCounted<DomStorageProxy>;
38 virtual ~DomStorageProxy() {} 38 virtual ~DomStorageProxy() {}
39 }; 39 };
40 40
41 } // namespace dom_storage 41 } // namespace dom_storage
42 42
43 #endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_AREA_H_ 43 #endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_AREA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698