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/strings/string16.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "base/sys_info.h" | 15 #include "base/sys_info.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" |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 if (!i) // TODO(jsbell): Double check if we actually need to check this. | 356 if (!i) // TODO(jsbell): Double check if we actually need to check this. |
357 return scoped_ptr<LevelDBIterator>(); | 357 return scoped_ptr<LevelDBIterator>(); |
358 return scoped_ptr<LevelDBIterator>(new IteratorImpl(i.Pass())); | 358 return scoped_ptr<LevelDBIterator>(new IteratorImpl(i.Pass())); |
359 } | 359 } |
360 | 360 |
361 const LevelDBComparator* LevelDBDatabase::Comparator() const { | 361 const LevelDBComparator* LevelDBDatabase::Comparator() const { |
362 return comparator_; | 362 return comparator_; |
363 } | 363 } |
364 | 364 |
365 } // namespace content | 365 } // namespace content |
OLD | NEW |