Index: components/metrics/client_info.h |
diff --git a/components/metrics/client_info.h b/components/metrics/client_info.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c8388f33eb888d756cc3bc4a0bb6dc02b87cb6c5 |
--- /dev/null |
+++ b/components/metrics/client_info.h |
@@ -0,0 +1,35 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef COMPONENTS_METRICS_CLIENT_INFO_H_ |
+#define COMPONENTS_METRICS_CLIENT_INFO_H_ |
+ |
+#include <string> |
+ |
+#include "base/basictypes.h" |
+#include "base/macros.h" |
+ |
+namespace metrics { |
+ |
+// A data object used to pass data from outside the metrics component into the |
+// metrics component. |
+struct ClientInfo { |
+ public: |
Ilya Sherman
2014/07/11 04:45:41
nit: Structs are public by default.
gab
2014/07/11 20:33:40
Yes, but since I had a private section below I tho
|
+ ClientInfo(); |
+ |
+ // The metrics ID of this client: represented as a GUID string. |
+ std::string client_id; |
Ilya Sherman
2014/07/11 04:45:41
nit: Please leave a blank line between adjacent do
gab
2014/07/11 20:33:40
Done.
|
+ // The installation date: represented as an epoch time in seconds. |
+ int64 installation_date; |
+ // The date on which reporting was enabled: represented as an epoch time in |
Ilya Sherman
2014/07/11 04:45:41
nit: "on which reporting was enabled" -> "on which
gab
2014/07/11 20:33:40
Done.
|
+ // seconds. |
+ int64 reporting_enabled_date; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(ClientInfo); |
Ilya Sherman
2014/07/11 04:45:41
What's wrong with copy or assignment for this clas
gab
2014/07/11 20:33:40
I think the same argument to put DISALLOW_COPY_AND
|
+}; |
+ |
+} // namespace metrics |
+ |
+#endif // COMPONENTS_METRICS_CLIENT_INFO_H_ |