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 <errno.h> | 5 #include <errno.h> |
6 #include <stdio.h> | 6 #include <stdio.h> |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
10 #include "base/at_exit.h" | 10 #include "base/at_exit.h" |
11 #include "base/debug/trace_event.h" | 11 #include "base/debug/trace_event.h" |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/message_loop.h" | 16 #include "base/message_loop.h" |
17 #include "base/metrics/histogram.h" | 17 #include "base/metrics/histogram.h" |
18 #include "base/platform_file.h" | 18 #include "base/platform_file.h" |
19 #include "base/posix/eintr_wrapper.h" | 19 #include "base/posix/eintr_wrapper.h" |
| 20 #include "base/strings/utf_string_conversions.h" |
20 #include "base/synchronization/lock.h" | 21 #include "base/synchronization/lock.h" |
21 #include "base/sys_info.h" | 22 #include "base/sys_info.h" |
22 #include "base/threading/platform_thread.h" | 23 #include "base/threading/platform_thread.h" |
23 #include "base/threading/thread.h" | 24 #include "base/threading/thread.h" |
24 #include "base/utf_string_conversions.h" | |
25 #include "chromium_logger.h" | 25 #include "chromium_logger.h" |
26 #include "env_chromium.h" | 26 #include "env_chromium.h" |
27 #include "leveldb/env.h" | 27 #include "leveldb/env.h" |
28 #include "leveldb/slice.h" | 28 #include "leveldb/slice.h" |
29 #include "port/port.h" | 29 #include "port/port.h" |
30 #include "third_party/re2/re2/re2.h" | 30 #include "third_party/re2/re2/re2.h" |
31 #include "util/logging.h" | 31 #include "util/logging.h" |
32 | 32 |
33 #if defined(OS_WIN) | 33 #if defined(OS_WIN) |
34 #include <io.h> | 34 #include <io.h> |
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 Env* IDBEnv() { | 914 Env* IDBEnv() { |
915 return leveldb_env::idb_env.Pointer(); | 915 return leveldb_env::idb_env.Pointer(); |
916 } | 916 } |
917 | 917 |
918 Env* Env::Default() { | 918 Env* Env::Default() { |
919 return leveldb_env::default_env.Pointer(); | 919 return leveldb_env::default_env.Pointer(); |
920 } | 920 } |
921 | 921 |
922 } // namespace leveldb | 922 } // namespace leveldb |
923 | 923 |
OLD | NEW |