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

Side by Side Diff: webkit/common/dom_storage/dom_storage_map.cc

Issue 15990007: Move dom_storage to new locations. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 #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
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
OLDNEW
« no previous file with comments | « webkit/common/dom_storage/dom_storage_map.h ('k') | webkit/common/dom_storage/dom_storage_map_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698