| 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 <string> |
| 9 #include <vector> |
| 10 |
| 11 #include "third_parth/leveldatabase/env_chromium.h" |
| 9 | 12 |
| 10 namespace leveldb_env { | 13 namespace leveldb_env { |
| 11 | 14 |
| 12 leveldb::Status MakeIOErrorWin(leveldb::Slice filename, | 15 leveldb::Status MakeIOErrorWin(leveldb::Slice filename, |
| 13 const std::string& message, | 16 const std::string& message, |
| 14 MethodID method, | 17 MethodID method, |
| 15 DWORD err); | 18 DWORD err); |
| 16 | 19 |
| 17 class ChromiumWritableFileWin : public leveldb::WritableFile { | 20 class ChromiumWritableFileWin : public leveldb::WritableFile { |
| 18 public: | 21 public: |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 void BGThread(); | 72 void BGThread(); |
| 70 static void BGThreadWrapper(void* arg) { | 73 static void BGThreadWrapper(void* arg) { |
| 71 reinterpret_cast<ChromiumEnvWin*>(arg)->BGThread(); | 74 reinterpret_cast<ChromiumEnvWin*>(arg)->BGThread(); |
| 72 } | 75 } |
| 73 void RecordOpenFilesLimit(const std::string& type); | 76 void RecordOpenFilesLimit(const std::string& type); |
| 74 virtual void RecordOSError(MethodID method, DWORD err) const; | 77 virtual void RecordOSError(MethodID method, DWORD err) const; |
| 75 }; | 78 }; |
| 76 | 79 |
| 77 } // namespace leveldb_env | 80 } // namespace leveldb_env |
| 78 | 81 |
| 79 #endif | 82 #endif // THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_WIN_H_ |
| OLD | NEW |