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 #if defined(KASKO) | 5 #if defined(KASKO) |
6 | 6 |
7 #include "chrome/app/kasko_client.h" | 7 #include "chrome/app/kasko_client.h" |
8 | 8 |
9 #include <windows.h> | 9 #include <windows.h> |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/process/process_handle.h" | 15 #include "base/process/process_handle.h" |
16 #include "breakpad/src/client/windows/common/ipc_protocol.h" | 16 #include "breakpad/src/client/windows/common/ipc_protocol.h" |
17 #include "chrome/app/chrome_watcher_client_win.h" | 17 #include "chrome/app/chrome_watcher_client_win.h" |
18 #include "chrome/chrome_watcher/chrome_watcher_main_api.h" | 18 #include "chrome/chrome_watcher/chrome_watcher_main_api.h" |
19 #include "chrome/common/chrome_constants.h" | 19 #include "chrome/common/chrome_constants.h" |
20 #include "components/crash/app/crash_keys_win.h" | 20 #include "components/crash/content/app/crash_keys_win.h" |
21 #include "syzygy/kasko/api/client.h" | 21 #include "syzygy/kasko/api/client.h" |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 ChromeWatcherClient* g_chrome_watcher_client = nullptr; | 25 ChromeWatcherClient* g_chrome_watcher_client = nullptr; |
26 kasko::api::MinidumpType g_minidump_type = kasko::api::SMALL_DUMP_TYPE; | 26 kasko::api::MinidumpType g_minidump_type = kasko::api::SMALL_DUMP_TYPE; |
27 | 27 |
28 void GetKaskoCrashKeys(const kasko::api::CrashKey** crash_keys, | 28 void GetKaskoCrashKeys(const kasko::api::CrashKey** crash_keys, |
29 size_t* crash_key_count) { | 29 size_t* crash_key_count) { |
30 static_assert( | 30 static_assert( |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 terminate_process_without_dump(); | 120 terminate_process_without_dump(); |
121 } | 121 } |
122 | 122 |
123 extern "C" void __declspec(dllexport) ReportCrashWithProtobuf( | 123 extern "C" void __declspec(dllexport) ReportCrashWithProtobuf( |
124 EXCEPTION_POINTERS* info, const char* protobuf, size_t protobuf_length) { | 124 EXCEPTION_POINTERS* info, const char* protobuf, size_t protobuf_length) { |
125 ReportCrashWithProtobufAndMemoryRanges(info, protobuf, protobuf_length, | 125 ReportCrashWithProtobufAndMemoryRanges(info, protobuf, protobuf_length, |
126 nullptr, nullptr); | 126 nullptr, nullptr); |
127 } | 127 } |
128 | 128 |
129 #endif // defined(KASKO) | 129 #endif // defined(KASKO) |
OLD | NEW |