blob: 7dcf5d8de396ef0ae6173869aedc3fc144a8ab7d [file] [log] [blame]
[email protected]8e885de2014-07-22 23:36:531// 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
avi26062922015-12-26 00:14:188#include <stdint.h>
9
[email protected]8e885de2014-07-22 23:36:5310#include <string>
11
[email protected]8e885de2014-07-22 23:36:5312#include "base/macros.h"
13
14namespace metrics {
15
16// A data object used to pass data from outside the metrics component into the
17// metrics component.
18struct 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.
avi26062922015-12-26 00:14:1827 int64_t installation_date;
[email protected]8e885de2014-07-22 23:36:5328
29 // The date on which metrics reporting was enabled: represented as an epoch
30 // time in seconds.
avi26062922015-12-26 00:14:1831 int64_t reporting_enabled_date;
[email protected]8e885de2014-07-22 23:36:5332};
33
34} // namespace metrics
35
36#endif // COMPONENTS_METRICS_CLIENT_INFO_H_