| 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); |
| 134 virtual leveldb::Status NewLogger(const std::string& fname, | 136 virtual leveldb::Status NewLogger(const std::string& fname, |
| 135 leveldb::Logger** result); | 137 leveldb::Logger** result); |
| 136 | 138 |
| 137 protected: | 139 protected: |
| 138 virtual void DidSyncDir(const std::string& fname); | 140 virtual void DidSyncDir(const std::string& fname); |
| 139 | 141 |
| 140 std::string name_; | 142 std::string name_; |
| 141 bool make_backup_; | 143 bool make_backup_; |
| 142 | 144 |
| 143 private: | 145 private: |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 void (*function)(void*); | 207 void (*function)(void*); |
| 206 }; | 208 }; |
| 207 typedef std::deque<BGItem> BGQueue; | 209 typedef std::deque<BGItem> BGQueue; |
| 208 BGQueue queue_; | 210 BGQueue queue_; |
| 209 LockTable locks_; | 211 LockTable locks_; |
| 210 }; | 212 }; |
| 211 | 213 |
| 212 } // namespace leveldb_env | 214 } // namespace leveldb_env |
| 213 | 215 |
| 214 #endif // THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_ | 216 #endif // THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_ |
| OLD | NEW |