| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium 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. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef THIRD_PARTY_LEVELDATABASE_CHROMIUM_LOGGER_H_ | 5 #ifndef THIRD_PARTY_LEVELDATABASE_CHROMIUM_LOGGER_H_ |
| 6 #define THIRD_PARTY_LEVELDATABASE_CHROMIUM_LOGGER_H_ | 6 #define THIRD_PARTY_LEVELDATABASE_CHROMIUM_LOGGER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
| 11 #include "base/format_macros.h" | 11 #include "base/format_macros.h" |
| 12 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
| 13 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 14 #include "third_party/leveldatabase/src/include/leveldb/env.h" | 15 #include "third_party/leveldatabase/src/include/leveldb/env.h" |
| 15 | 16 |
| 16 namespace leveldb { | 17 namespace leveldb { |
| 17 | 18 |
| 18 class ChromiumLogger : public Logger { | 19 class ChromiumLogger : public Logger { |
| 19 public: | 20 public: |
| 20 explicit ChromiumLogger(base::File* f) : file_(f) {} | 21 explicit ChromiumLogger(base::File* f) : file_(f) {} |
| 21 virtual ~ChromiumLogger() {} | 22 virtual ~ChromiumLogger() {} |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 } | 84 } |
| 84 } | 85 } |
| 85 | 86 |
| 86 private: | 87 private: |
| 87 scoped_ptr<base::File> file_; | 88 scoped_ptr<base::File> file_; |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 } // namespace leveldb | 91 } // namespace leveldb |
| 91 | 92 |
| 92 #endif // THIRD_PARTY_LEVELDATABASE_CHROMIUM_LOGGER_H_ | 93 #endif // THIRD_PARTY_LEVELDATABASE_CHROMIUM_LOGGER_H_ |
| OLD | NEW |