[email protected] | 8e885de | 2014-07-22 23:36:53 | [diff] [blame] | 1 | // Copyright 2014 The Chromium Authors. All rights reserved. |
2 | // Use of this source code is governed by a BSD-style license that can be | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef COMPONENTS_METRICS_CLIENT_INFO_H_ | ||||
6 | #define COMPONENTS_METRICS_CLIENT_INFO_H_ | ||||
7 | |||||
avi | 2606292 | 2015-12-26 00:14:18 | [diff] [blame] | 8 | #include <stdint.h> |
9 | |||||
[email protected] | 8e885de | 2014-07-22 23:36:53 | [diff] [blame] | 10 | #include <string> |
11 | |||||
[email protected] | 8e885de | 2014-07-22 23:36:53 | [diff] [blame] | 12 | #include "base/macros.h" |
13 | |||||
14 | namespace metrics { | ||||
15 | |||||
16 | // A data object used to pass data from outside the metrics component into the | ||||
17 | // metrics component. | ||||
18 | struct ClientInfo { | ||||
19 | public: | ||||
20 | ClientInfo(); | ||||
21 | ~ClientInfo(); | ||||
22 | |||||
23 | // The metrics ID of this client: represented as a GUID string. | ||||
24 | std::string client_id; | ||||
25 | |||||
26 | // The installation date: represented as an epoch time in seconds. | ||||
avi | 2606292 | 2015-12-26 00:14:18 | [diff] [blame] | 27 | int64_t installation_date; |
[email protected] | 8e885de | 2014-07-22 23:36:53 | [diff] [blame] | 28 | |
29 | // The date on which metrics reporting was enabled: represented as an epoch | ||||
30 | // time in seconds. | ||||
avi | 2606292 | 2015-12-26 00:14:18 | [diff] [blame] | 31 | int64_t reporting_enabled_date; |
[email protected] | 8e885de | 2014-07-22 23:36:53 | [diff] [blame] | 32 | }; |
33 | |||||
34 | } // namespace metrics | ||||
35 | |||||
36 | #endif // COMPONENTS_METRICS_CLIENT_INFO_H_ |