| 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 29 matching lines...) Expand all Loading... |
| 40 kLockFile, | 40 kLockFile, |
| 41 kUnlockFile, | 41 kUnlockFile, |
| 42 kGetTestDirectory, | 42 kGetTestDirectory, |
| 43 kNewLogger, | 43 kNewLogger, |
| 44 kSyncParent, | 44 kSyncParent, |
| 45 kGetChildren, | 45 kGetChildren, |
| 46 kNewAppendableFile, | 46 kNewAppendableFile, |
| 47 kNumEntries | 47 kNumEntries |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 // The default value for leveldb::Options::reuse_logs. Currently log reuse is an |
| 51 // experimental feature in leveldb. More info at: |
| 52 // https://github.com/google/leveldb/commit/251ebf5dc70129ad3 |
| 53 const bool kDefaultLogReuseOptionValue = true; |
| 54 |
| 50 const char* MethodIDToString(MethodID method); | 55 const char* MethodIDToString(MethodID method); |
| 51 | 56 |
| 52 leveldb::Status MakeIOError(leveldb::Slice filename, | 57 leveldb::Status MakeIOError(leveldb::Slice filename, |
| 53 const std::string& message, | 58 const std::string& message, |
| 54 MethodID method, | 59 MethodID method, |
| 55 base::File::Error error); | 60 base::File::Error error); |
| 56 leveldb::Status MakeIOError(leveldb::Slice filename, | 61 leveldb::Status MakeIOError(leveldb::Slice filename, |
| 57 const std::string& message, | 62 const std::string& message, |
| 58 MethodID method); | 63 MethodID method); |
| 59 | 64 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 void (*function)(void*); | 197 void (*function)(void*); |
| 193 }; | 198 }; |
| 194 typedef std::deque<BGItem> BGQueue; | 199 typedef std::deque<BGItem> BGQueue; |
| 195 BGQueue queue_; | 200 BGQueue queue_; |
| 196 LockTable locks_; | 201 LockTable locks_; |
| 197 }; | 202 }; |
| 198 | 203 |
| 199 } // namespace leveldb_env | 204 } // namespace leveldb_env |
| 200 | 205 |
| 201 #endif // THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_ | 206 #endif // THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_ |
| OLD | NEW |