Index: snapshot/mac/process_snapshot_mac.h |
diff --git a/snapshot/mac/process_snapshot_mac.h b/snapshot/mac/process_snapshot_mac.h |
index ef50b70c1525c451b8aca69880ea572f2c61680a..17c2e052e7ea2e0fb619bbeae0661b2816ebf500 100644 |
--- a/snapshot/mac/process_snapshot_mac.h |
+++ b/snapshot/mac/process_snapshot_mac.h |
@@ -36,6 +36,7 @@ |
#include "snapshot/system_snapshot.h" |
#include "snapshot/thread_snapshot.h" |
#include "util/misc/initialization_state_dcheck.h" |
+#include "util/misc/uuid.h" |
#include "util/stdlib/pointer_container.h" |
namespace crashpad { |
@@ -74,6 +75,13 @@ class ProcessSnapshotMac final : public ProcessSnapshot { |
const natural_t* state, |
mach_msg_type_number_t state_count); |
+ //! \brief Sets the value to be returned by ClientID(). |
+ //! |
+ //! On Mac OS X, the client ID is under the control of the snapshot producer, |
+ //! which may call this method to set the client ID. If this is not done, |
+ //! ClientID() will return an identifier consisting entirely of zeroes. |
+ void SetClientID(const UUID& client_id) { client_id_ = client_id; } |
+ |
//! \brief Sets the value to be returned by AnnotationsSimpleMap(). |
//! |
//! On Mac OS X, all process annotations are under the control of the snapshot |
@@ -92,6 +100,7 @@ class ProcessSnapshotMac final : public ProcessSnapshot { |
void SnapshotTime(timeval* snapshot_time) const override; |
void ProcessStartTime(timeval* start_time) const override; |
void ProcessCPUTimes(timeval* user_time, timeval* system_time) const override; |
+ void ClientID(UUID* client_id) const override; |
const std::map<std::string, std::string>& AnnotationsSimpleMap() |
const override; |
const SystemSnapshot* System() const override; |
@@ -111,6 +120,7 @@ class ProcessSnapshotMac final : public ProcessSnapshot { |
PointerVector<internal::ModuleSnapshotMac> modules_; |
scoped_ptr<internal::ExceptionSnapshotMac> exception_; |
ProcessReader process_reader_; |
+ UUID client_id_; |
std::map<std::string, std::string> annotations_simple_map_; |
timeval snapshot_time_; |
InitializationStateDcheck initialized_; |