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 #include <stddef.h> |
10 | 11 |
11 #include <string> | 12 #include <string> |
12 #include <vector> | 13 #include <vector> |
13 | 14 |
14 #include "base/lazy_instance.h" | 15 #include "base/lazy_instance.h" |
15 #include "base/logging.h" | 16 #include "base/logging.h" |
16 #include "base/process/process_handle.h" | 17 #include "base/process/process_handle.h" |
17 #include "chrome/app/chrome_watcher_client_win.h" | 18 #include "chrome/app/chrome_watcher_client_win.h" |
18 #include "chrome/chrome_watcher/chrome_watcher_main_api.h" | 19 #include "chrome/chrome_watcher/chrome_watcher_main_api.h" |
19 #include "chrome/common/chrome_constants.h" | 20 #include "chrome/common/chrome_constants.h" |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 ::TerminateProcess(::GetCurrentProcess(), 0); | 109 ::TerminateProcess(::GetCurrentProcess(), 0); |
109 } | 110 } |
110 | 111 |
111 extern "C" void __declspec(dllexport) ReportCrashWithProtobuf( | 112 extern "C" void __declspec(dllexport) ReportCrashWithProtobuf( |
112 EXCEPTION_POINTERS* info, const char* protobuf, size_t protobuf_length) { | 113 EXCEPTION_POINTERS* info, const char* protobuf, size_t protobuf_length) { |
113 ReportCrashWithProtobufAndMemoryRanges(info, protobuf, protobuf_length, | 114 ReportCrashWithProtobufAndMemoryRanges(info, protobuf, protobuf_length, |
114 nullptr, nullptr); | 115 nullptr, nullptr); |
115 } | 116 } |
116 | 117 |
117 #endif // defined(KASKO) | 118 #endif // defined(KASKO) |
OLD | NEW |