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 5syntax = "proto2"; 6 7option optimize_for = LITE_RUNTIME; 8 9option java_outer_classname = "UserActionEventProtos"; 10option java_package = "org.chromium.components.metrics"; 11 12package metrics; 13 14// Stores information about an event that occurs in response to a user action, 15// e.g. an interaction with a browser UI element. 16// Next tag: 3 17message UserActionEventProto { 18 // The name of the action, hashed. 19 optional fixed64 name_hash = 1; 20 21 // The timestamp for the event, in seconds. 22 // This value comes from Chromium's TimeTicks::Now(), which is an abstract 23 // time value that is guaranteed to always be non-decreasing (regardless of 24 // Daylight Saving Time or any other changes to the system clock). 25 // These numbers are only comparable within a session. To sequence events 26 // across sessions, order by the |session_id| from the 27 // ChromeUserMetricsExtension message. 28 optional int64 time_sec = 2; 29} 30