| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "components/leveldb/env_mojo.h" | 5 #include "components/leveldb/env_mojo.h" |
| 6 | 6 |
| 7 #include <errno.h> |
| 8 |
| 7 #include "base/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
| 8 #include "third_party/leveldatabase/chromium_logger.h" | 10 #include "third_party/leveldatabase/chromium_logger.h" |
| 9 #include "third_party/leveldatabase/src/include/leveldb/status.h" | 11 #include "third_party/leveldatabase/src/include/leveldb/status.h" |
| 10 | 12 |
| 11 namespace leveldb { | 13 namespace leveldb { |
| 12 | 14 |
| 13 namespace { | 15 namespace { |
| 14 | 16 |
| 15 const base::FilePath::CharType table_extension[] = FILE_PATH_LITERAL(".ldb"); | 17 const base::FilePath::CharType table_extension[] = FILE_PATH_LITERAL(".ldb"); |
| 16 | 18 |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 *result = NULL; | 374 *result = NULL; |
| 373 return MakeIOError(fname, "Unable to create log file", | 375 return MakeIOError(fname, "Unable to create log file", |
| 374 leveldb_env::kNewLogger, f->error_details()); | 376 leveldb_env::kNewLogger, f->error_details()); |
| 375 } else { | 377 } else { |
| 376 *result = new leveldb::ChromiumLogger(f.release()); | 378 *result = new leveldb::ChromiumLogger(f.release()); |
| 377 return Status::OK(); | 379 return Status::OK(); |
| 378 } | 380 } |
| 379 } | 381 } |
| 380 | 382 |
| 381 } // namespace leveldb | 383 } // namespace leveldb |
| OLD | NEW |