Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Unified Diff: components/crash/content/app/crashpad.h

Issue 2748903003: [Mac] Use Crashpad in the AlertNotificationService.xpc. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/crash/content/app/crashpad.h
diff --git a/components/crash/content/app/crashpad.h b/components/crash/content/app/crashpad.h
index eeb65ac69b71f96e4fdcc891650e34773f0b2a37..123201b151e4de4aaacfa1ff3311cc6dba8340f0 100644
--- a/components/crash/content/app/crashpad.h
+++ b/components/crash/content/app/crashpad.h
@@ -13,6 +13,10 @@
#include "base/files/file_path.h"
+#if defined(OS_MACOSX)
Mark Mentovai 2017/03/14 23:24:52 #include "build/build_config.h" first (this file s
Robert Sesek 2017/03/15 19:22:09 Done.
+#include "base/mac/scoped_mach_port.h"
+#endif
+
namespace crash_reporter {
// Initializes Crashpad in a way that is appropriate for initial_client and
@@ -94,6 +98,12 @@ void GetReports(std::vector<Report>* reports);
// Requests a user triggered upload for a crash report with a given id.
void RequestSingleCrashUpload(const std::string& local_id);
+#if defined(OS_MACOSX)
+// After Crashpad is initialized, returns a new send right to the handler's
+// Mach port.
+base::mac::ScopedMachSendRight GetHandlerMachPort();
+#endif
+
namespace internal {
#if defined(OS_WIN)

Powered by Google App Engine
This is Rietveld 408576698