OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/browser/indexed_db/leveldb/leveldb_database.h" | 5 #include "content/browser/indexed_db/leveldb/leveldb_database.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
13 #include "base/string16.h" | 13 #include "base/string16.h" |
| 14 #include "base/strings/utf_string_conversions.h" |
14 #include "base/sys_info.h" | 15 #include "base/sys_info.h" |
15 #include "base/utf_string_conversions.h" | |
16 #include "content/browser/indexed_db/leveldb/leveldb_comparator.h" | 16 #include "content/browser/indexed_db/leveldb/leveldb_comparator.h" |
17 #include "content/browser/indexed_db/leveldb/leveldb_iterator.h" | 17 #include "content/browser/indexed_db/leveldb/leveldb_iterator.h" |
18 #include "content/browser/indexed_db/leveldb/leveldb_slice.h" | 18 #include "content/browser/indexed_db/leveldb/leveldb_slice.h" |
19 #include "content/browser/indexed_db/leveldb/leveldb_write_batch.h" | 19 #include "content/browser/indexed_db/leveldb/leveldb_write_batch.h" |
20 #include "third_party/leveldatabase/env_idb.h" | 20 #include "third_party/leveldatabase/env_idb.h" |
21 #include "third_party/leveldatabase/src/helpers/memenv/memenv.h" | 21 #include "third_party/leveldatabase/src/helpers/memenv/memenv.h" |
22 #include "third_party/leveldatabase/src/include/leveldb/comparator.h" | 22 #include "third_party/leveldatabase/src/include/leveldb/comparator.h" |
23 #include "third_party/leveldatabase/src/include/leveldb/db.h" | 23 #include "third_party/leveldatabase/src/include/leveldb/db.h" |
24 #include "third_party/leveldatabase/src/include/leveldb/env.h" | 24 #include "third_party/leveldatabase/src/include/leveldb/env.h" |
25 #include "third_party/leveldatabase/src/include/leveldb/slice.h" | 25 #include "third_party/leveldatabase/src/include/leveldb/slice.h" |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 if (!i) // TODO(jsbell): Double check if we actually need to check this. | 353 if (!i) // TODO(jsbell): Double check if we actually need to check this. |
354 return scoped_ptr<LevelDBIterator>(); | 354 return scoped_ptr<LevelDBIterator>(); |
355 return scoped_ptr<LevelDBIterator>(new IteratorImpl(i.Pass())); | 355 return scoped_ptr<LevelDBIterator>(new IteratorImpl(i.Pass())); |
356 } | 356 } |
357 | 357 |
358 const LevelDBComparator* LevelDBDatabase::Comparator() const { | 358 const LevelDBComparator* LevelDBDatabase::Comparator() const { |
359 return comparator_; | 359 return comparator_; |
360 } | 360 } |
361 | 361 |
362 } // namespace content | 362 } // namespace content |
OLD | NEW |