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_WIN) | 7 #if defined(OS_WIN) |
8 #include <io.h> | 8 #include <io.h> |
9 #endif | 9 #endif |
10 | 10 |
11 #include "base/debug/trace_event.h" | 11 #include "base/debug/trace_event.h" |
12 #include "base/files/file_util.h" | 12 #include "base/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/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
16 #include "third_party/leveldatabase/env_chromium_stdio.h" | 16 #include "third_party/leveldatabase/env_chromium_stdio.h" |
17 #include "third_party/re2/re2/re2.h" | 17 #include "third_party/re2/re2/re2.h" |
18 | 18 |
19 #if defined(OS_WIN) | 19 #if defined(OS_WIN) |
20 #include "base/command_line.h" | 20 #include "base/command_line.h" |
21 #include "base/win/win_util.h" | 21 #include "base/win/win_util.h" |
22 #include "third_party/leveldatabase/env_chromium_win.h" | 22 #include "third_party/leveldatabase/env_chromium_win.h" |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 | 851 |
852 Env* IDBEnv() { | 852 Env* IDBEnv() { |
853 return leveldb_env::idb_env.Pointer(); | 853 return leveldb_env::idb_env.Pointer(); |
854 } | 854 } |
855 | 855 |
856 Env* Env::Default() { | 856 Env* Env::Default() { |
857 return leveldb_env::default_env.Pointer(); | 857 return leveldb_env::default_env.Pointer(); |
858 } | 858 } |
859 | 859 |
860 } // namespace leveldb | 860 } // namespace leveldb |
OLD | NEW |