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

Unified Diff: handler/mac/crash_report_exception_handler.h

Issue 982613002: handler: Add report upload (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 years, 10 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: handler/mac/crash_report_exception_handler.h
diff --git a/handler/mac/crash_report_exception_handler.h b/handler/mac/crash_report_exception_handler.h
index 8f81102e3a4812438badec36dfce0a5b2e02697d..f44a989e7579114a2a4c707859a1deaa8c6cda60 100644
--- a/handler/mac/crash_report_exception_handler.h
+++ b/handler/mac/crash_report_exception_handler.h
@@ -17,6 +17,9 @@
#include <mach/mach.h>
+#include <map>
+#include <string>
+
#include "base/basictypes.h"
#include "client/crash_report_database.h"
#include "handler/mac/crash_report_upload_thread.h"
@@ -33,8 +36,12 @@ class CrashReportExceptionHandler : public UniversalMachExcServer::Interface {
//! \param[in] database The database to store crash reports in. Weak.
//! \param[in] upload_thread The upload thread to notify when a new crash
//! report is written into \a database.
- CrashReportExceptionHandler(CrashReportDatabase* database,
- CrashReportUploadThread* upload_thread);
+ //! \param[in] process_annotations A map of annotations to insert into each
Robert Sesek 2015/03/05 00:14:42 Chrome's crash keys will not be set here, correct?
+ //! crash report that is written as process-level annotations.
+ CrashReportExceptionHandler(
+ CrashReportDatabase* database,
+ CrashReportUploadThread* upload_thread,
+ const std::map<std::string, std::string>& process_annotations);
Robert Sesek 2015/03/05 00:14:42 Since this parameter is being stored by reference,
Mark Mentovai 2015/03/05 19:41:31 Robert Sesek wrote:
~CrashReportExceptionHandler();
@@ -61,6 +68,7 @@ class CrashReportExceptionHandler : public UniversalMachExcServer::Interface {
private:
CrashReportDatabase* database_; // weak
CrashReportUploadThread* upload_thread_; // weak
+ const std::map<std::string, std::string>& process_annotations_;
DISALLOW_COPY_AND_ASSIGN(CrashReportExceptionHandler);
};
« no previous file with comments | « no previous file | handler/mac/crash_report_exception_handler.cc » ('j') | handler/mac/crash_report_upload_thread.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698