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 #include "content/renderer/dom_storage/webstoragearea_impl.h" | 5 #include "content/renderer/dom_storage/webstoragearea_impl.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 } | 69 } |
70 | 70 |
71 void WebStorageAreaImpl::removeItem( | 71 void WebStorageAreaImpl::removeItem( |
72 const WebString& key, const WebURL& page_url) { | 72 const WebString& key, const WebURL& page_url) { |
73 cached_area_->RemoveItem(connection_id_, key, page_url); | 73 cached_area_->RemoveItem(connection_id_, key, page_url); |
74 } | 74 } |
75 | 75 |
76 void WebStorageAreaImpl::clear(const WebURL& page_url) { | 76 void WebStorageAreaImpl::clear(const WebURL& page_url) { |
77 cached_area_->Clear(connection_id_, page_url); | 77 cached_area_->Clear(connection_id_, page_url); |
78 } | 78 } |
| 79 |
| 80 size_t WebStorageAreaImpl::memoryBytesUsedByCache() const { |
| 81 return cached_area_->MemoryBytesUsedByCache(); |
| 82 } |
OLD | NEW |