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