| 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/files/file_util.h" | 12 #include "base/files/file_util.h" |
| 13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
| 14 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
| 15 #include "base/process/process_metrics.h" | 15 #include "base/process/process_metrics.h" |
| 16 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
| 17 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
| 18 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
| 19 #include "base/threading/thread_restrictions.h" | 19 #include "base/threading/thread_restrictions.h" |
| 20 #include "base/trace_event/trace_event.h" | 20 #include "base/trace_event/trace_event.h" |
| 21 #include "third_party/leveldatabase/chromium_logger.h" | 21 #include "third_party/leveldatabase/chromium_logger.h" |
| 22 #include "third_party/re2/re2/re2.h" | 22 #include "third_party/re2/src/re2/re2.h" |
| 23 | 23 |
| 24 using base::FilePath; | 24 using base::FilePath; |
| 25 using leveldb::FileLock; | 25 using leveldb::FileLock; |
| 26 using leveldb::Slice; | 26 using leveldb::Slice; |
| 27 using leveldb::Status; | 27 using leveldb::Status; |
| 28 | 28 |
| 29 namespace leveldb_env { | 29 namespace leveldb_env { |
| 30 | 30 |
| 31 namespace { | 31 namespace { |
| 32 | 32 |
| (...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1076 | 1076 |
| 1077 } // namespace leveldb_env | 1077 } // namespace leveldb_env |
| 1078 | 1078 |
| 1079 namespace leveldb { | 1079 namespace leveldb { |
| 1080 | 1080 |
| 1081 Env* Env::Default() { | 1081 Env* Env::Default() { |
| 1082 return leveldb_env::default_env.Pointer(); | 1082 return leveldb_env::default_env.Pointer(); |
| 1083 } | 1083 } |
| 1084 | 1084 |
| 1085 } // namespace leveldb | 1085 } // namespace leveldb |
| OLD | NEW |