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

Unified Diff: snapshot/process_snapshot.h

Issue 998033002: Carry the client ID from the database all the way through upload (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 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
« no previous file with comments | « snapshot/minidump/process_snapshot_minidump_test.cc ('k') | snapshot/test/test_process_snapshot.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/process_snapshot.h
diff --git a/snapshot/process_snapshot.h b/snapshot/process_snapshot.h
index 40811b0694b883b2699eba9f7375ce9901f82129..5d8023aa898cc8a083ddce8a6bf7e474385ea35a 100644
--- a/snapshot/process_snapshot.h
+++ b/snapshot/process_snapshot.h
@@ -22,6 +22,8 @@
#include <string>
#include <vector>
+#include "util/misc/uuid.h"
+
namespace crashpad {
class ExceptionSnapshot;
@@ -77,6 +79,17 @@ class ProcessSnapshot {
virtual void ProcessCPUTimes(timeval* user_time,
timeval* system_time) const = 0;
+ //! \brief Returns a %UUID identifying the client that the snapshot
+ //! represents.
+ //!
+ //! Client identification is within the scope of the application, but it is
+ //! expected that the identifier will be unique for an instance of Crashpad
+ //! monitoring an application or set of applications for a user. The
+ //! identifier shall remain stable over time.
+ //!
+ //! If no identifier is available, this field will contain zeroes.
+ virtual void ClientID(UUID* client_id) const = 0;
+
//! \brief Returns key-value string annotations recorded for the process,
//! system, or snapshot producer.
//!
« no previous file with comments | « snapshot/minidump/process_snapshot_minidump_test.cc ('k') | snapshot/test/test_process_snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698