OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/crash/content/app/crashpad.h" | 5 #include "components/crash/content/app/crashpad.h" |
6 | 6 |
| 7 #include <stddef.h> |
7 #include <string.h> | 8 #include <string.h> |
8 | 9 |
9 #include <algorithm> | 10 #include <algorithm> |
10 #include <map> | 11 #include <map> |
11 #include <vector> | 12 #include <vector> |
12 | 13 |
13 #include "base/auto_reset.h" | 14 #include "base/auto_reset.h" |
14 #include "base/command_line.h" | 15 #include "base/command_line.h" |
15 #include "base/debug/crash_logging.h" | 16 #include "base/debug/crash_logging.h" |
16 #include "base/debug/dump_without_crashing.h" | 17 #include "base/debug/dump_without_crashing.h" |
17 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "base/macros.h" |
18 #include "base/strings/string_number_conversions.h" | 20 #include "base/strings/string_number_conversions.h" |
19 #include "base/strings/string_piece.h" | 21 #include "base/strings/string_piece.h" |
20 #include "base/strings/stringprintf.h" | 22 #include "base/strings/stringprintf.h" |
21 #include "base/strings/sys_string_conversions.h" | 23 #include "base/strings/sys_string_conversions.h" |
22 #include "base/strings/utf_string_conversions.h" | 24 #include "base/strings/utf_string_conversions.h" |
23 #include "build/build_config.h" | 25 #include "build/build_config.h" |
24 #include "components/crash/content/app/crash_reporter_client.h" | 26 #include "components/crash/content/app/crash_reporter_client.h" |
25 #include "third_party/crashpad/crashpad/client/crash_report_database.h" | 27 #include "third_party/crashpad/crashpad/client/crash_report_database.h" |
26 #include "third_party/crashpad/crashpad/client/crashpad_client.h" | 28 #include "third_party/crashpad/crashpad/client/crashpad_client.h" |
27 #include "third_party/crashpad/crashpad/client/crashpad_info.h" | 29 #include "third_party/crashpad/crashpad/client/crashpad_info.h" |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 base::UTF16ToUTF8(value)); | 300 base::UTF16ToUTF8(value)); |
299 } | 301 } |
300 | 302 |
301 void __declspec(dllexport) __cdecl ClearCrashKeyValueImpl(const wchar_t* key) { | 303 void __declspec(dllexport) __cdecl ClearCrashKeyValueImpl(const wchar_t* key) { |
302 crash_reporter::ClearCrashKey(base::UTF16ToUTF8(key)); | 304 crash_reporter::ClearCrashKey(base::UTF16ToUTF8(key)); |
303 } | 305 } |
304 | 306 |
305 } // extern "C" | 307 } // extern "C" |
306 | 308 |
307 #endif // OS_WIN | 309 #endif // OS_WIN |
OLD | NEW |