OLD | NEW |
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_WEBSTORAGEAREA_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGEAREA_IMPL_H_ |
6 #define CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGEAREA_IMPL_H_ | 6 #define CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGEAREA_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageArea.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageArea.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 // See WebStorageArea.h for documentation on these functions. | 26 // See WebStorageArea.h for documentation on these functions. |
27 virtual unsigned length(); | 27 virtual unsigned length(); |
28 virtual WebKit::WebString key(unsigned index); | 28 virtual WebKit::WebString key(unsigned index); |
29 virtual WebKit::WebString getItem(const WebKit::WebString& key); | 29 virtual WebKit::WebString getItem(const WebKit::WebString& key); |
30 virtual void setItem( | 30 virtual void setItem( |
31 const WebKit::WebString& key, const WebKit::WebString& value, | 31 const WebKit::WebString& key, const WebKit::WebString& value, |
32 const WebKit::WebURL& page_url, WebStorageArea::Result& result); | 32 const WebKit::WebURL& page_url, WebStorageArea::Result& result); |
33 virtual void removeItem( | 33 virtual void removeItem( |
34 const WebKit::WebString& key, const WebKit::WebURL& page_url); | 34 const WebKit::WebString& key, const WebKit::WebURL& page_url); |
35 virtual void clear(const WebKit::WebURL& url); | 35 virtual void clear(const WebKit::WebURL& url); |
| 36 virtual size_t memoryBytesUsedByCache() const; |
36 | 37 |
37 private: | 38 private: |
38 int connection_id_; | 39 int connection_id_; |
39 scoped_refptr<dom_storage::DomStorageCachedArea> cached_area_; | 40 scoped_refptr<dom_storage::DomStorageCachedArea> cached_area_; |
40 }; | 41 }; |
41 | 42 |
42 #endif // CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGEAREA_IMPL_H_ | 43 #endif // CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGEAREA_IMPL_H_ |
OLD | NEW |