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 8 #include <stdint.h> 9 10 #include <string> 11 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. 27 int64_t installation_date; 28 29 // The date on which metrics reporting was enabled: represented as an epoch 30 // time in seconds. 31 int64_t reporting_enabled_date; 32 }; 33 34 } // namespace metrics 35 36 #endif // COMPONENTS_METRICS_CLIENT_INFO_H_ 37