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_WIN_H_ | 5 #ifndef THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_WIN_H_ |
6 #define THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_WIN_H_ | 6 #define THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_WIN_H_ |
7 | 7 |
8 #include "env_chromium.h" | 8 #include "env_chromium.h" |
9 | 9 |
10 namespace leveldb_env { | 10 namespace leveldb_env { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 leveldb::SequentialFile** result); | 53 leveldb::SequentialFile** result); |
54 virtual leveldb::Status NewRandomAccessFile( | 54 virtual leveldb::Status NewRandomAccessFile( |
55 const std::string& fname, | 55 const std::string& fname, |
56 leveldb::RandomAccessFile** result); | 56 leveldb::RandomAccessFile** result); |
57 virtual leveldb::Status NewWritableFile(const std::string& fname, | 57 virtual leveldb::Status NewWritableFile(const std::string& fname, |
58 leveldb::WritableFile** result); | 58 leveldb::WritableFile** result); |
59 virtual leveldb::Status NewLogger(const std::string& fname, | 59 virtual leveldb::Status NewLogger(const std::string& fname, |
60 leveldb::Logger** result); | 60 leveldb::Logger** result); |
61 | 61 |
62 protected: | 62 protected: |
63 virtual base::PlatformFileError GetDirectoryEntries( | 63 virtual base::File::Error GetDirectoryEntries( |
64 const base::FilePath& dir_param, | 64 const base::FilePath& dir_param, |
65 std::vector<base::FilePath>* result) const; | 65 std::vector<base::FilePath>* result) const; |
66 | 66 |
67 private: | 67 private: |
68 // BGThread() is the body of the background thread | 68 // BGThread() is the body of the background thread |
69 void BGThread(); | 69 void BGThread(); |
70 static void BGThreadWrapper(void* arg) { | 70 static void BGThreadWrapper(void* arg) { |
71 reinterpret_cast<ChromiumEnvWin*>(arg)->BGThread(); | 71 reinterpret_cast<ChromiumEnvWin*>(arg)->BGThread(); |
72 } | 72 } |
73 void RecordOpenFilesLimit(const std::string& type); | 73 void RecordOpenFilesLimit(const std::string& type); |
74 virtual void RecordOSError(MethodID method, DWORD err) const; | 74 virtual void RecordOSError(MethodID method, DWORD err) const; |
75 }; | 75 }; |
76 | 76 |
77 } // namespace leveldb_env | 77 } // namespace leveldb_env |
78 | 78 |
79 #endif | 79 #endif |
OLD | NEW |