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 <stddef.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 void __declspec(dllexport) __cdecl ClearCrashKeyValueImpl(const wchar_t* key) { | 328 void __declspec(dllexport) __cdecl ClearCrashKeyValueImpl(const wchar_t* key) { |
329 crash_reporter::ClearCrashKey(base::UTF16ToUTF8(key)); | 329 crash_reporter::ClearCrashKey(base::UTF16ToUTF8(key)); |
330 } | 330 } |
331 | 331 |
332 // This helper is invoked by code in chrome.dll to request a single crash report | 332 // This helper is invoked by code in chrome.dll to request a single crash report |
333 // upload. See CrashUploadListCrashpad. | 333 // upload. See CrashUploadListCrashpad. |
334 void __declspec(dllexport) | 334 void __declspec(dllexport) |
335 RequestSingleCrashUploadImpl(const std::string& local_id) { | 335 RequestSingleCrashUploadImpl(const std::string& local_id) { |
336 crash_reporter::RequestSingleCrashUpload(local_id); | 336 crash_reporter::RequestSingleCrashUpload(local_id); |
337 } | 337 } |
| 338 |
| 339 // This helper is invoked by code in chrome.dll to wait for the handler start to |
| 340 // complete. |
| 341 void __declspec(dllexport) BlockUntilHandlerStartedImpl() { |
| 342 crash_reporter::BlockUntilHandlerStarted(); |
| 343 } |
| 344 |
338 } // extern "C" | 345 } // extern "C" |
339 | 346 |
340 #endif // OS_WIN | 347 #endif // OS_WIN |
OLD | NEW |