| OLD | NEW |
| 1 // Copyright (c) 2011 The LevelDB Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "third_party/leveldatabase/env_chromium.h" | 5 #include "third_party/leveldatabase/env_chromium.h" |
| 6 | 6 |
| 7 #if defined(OS_POSIX) | 7 #if defined(OS_POSIX) |
| 8 #include <dirent.h> | 8 #include <dirent.h> |
| 9 #include <sys/types.h> | 9 #include <sys/types.h> |
| 10 #endif | 10 #endif |
| 11 | 11 |
| 12 #include "base/debug/trace_event.h" | |
| 13 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
| 14 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
| 15 #include "base/memory/shared_memory.h" | 14 #include "base/memory/shared_memory.h" |
| 16 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
| 17 #include "base/process/process_metrics.h" | 16 #include "base/process/process_metrics.h" |
| 18 #include "base/stl_util.h" | 17 #include "base/stl_util.h" |
| 19 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
| 19 #include "base/trace_event/trace_event.h" |
| 20 #include "third_party/leveldatabase/chromium_logger.h" | 20 #include "third_party/leveldatabase/chromium_logger.h" |
| 21 #include "third_party/re2/re2/re2.h" | 21 #include "third_party/re2/re2/re2.h" |
| 22 | 22 |
| 23 using base::FilePath; | 23 using base::FilePath; |
| 24 using leveldb::FileLock; | 24 using leveldb::FileLock; |
| 25 using leveldb::Slice; | 25 using leveldb::Slice; |
| 26 using leveldb::Status; | 26 using leveldb::Status; |
| 27 | 27 |
| 28 namespace leveldb_env { | 28 namespace leveldb_env { |
| 29 | 29 |
| (...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1084 | 1084 |
| 1085 Env* IDBEnv() { | 1085 Env* IDBEnv() { |
| 1086 return leveldb_env::idb_env.Pointer(); | 1086 return leveldb_env::idb_env.Pointer(); |
| 1087 } | 1087 } |
| 1088 | 1088 |
| 1089 Env* Env::Default() { | 1089 Env* Env::Default() { |
| 1090 return leveldb_env::default_env.Pointer(); | 1090 return leveldb_env::default_env.Pointer(); |
| 1091 } | 1091 } |
| 1092 | 1092 |
| 1093 } // namespace leveldb | 1093 } // namespace leveldb |
| OLD | NEW |