OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium 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. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/logging.h" | 5 #include "base/logging.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <io.h> | 8 #include <io.h> |
9 #include <windows.h> | 9 #include <windows.h> |
10 typedef HANDLE FileHandle; | 10 typedef HANDLE FileHandle; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include <iomanip> | 44 #include <iomanip> |
45 #include <ostream> | 45 #include <ostream> |
46 | 46 |
47 #include "base/base_switches.h" | 47 #include "base/base_switches.h" |
48 #include "base/command_line.h" | 48 #include "base/command_line.h" |
49 #include "base/debug/alias.h" | 49 #include "base/debug/alias.h" |
50 #include "base/debug/debugger.h" | 50 #include "base/debug/debugger.h" |
51 #include "base/debug/stack_trace.h" | 51 #include "base/debug/stack_trace.h" |
52 #include "base/posix/eintr_wrapper.h" | 52 #include "base/posix/eintr_wrapper.h" |
53 #include "base/strings/string_piece.h" | 53 #include "base/strings/string_piece.h" |
| 54 #include "base/strings/utf_string_conversions.h" |
54 #include "base/synchronization/lock_impl.h" | 55 #include "base/synchronization/lock_impl.h" |
55 #include "base/threading/platform_thread.h" | 56 #include "base/threading/platform_thread.h" |
56 #include "base/utf_string_conversions.h" | |
57 #include "base/vlog.h" | 57 #include "base/vlog.h" |
58 #if defined(OS_POSIX) | 58 #if defined(OS_POSIX) |
59 #include "base/safe_strerror_posix.h" | 59 #include "base/safe_strerror_posix.h" |
60 #endif | 60 #endif |
61 | 61 |
62 #if defined(OS_ANDROID) | 62 #if defined(OS_ANDROID) |
63 #include <android/log.h> | 63 #include <android/log.h> |
64 #endif | 64 #endif |
65 | 65 |
66 namespace logging { | 66 namespace logging { |
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
869 return *log_file_name; | 869 return *log_file_name; |
870 return std::wstring(); | 870 return std::wstring(); |
871 } | 871 } |
872 #endif | 872 #endif |
873 | 873 |
874 } // namespace logging | 874 } // namespace logging |
875 | 875 |
876 std::ostream& operator<<(std::ostream& out, const wchar_t* wstr) { | 876 std::ostream& operator<<(std::ostream& out, const wchar_t* wstr) { |
877 return out << WideToUTF8(std::wstring(wstr)); | 877 return out << WideToUTF8(std::wstring(wstr)); |
878 } | 878 } |
OLD | NEW |