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 <deque> | 5 #include <deque> |
6 #include <errno.h> | 6 #include <errno.h> |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 #include "base/at_exit.h" | 8 #include "base/at_exit.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "base/platform_file.h" | 14 #include "base/platform_file.h" |
15 #include "base/process_util.h" | 15 #include "base/process_util.h" |
16 #include "base/stringprintf.h" | 16 #include "base/stringprintf.h" |
17 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
18 #include "base/sys_info.h" | 18 #include "base/sys_info.h" |
19 #include "base/task.h" | |
20 #include "base/threading/platform_thread.h" | 19 #include "base/threading/platform_thread.h" |
21 #include "base/threading/thread.h" | 20 #include "base/threading/thread.h" |
22 #include "base/utf_string_conversions.h" | 21 #include "base/utf_string_conversions.h" |
23 #include "leveldb/env.h" | 22 #include "leveldb/env.h" |
24 #include "leveldb/slice.h" | 23 #include "leveldb/slice.h" |
25 #include "port/port.h" | 24 #include "port/port.h" |
26 #include "util/logging.h" | 25 #include "util/logging.h" |
27 | 26 |
28 #if defined(OS_WIN) | 27 #if defined(OS_WIN) |
29 #include <io.h> | 28 #include <io.h> |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 ::base::LazyInstance<ChromiumEnv, ::base::LeakyLazyInstanceTraits<ChromiumEnv> > | 547 ::base::LazyInstance<ChromiumEnv, ::base::LeakyLazyInstanceTraits<ChromiumEnv> > |
549 default_env = LAZY_INSTANCE_INITIALIZER; | 548 default_env = LAZY_INSTANCE_INITIALIZER; |
550 | 549 |
551 } | 550 } |
552 | 551 |
553 Env* Env::Default() { | 552 Env* Env::Default() { |
554 return default_env.Pointer(); | 553 return default_env.Pointer(); |
555 } | 554 } |
556 | 555 |
557 } | 556 } |
OLD | NEW |