summaryrefslogtreecommitdiffstats
path: root/components/metrics/client_info.h
blob: 7dcf5d8de396ef0ae6173869aedc3fc144a8ab7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// 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 <stdint.h>

#include <string>

#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:
  ClientInfo();
  ~ClientInfo();

  // The metrics ID of this client: represented as a GUID string.
  std::string client_id;

  // The installation date: represented as an epoch time in seconds.
  int64_t installation_date;

  // The date on which metrics reporting was enabled: represented as an epoch
  // time in seconds.
  int64_t reporting_enabled_date;
};

}  // namespace metrics

#endif  // COMPONENTS_METRICS_CLIENT_INFO_H_