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 <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 23 matching lines...) Expand all Loading... |
34 kDeleteFile, | 34 kDeleteFile, |
35 kCreateDir, | 35 kCreateDir, |
36 kDeleteDir, | 36 kDeleteDir, |
37 kGetFileSize, | 37 kGetFileSize, |
38 kRenameFile, | 38 kRenameFile, |
39 kLockFile, | 39 kLockFile, |
40 kUnlockFile, | 40 kUnlockFile, |
41 kGetTestDirectory, | 41 kGetTestDirectory, |
42 kNewLogger, | 42 kNewLogger, |
43 kSyncParent, | 43 kSyncParent, |
| 44 kGetChildren, |
44 kNumEntries | 45 kNumEntries |
45 }; | 46 }; |
46 | 47 |
47 const char* MethodIDToString(MethodID method); | 48 const char* MethodIDToString(MethodID method); |
48 | 49 |
49 leveldb::Status MakeIOError(leveldb::Slice filename, | 50 leveldb::Status MakeIOError(leveldb::Slice filename, |
50 const char* message, | 51 const char* message, |
51 MethodID method, | 52 MethodID method, |
52 int saved_errno); | 53 int saved_errno); |
53 leveldb::Status MakeIOError(leveldb::Slice filename, | 54 leveldb::Status MakeIOError(leveldb::Slice filename, |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 void (*function)(void*); | 231 void (*function)(void*); |
231 }; | 232 }; |
232 typedef std::deque<BGItem> BGQueue; | 233 typedef std::deque<BGItem> BGQueue; |
233 BGQueue queue_; | 234 BGQueue queue_; |
234 LockTable locks_; | 235 LockTable locks_; |
235 }; | 236 }; |
236 | 237 |
237 } // namespace leveldb_env | 238 } // namespace leveldb_env |
238 | 239 |
239 #endif | 240 #endif |
OLD | NEW |