| OLD | NEW |
| 1 // Copyright (c) 2013 The LevelDB Authors. All rights reserved. | 1 // Copyright (c) 2013 The LevelDB 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. See the AUTHORS file for names of contributors. | 3 // found in the LICENSE file. See the AUTHORS file for names of contributors. |
| 4 | 4 |
| 5 #ifndef THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_ | 5 #ifndef THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_ |
| 6 #define THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_ | 6 #define THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 virtual leveldb::Status GetTestDirectory(std::string* path); | 124 virtual leveldb::Status GetTestDirectory(std::string* path); |
| 125 virtual uint64_t NowMicros(); | 125 virtual uint64_t NowMicros(); |
| 126 virtual void SleepForMicroseconds(int micros); | 126 virtual void SleepForMicroseconds(int micros); |
| 127 virtual leveldb::Status NewSequentialFile(const std::string& fname, | 127 virtual leveldb::Status NewSequentialFile(const std::string& fname, |
| 128 leveldb::SequentialFile** result); | 128 leveldb::SequentialFile** result); |
| 129 virtual leveldb::Status NewRandomAccessFile( | 129 virtual leveldb::Status NewRandomAccessFile( |
| 130 const std::string& fname, | 130 const std::string& fname, |
| 131 leveldb::RandomAccessFile** result); | 131 leveldb::RandomAccessFile** result); |
| 132 virtual leveldb::Status NewWritableFile(const std::string& fname, | 132 virtual leveldb::Status NewWritableFile(const std::string& fname, |
| 133 leveldb::WritableFile** result); | 133 leveldb::WritableFile** result); |
| 134 virtual leveldb::Status NewAppendableFile(const std::string& fname, | |
| 135 leveldb::WritableFile** result); | |
| 136 virtual leveldb::Status NewLogger(const std::string& fname, | 134 virtual leveldb::Status NewLogger(const std::string& fname, |
| 137 leveldb::Logger** result); | 135 leveldb::Logger** result); |
| 138 | 136 |
| 139 protected: | 137 protected: |
| 140 virtual void DidSyncDir(const std::string& fname); | 138 virtual void DidSyncDir(const std::string& fname); |
| 141 | 139 |
| 142 std::string name_; | 140 std::string name_; |
| 143 bool make_backup_; | 141 bool make_backup_; |
| 144 | 142 |
| 145 private: | 143 private: |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 void (*function)(void*); | 205 void (*function)(void*); |
| 208 }; | 206 }; |
| 209 typedef std::deque<BGItem> BGQueue; | 207 typedef std::deque<BGItem> BGQueue; |
| 210 BGQueue queue_; | 208 BGQueue queue_; |
| 211 LockTable locks_; | 209 LockTable locks_; |
| 212 }; | 210 }; |
| 213 | 211 |
| 214 } // namespace leveldb_env | 212 } // namespace leveldb_env |
| 215 | 213 |
| 216 #endif // THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_ | 214 #endif // THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_ |
| OLD | NEW |