| 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/session_storage_database.h" | 5 #include "webkit/browser/dom_storage/session_storage_database.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
| 11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
| 12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 14 #include "third_party/leveldatabase/src/include/leveldb/db.h" | 14 #include "third_party/leveldatabase/src/include/leveldb/db.h" |
| 15 #include "third_party/leveldatabase/src/include/leveldb/iterator.h" | 15 #include "third_party/leveldatabase/src/include/leveldb/iterator.h" |
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 std::string SessionStorageDatabase::MapKey(const std::string& map_id, | 666 std::string SessionStorageDatabase::MapKey(const std::string& map_id, |
| 667 const std::string& key) { | 667 const std::string& key) { |
| 668 return base::StringPrintf("map-%s-%s", map_id.c_str(), key.c_str()); | 668 return base::StringPrintf("map-%s-%s", map_id.c_str(), key.c_str()); |
| 669 } | 669 } |
| 670 | 670 |
| 671 const char* SessionStorageDatabase::NextMapIdKey() { | 671 const char* SessionStorageDatabase::NextMapIdKey() { |
| 672 return "next-map-id"; | 672 return "next-map-id"; |
| 673 } | 673 } |
| 674 | 674 |
| 675 } // namespace dom_storage | 675 } // namespace dom_storage |
| OLD | NEW |