| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 unsigned length() override; | 29 unsigned length() override; |
| 30 blink::WebString key(unsigned index) override; | 30 blink::WebString key(unsigned index) override; |
| 31 blink::WebString getItem(const blink::WebString& key) override; | 31 blink::WebString getItem(const blink::WebString& key) override; |
| 32 void setItem(const blink::WebString& key, | 32 void setItem(const blink::WebString& key, |
| 33 const blink::WebString& value, | 33 const blink::WebString& value, |
| 34 const blink::WebURL& page_url, | 34 const blink::WebURL& page_url, |
| 35 WebStorageArea::Result& result) override; | 35 WebStorageArea::Result& result) override; |
| 36 void removeItem(const blink::WebString& key, | 36 void removeItem(const blink::WebString& key, |
| 37 const blink::WebURL& page_url) override; | 37 const blink::WebURL& page_url) override; |
| 38 void clear(const blink::WebURL& url) override; | 38 void clear(const blink::WebURL& url) override; |
| 39 size_t memoryBytesUsedByCache() const override; | |
| 40 | 39 |
| 41 private: | 40 private: |
| 42 int connection_id_; | 41 int connection_id_; |
| 43 scoped_refptr<DOMStorageCachedArea> cached_area_; | 42 scoped_refptr<DOMStorageCachedArea> cached_area_; |
| 44 }; | 43 }; |
| 45 | 44 |
| 46 } // namespace content | 45 } // namespace content |
| 47 | 46 |
| 48 #endif // CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGEAREA_IMPL_H_ | 47 #endif // CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGEAREA_IMPL_H_ |
| OLD | NEW |