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 "webkit/dom_storage/dom_storage_map.h" | 5 #include "webkit/common/dom_storage/dom_storage_map.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace { | 9 namespace { |
10 | 10 |
11 size_t size_of_item(const base::string16& key, const base::string16& value) { | 11 size_t size_of_item(const base::string16& key, const base::string16& value) { |
12 return (key.length() + value.length()) * sizeof(char16); | 12 return (key.length() + value.length()) * sizeof(char16); |
13 } | 13 } |
14 | 14 |
15 size_t CountBytes(const dom_storage::ValuesMap& values) { | 15 size_t CountBytes(const dom_storage::ValuesMap& values) { |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 copy->ResetKeyIterator(); | 113 copy->ResetKeyIterator(); |
114 return copy; | 114 return copy; |
115 } | 115 } |
116 | 116 |
117 void DomStorageMap::ResetKeyIterator() { | 117 void DomStorageMap::ResetKeyIterator() { |
118 key_iterator_ = values_.begin(); | 118 key_iterator_ = values_.begin(); |
119 last_key_index_ = 0; | 119 last_key_index_ = 0; |
120 } | 120 } |
121 | 121 |
122 } // namespace dom_storage | 122 } // namespace dom_storage |
OLD | NEW |