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

Side by Side Diff: webkit/renderer/dom_storage/dom_storage_cached_area.h

Issue 16701004: Fix webkit_storage exports definitions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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_RENDERER_DOM_STORAGE_DOM_STORAGE_CACHED_AREA_H_ 5 #ifndef WEBKIT_RENDERER_DOM_STORAGE_DOM_STORAGE_CACHED_AREA_H_
6 #define WEBKIT_RENDERER_DOM_STORAGE_DOM_STORAGE_CACHED_AREA_H_ 6 #define WEBKIT_RENDERER_DOM_STORAGE_DOM_STORAGE_CACHED_AREA_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/nullable_string16.h" 12 #include "base/nullable_string16.h"
13 #include "googleurl/src/gurl.h" 13 #include "googleurl/src/gurl.h"
14 #include "webkit/storage/webkit_storage_export.h" 14 #include "webkit/renderer/webkit_storage_renderer_export.h"
15 15
16 namespace dom_storage { 16 namespace dom_storage {
17 17
18 class DomStorageMap; 18 class DomStorageMap;
19 class DomStorageProxy; 19 class DomStorageProxy;
20 20
21 // Unlike the other classes in the dom_storage library, this one is intended 21 // Unlike the other classes in the dom_storage library, this one is intended
22 // for use in renderer processes. It maintains a complete cache of the 22 // for use in renderer processes. It maintains a complete cache of the
23 // origin's Map of key/value pairs for fast access. The cache is primed on 23 // origin's Map of key/value pairs for fast access. The cache is primed on
24 // first access and changes are written to the backend thru the |proxy|. 24 // first access and changes are written to the backend thru the |proxy|.
25 // Mutations originating in other processes are applied to the cache via 25 // Mutations originating in other processes are applied to the cache via
26 // the ApplyMutation method. 26 // the ApplyMutation method.
27 class WEBKIT_STORAGE_EXPORT DomStorageCachedArea : 27 class WEBKIT_STORAGE_RENDERER_EXPORT DomStorageCachedArea :
28 public base::RefCounted<DomStorageCachedArea> { 28 public base::RefCounted<DomStorageCachedArea> {
29 public: 29 public:
30 DomStorageCachedArea(int64 namespace_id, const GURL& origin, 30 DomStorageCachedArea(int64 namespace_id, const GURL& origin,
31 DomStorageProxy* proxy); 31 DomStorageProxy* proxy);
32 32
33 int64 namespace_id() const { return namespace_id_; } 33 int64 namespace_id() const { return namespace_id_; }
34 const GURL& origin() const { return origin_; } 34 const GURL& origin() const { return origin_; }
35 35
36 unsigned GetLength(int connection_id); 36 unsigned GetLength(int connection_id);
37 NullableString16 GetKey(int connection_id, unsigned index); 37 NullableString16 GetKey(int connection_id, unsigned index);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 int64 namespace_id_; 83 int64 namespace_id_;
84 GURL origin_; 84 GURL origin_;
85 scoped_refptr<DomStorageMap> map_; 85 scoped_refptr<DomStorageMap> map_;
86 scoped_refptr<DomStorageProxy> proxy_; 86 scoped_refptr<DomStorageProxy> proxy_;
87 base::WeakPtrFactory<DomStorageCachedArea> weak_factory_; 87 base::WeakPtrFactory<DomStorageCachedArea> weak_factory_;
88 }; 88 };
89 89
90 } // namespace dom_storage 90 } // namespace dom_storage
91 91
92 #endif // WEBKIT_RENDERER_DOM_STORAGE_DOM_STORAGE_CACHED_AREA_H_ 92 #endif // WEBKIT_RENDERER_DOM_STORAGE_DOM_STORAGE_CACHED_AREA_H_
OLDNEW
« no previous file with comments | « webkit/renderer/appcache/web_application_cache_host_impl.h ('k') | webkit/renderer/fileapi/webfilewriter_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698