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/indexed_db_backing_store.h" | 5 #include "content/browser/indexed_db/indexed_db_backing_store.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1057 | 1057 |
1058 } // namespace | 1058 } // namespace |
1059 | 1059 |
1060 class DefaultLevelDBFactory : public LevelDBFactory { | 1060 class DefaultLevelDBFactory : public LevelDBFactory { |
1061 public: | 1061 public: |
1062 DefaultLevelDBFactory() {} | 1062 DefaultLevelDBFactory() {} |
1063 Status OpenLevelDB(const FilePath& file_name, | 1063 Status OpenLevelDB(const FilePath& file_name, |
1064 const LevelDBComparator* comparator, | 1064 const LevelDBComparator* comparator, |
1065 std::unique_ptr<LevelDBDatabase>* db, | 1065 std::unique_ptr<LevelDBDatabase>* db, |
1066 bool* is_disk_full) override { | 1066 bool* is_disk_full) override { |
1067 return LevelDBDatabase::Open(file_name, comparator, db, is_disk_full); | 1067 return LevelDBDatabase::Open( |
| 1068 file_name, comparator, |
| 1069 LevelDBDatabase::kDefaultMaxOpenIteratorsPerDatabase, db, is_disk_full); |
1068 } | 1070 } |
1069 Status DestroyLevelDB(const FilePath& file_name) override { | 1071 Status DestroyLevelDB(const FilePath& file_name) override { |
1070 return LevelDBDatabase::Destroy(file_name); | 1072 return LevelDBDatabase::Destroy(file_name); |
1071 } | 1073 } |
1072 | 1074 |
1073 private: | 1075 private: |
1074 DISALLOW_COPY_AND_ASSIGN(DefaultLevelDBFactory); | 1076 DISALLOW_COPY_AND_ASSIGN(DefaultLevelDBFactory); |
1075 }; | 1077 }; |
1076 | 1078 |
1077 IndexedDBBackingStore::IndexedDBBackingStore( | 1079 IndexedDBBackingStore::IndexedDBBackingStore( |
(...skipping 3376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4454 | 4456 |
4455 IndexedDBBackingStore::Transaction::WriteDescriptor::WriteDescriptor( | 4457 IndexedDBBackingStore::Transaction::WriteDescriptor::WriteDescriptor( |
4456 const WriteDescriptor& other) = default; | 4458 const WriteDescriptor& other) = default; |
4457 IndexedDBBackingStore::Transaction::WriteDescriptor::~WriteDescriptor() = | 4459 IndexedDBBackingStore::Transaction::WriteDescriptor::~WriteDescriptor() = |
4458 default; | 4460 default; |
4459 IndexedDBBackingStore::Transaction::WriteDescriptor& | 4461 IndexedDBBackingStore::Transaction::WriteDescriptor& |
4460 IndexedDBBackingStore::Transaction::WriteDescriptor:: | 4462 IndexedDBBackingStore::Transaction::WriteDescriptor:: |
4461 operator=(const WriteDescriptor& other) = default; | 4463 operator=(const WriteDescriptor& other) = default; |
4462 | 4464 |
4463 } // namespace content | 4465 } // namespace content |
OLD | NEW |