| 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 <string> |
| 9 #include <vector> |
| 10 |
| 11 #include "third_party/leveldatabase/env_chromium.h" |
| 9 | 12 |
| 10 namespace leveldb_env { | 13 namespace leveldb_env { |
| 11 | 14 |
| 12 class ChromiumWritableFile : public leveldb::WritableFile { | 15 class ChromiumWritableFile : public leveldb::WritableFile { |
| 13 public: | 16 public: |
| 14 ChromiumWritableFile(const std::string& fname, | 17 ChromiumWritableFile(const std::string& fname, |
| 15 FILE* f, | 18 FILE* f, |
| 16 const UMALogger* uma_logger, | 19 const UMALogger* uma_logger, |
| 17 WriteTracker* tracker, | 20 WriteTracker* tracker, |
| 18 bool make_backup); | 21 bool make_backup); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // BGThread() is the body of the background thread | 66 // BGThread() is the body of the background thread |
| 64 void BGThread(); | 67 void BGThread(); |
| 65 static void BGThreadWrapper(void* arg) { | 68 static void BGThreadWrapper(void* arg) { |
| 66 reinterpret_cast<ChromiumEnvStdio*>(arg)->BGThread(); | 69 reinterpret_cast<ChromiumEnvStdio*>(arg)->BGThread(); |
| 67 } | 70 } |
| 68 void RecordOpenFilesLimit(const std::string& type); | 71 void RecordOpenFilesLimit(const std::string& type); |
| 69 }; | 72 }; |
| 70 | 73 |
| 71 } // namespace leveldb_env | 74 } // namespace leveldb_env |
| 72 | 75 |
| 73 #endif | 76 #endif // THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_STDIO_H_ |
| OLD | NEW |