Commit fe90980b authored by Steven Holte's avatar Steven Holte Committed by Commit Bot

Update UMA protos from server side versions.

Bug: 755630
Change-Id: I7b6c1c890a68870311411b5f6c7e084052d80f7c
Reviewed-on: https://chromium-review.googlesource.com/609588
Commit-Queue: Steven Holte <holte@chromium.org>
Reviewed-by: default avatarBrian White <bcwhite@chromium.org>
Cr-Commit-Position: refs/heads/master@{#505777}
parent dbbcc8a6
...@@ -2,11 +2,10 @@ ...@@ -2,11 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Call stack sample data for a given profiling session.
syntax = "proto2"; syntax = "proto2";
option optimize_for = LITE_RUNTIME; option optimize_for = LITE_RUNTIME;
option java_outer_classname = "CallStackProfileProtos"; option java_outer_classname = "CallStackProfileProtos";
option java_package = "org.chromium.components.metrics"; option java_package = "org.chromium.components.metrics";
...@@ -14,6 +13,7 @@ package metrics; ...@@ -14,6 +13,7 @@ package metrics;
import "execution_context.proto"; import "execution_context.proto";
// Call stack sample data for a given profiling session.
// Next tag: 5 // Next tag: 5
message CallStackProfile { message CallStackProfile {
// Describes an entry in the callstack. // Describes an entry in the callstack.
...@@ -36,9 +36,10 @@ message CallStackProfile { ...@@ -36,9 +36,10 @@ message CallStackProfile {
optional int64 count = 2; optional int64 count = 2;
// This repeating field indicates the current phase of the system such as // This repeating field indicates the current phase of the system such as
// whether it is in startup, general operation, or shutdown. It is a full // whether it is in startup, general operation, or shutdown. The first
// list with the first sample and after that each indicates only the new // Sample of a CallStackProfile will list all phases that have been reached;
// phases that are achieved. // later samples will list only the new phases that occurred since the
// previous one.
repeated ProcessPhase process_phase = 3; repeated ProcessPhase process_phase = 3;
} }
......
// Copyright 2014 The Chromium Authors. All rights reserved. // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
//
// Protocol buffer for Chrome UMA (User Metrics Analysis).
syntax = "proto2"; syntax = "proto2";
option optimize_for = LITE_RUNTIME; option optimize_for = LITE_RUNTIME;
option java_outer_classname = "ChromeUserMetricsExtensionProtos"; option java_outer_classname = "ChromeUserMetricsExtensionProtos";
option java_package = "org.chromium.components.metrics"; option java_package = "org.chromium.components.metrics";
...@@ -16,12 +15,12 @@ import "cast_logs.proto"; ...@@ -16,12 +15,12 @@ import "cast_logs.proto";
import "histogram_event.proto"; import "histogram_event.proto";
import "memory_leak_report.proto"; import "memory_leak_report.proto";
import "omnibox_event.proto"; import "omnibox_event.proto";
import "perf_data.proto";
import "printer_event.proto";
import "sampled_profile.proto";
import "system_profile.proto"; import "system_profile.proto";
import "translate_event.proto"; import "translate_event.proto";
import "printer_event.proto";
import "user_action_event.proto"; import "user_action_event.proto";
import "perf_data.proto";
import "sampled_profile.proto";
// Next tag: 17 // Next tag: 17
message ChromeUserMetricsExtension { message ChromeUserMetricsExtension {
...@@ -71,7 +70,7 @@ message ChromeUserMetricsExtension { ...@@ -71,7 +70,7 @@ message ChromeUserMetricsExtension {
repeated TranslateEventProto translate_event = 15; repeated TranslateEventProto translate_event = 15;
repeated PrinterEventProto printer_event = 16; repeated PrinterEventProto printer_event = 16;
// This field is no longer used. Use |sampled_profile| instead. // Deprecated: use |sampled_profile| instead.
repeated PerfDataProto perf_data = 8 [deprecated=true]; repeated PerfDataProto perf_data = 8 [deprecated=true];
// A list of all collected sample-based profiles since the last UMA upload. // A list of all collected sample-based profiles since the last UMA upload.
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
syntax = "proto2"; syntax = "proto2";
option optimize_for = LITE_RUNTIME; option optimize_for = LITE_RUNTIME;
option java_outer_classname = "ExecutionContextProtos"; option java_outer_classname = "ExecutionContextProtos";
option java_package = "org.chromium.components.metrics"; option java_package = "org.chromium.components.metrics";
...@@ -54,20 +55,20 @@ enum Thread { ...@@ -54,20 +55,20 @@ enum Thread {
// the lifetime of a process. // the lifetime of a process.
enum ProcessPhase { enum ProcessPhase {
// The browser's main message loop has been started. // The browser's main message loop has been started.
// Based on histogram Startup.BrowserMessageLoopStartTime. // Based on histogram Startup.MessageLoopStartTime
MAIN_LOOP_START = 0; MAIN_LOOP_START = 0;
// The beginning of navigation in the first web contents' main frame. // The beginning of navigation in the first web contents' main frame.
// Based on histogram Startup.FirstWebContents.MainNavigationStart. // Based on histogram Startup.FirstWebContents.MainNavigationStart
MAIN_NAVIGATION_START = 1; MAIN_NAVIGATION_START = 1;
// The navigation is committed (first bytes received) in the first web // The navigation is committed (first bytes received) in the first web
// contents' main frame. // contents' main frame.
// Based on histogram Startup.FirstWebContents.MainNavigationFinished. // Based on histogram Startup.FirstWebContents.MainNavigationFinished
MAIN_NAVIGATION_FINISHED = 2; MAIN_NAVIGATION_FINISHED = 2;
// First non-empty paint of the first web contents. // First non-empty paint of the first web contents.
// Based on histogram Startup.FirstWebContents.NonEmptyPaint2. // Based on histogram Startup.FirstWebContents.NonEmptyPaint2
FIRST_NONEMPTY_PAINT = 3; FIRST_NONEMPTY_PAINT = 3;
// Process shutdown has begun. // Process shutdown has begun.
......
// Copyright 2014 The Chromium Authors. All rights reserved. // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
//
// Histogram-collected metrics.
syntax = "proto2"; syntax = "proto2";
option optimize_for = LITE_RUNTIME; option optimize_for = LITE_RUNTIME;
option java_outer_classname = "HistogramEventProtos"; option java_outer_classname = "HistogramEventProtos";
option java_package = "org.chromium.components.metrics"; option java_package = "org.chromium.components.metrics";
package metrics; package metrics;
// Histogram-collected metrics.
// Next tag: 4 // Next tag: 4
message HistogramEventProto { message HistogramEventProto {
// The name of the histogram, hashed. // The name of the histogram, hashed.
......
// Copyright 2014 The Chromium Authors. All rights reserved. // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
//
// Stores information about an omnibox interaction.
syntax = "proto2"; syntax = "proto2";
option optimize_for = LITE_RUNTIME; option optimize_for = LITE_RUNTIME;
option java_outer_classname = "OmniboxEventProtos"; option java_outer_classname = "OmniboxEventProtos";
option java_package = "org.chromium.components.metrics"; option java_package = "org.chromium.components.metrics";
...@@ -14,6 +13,7 @@ package metrics; ...@@ -14,6 +13,7 @@ package metrics;
import "omnibox_input_type.proto"; import "omnibox_input_type.proto";
// Stores information about an omnibox interaction.
// Next tag: 17 // Next tag: 17
message OmniboxEventProto { message OmniboxEventProto {
// The timestamp for the event, in seconds. // The timestamp for the event, in seconds.
...@@ -143,7 +143,7 @@ message OmniboxEventProto { ...@@ -143,7 +143,7 @@ message OmniboxEventProto {
APP_MAPS = 12; APP_MAPS = 12;
// When adding new classifications, please consider adding them in // When adding new classifications, please consider adding them in
// chrome/browser/resources/omnibox/omnibox.html // chromium's chrome/browser/resources/omnibox/omnibox.html
// so that these new options are displayed on about:omnibox. // so that these new options are displayed on about:omnibox.
} }
optional PageClassification current_page_classification = 10; optional PageClassification current_page_classification = 10;
...@@ -166,7 +166,7 @@ message OmniboxEventProto { ...@@ -166,7 +166,7 @@ message OmniboxEventProto {
BOOKMARK = 10; // The user's bookmarks BOOKMARK = 10; // The user's bookmarks
ZERO_SUGGEST = 11; // Suggestions based on the current page ZERO_SUGGEST = 11; // Suggestions based on the current page
// This enum value is currently only used by Android GSA. It represents // This enum value is currently only used by Android GSA. It represents
// a suggestion from the phone. // a suggestion from the phone powered by go/icing.
ON_DEVICE = 12; ON_DEVICE = 12;
// This enum value is currently only used by Android GSA. It represents // This enum value is currently only used by Android GSA. It represents
// a suggestion powered by a Chrome content provider. // a suggestion powered by a Chrome content provider.
...@@ -184,8 +184,8 @@ message OmniboxEventProto { ...@@ -184,8 +184,8 @@ message OmniboxEventProto {
// What kind of result this is. // What kind of result this is.
// This corresponds to the AutocompleteMatch::Type enumeration in // This corresponds to the AutocompleteMatch::Type enumeration in
// components/omnibox/autocomplete_match.h (except for Android // components/omnibox/autocomplete_match.h
// GSA result types). // (except for Android GSA result types).
enum ResultType { enum ResultType {
UNKNOWN_RESULT_TYPE = 0; // Unknown type (should not reach here) UNKNOWN_RESULT_TYPE = 0; // Unknown type (should not reach here)
URL_WHAT_YOU_TYPED = 1; // The input as a URL URL_WHAT_YOU_TYPED = 1; // The input as a URL
...@@ -217,8 +217,8 @@ message OmniboxEventProto { ...@@ -217,8 +217,8 @@ message OmniboxEventProto {
BOOKMARK_TITLE = 13; // A bookmark with a title/url that contains BOOKMARK_TITLE = 13; // A bookmark with a title/url that contains
// the input. // the input.
SEARCH_SUGGEST_ENTITY = 14; // A suggested search for an entity. SEARCH_SUGGEST_ENTITY = 14; // A suggested search for an entity.
SEARCH_SUGGEST_TAIL = 15; // A suggested search to complete the tail SEARCH_SUGGEST_TAIL = 15; // A suggested search to complete the tail of
// of the query. // the query.
SEARCH_SUGGEST_PERSONALIZED = 16; // A personalized suggested search. SEARCH_SUGGEST_PERSONALIZED = 16; // A personalized suggested search.
SEARCH_SUGGEST_PROFILE = 17; // A personalized suggested search for a SEARCH_SUGGEST_PROFILE = 17; // A personalized suggested search for a
// Google+ profile. // Google+ profile.
......
// Copyright 2014 The Chromium Authors. All rights reserved. // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
//
// Stores information about an omnibox interaction.
syntax = "proto2"; syntax = "proto2";
option optimize_for = LITE_RUNTIME; option optimize_for = LITE_RUNTIME;
option java_outer_classname = "OmniboxInputTypeProtos"; option java_outer_classname = "OmniboxInputTypeProtos";
option java_package = "org.chromium.components.metrics"; option java_package = "org.chromium.components.metrics";
package metrics; package metrics;
// Stores information about an omnibox interaction.
// What kind of input the user provided. // What kind of input the user provided.
// Note that the type below may be misleading. For example, "http:/" alone // Note that the type below may be misleading. For example, "http:/" alone
// cannot be opened as a URL, so it is marked as a QUERY; yet the user // cannot be opened as a URL, so it is marked as a QUERY; yet the user
......
// Copyright 2017 The Chromium Authors. All rights reserved. // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
//
// Stores information about printer configuration attempts.
syntax = "proto2"; syntax = "proto2";
option optimize_for = LITE_RUNTIME; option optimize_for = LITE_RUNTIME;
option java_outer_classname = "PrinterEventProtos"; option java_outer_classname = "PrinterEventProtos";
option java_package = "org.chromium.components.metrics"; option java_package = "org.chromium.components.metrics";
......
...@@ -5,15 +5,16 @@ ...@@ -5,15 +5,16 @@
syntax = "proto2"; syntax = "proto2";
option optimize_for = LITE_RUNTIME; option optimize_for = LITE_RUNTIME;
option java_outer_classname = "SampledProfileProtos"; option java_outer_classname = "SampledProfileProtos";
option java_package = "org.chromium.components.metrics"; option java_package = "org.chromium.components.metrics";
package metrics; package metrics;
import "call_stack_profile.proto";
import "execution_context.proto"; import "execution_context.proto";
import "perf_data.proto"; import "perf_data.proto";
import "perf_stat.proto"; import "perf_stat.proto";
import "call_stack_profile.proto";
// Protocol buffer for collected sample-based profiling data. // Protocol buffer for collected sample-based profiling data.
// Contains the parameters and data from a single profile collection event. // Contains the parameters and data from a single profile collection event.
......
// Copyright 2014 The Chromium Authors. All rights reserved. // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
//
// Stores information about the user's brower and system configuration.
// The system configuration fields are recorded once per client session.
syntax = "proto2"; syntax = "proto2";
option optimize_for = LITE_RUNTIME; option optimize_for = LITE_RUNTIME;
option java_outer_classname = "SystemProfileProtos"; option java_outer_classname = "SystemProfileProtos";
option java_package = "org.chromium.components.metrics"; option java_package = "org.chromium.components.metrics";
...@@ -15,6 +13,8 @@ package metrics; ...@@ -15,6 +13,8 @@ package metrics;
import "extension_install.proto"; import "extension_install.proto";
// Stores information about the user's brower and system configuration.
// The system configuration fields are recorded once per client session.
// Next tag: 26 // Next tag: 26
message SystemProfileProto { message SystemProfileProto {
// The time when the client was compiled/linked, in seconds since the epoch. // The time when the client was compiled/linked, in seconds since the epoch.
...@@ -65,7 +65,7 @@ message SystemProfileProto { ...@@ -65,7 +65,7 @@ message SystemProfileProto {
// The date the user enabled UMA, in seconds since the epoch. // The date the user enabled UMA, in seconds since the epoch.
// If the user has toggled the UMA enabled state multiple times, this will // If the user has toggled the UMA enabled state multiple times, this will
// be the most recent date on which UMA was enabled. // be the most recent date on which UMA was enabled.
// For privacy, this is rounded to the nearest hour. // For privacy, this is rounded to the nearest hour (M30+).
optional int64 uma_enabled_date = 3; optional int64 uma_enabled_date = 3;
// The time when the client was installed, in seconds since the epoch. // The time when the client was installed, in seconds since the epoch.
...@@ -101,8 +101,8 @@ message SystemProfileProto { ...@@ -101,8 +101,8 @@ message SystemProfileProto {
} }
optional OS os = 5; optional OS os = 5;
// Next tag for Hardware: 18
// Information on the user's hardware. // Information on the user's hardware.
// Next tag: 18
message Hardware { message Hardware {
// The CPU architecture (x86, PowerPC, x86_64, ...) // The CPU architecture (x86, PowerPC, x86_64, ...)
optional string cpu_architecture = 1; optional string cpu_architecture = 1;
...@@ -115,8 +115,12 @@ message SystemProfileProto { ...@@ -115,8 +115,12 @@ message SystemProfileProto {
optional int64 dll_base = 3; optional int64 dll_base = 3;
// The hardware_class describes the current machine model, e.g. "MacPro1,1" // The hardware_class describes the current machine model, e.g. "MacPro1,1"
// on Mac, or "Nexus 5" on Android. Only implemented on OS X, Android, and // on Mac, "iPhone9,3" on iOS or "Nexus 5" on Android. Implemented on OS X,
// Chrome OS. // iOS, Android, Chrome OS.
//
// The iOS device hardware class was added in Chrome M60 release. Prior
// to that, device hardware class was incorrectly recorded in
// cpu_architecture field.
// //
// For Chrome OS, the device hardware class ID is a unique string associated // For Chrome OS, the device hardware class ID is a unique string associated
// with each Chrome OS device product revision generally assigned at // with each Chrome OS device product revision generally assigned at
...@@ -151,7 +155,8 @@ message SystemProfileProto { ...@@ -151,7 +155,8 @@ message SystemProfileProto {
// The signature reported by CPUID (from EAX). // The signature reported by CPUID (from EAX).
optional uint32 signature = 2; optional uint32 signature = 2;
// Number of logical processors/cores on the current machine. // Number of logical processors/cores on the current machine, which
// includes hyperthreaded cores.
optional uint32 num_cores = 3; optional uint32 num_cores = 3;
} }
optional CPU cpu = 13; optional CPU cpu = 13;
...@@ -329,13 +334,13 @@ message SystemProfileProto { ...@@ -329,13 +334,13 @@ message SystemProfileProto {
// Describe wifi access point information. // Describe wifi access point information.
message WifiAccessPoint { message WifiAccessPoint {
// Vendor prefix of the access point's BSSID, these are OUIs // Vendor prefix of the access point's BSSID. These are OUIs
// (Organizationally Unique Identifiers) registered by // (Organizationally Unique Identifiers) registered by
// the IEEE and are encoded with the first byte in bits 16-23, the // the IEEE and are encoded with the first byte in bits 16-23, the
// second byte in bits 8-15 and the third byte in bits 0-7. // second byte in bits 8-15 and the third byte in bits 0-7.
optional uint32 vendor_prefix = 1; optional uint32 vendor_prefix = 1;
// Access point seurity mode definitions. // Access point security mode definitions.
enum SecurityMode { enum SecurityMode {
SECURITY_UNKNOWN = 0; SECURITY_UNKNOWN = 0;
SECURITY_WPA = 1; SECURITY_WPA = 1;
...@@ -358,7 +363,7 @@ message SystemProfileProto { ...@@ -358,7 +363,7 @@ message SystemProfileProto {
optional string model_name = 2; optional string model_name = 2;
// The device name (sometimes the same as the model_number), // The device name (sometimes the same as the model_number),
// for example "Dummynet" // for example "Dummynet".
optional string device_name = 3; optional string device_name = 3;
// The list of vendor-specific OUIs (Organziationally Unqiue // The list of vendor-specific OUIs (Organziationally Unqiue
...@@ -370,7 +375,7 @@ message SystemProfileProto { ...@@ -370,7 +375,7 @@ message SystemProfileProto {
// The wireless access point vendor information. // The wireless access point vendor information.
optional VendorInformation vendor_info = 3; optional VendorInformation vendor_info = 3;
} }
// Information of the wireless AP that device is connected to. // Information of the wireless access point that device is connected to.
optional WifiAccessPoint access_point_info = 5; optional WifiAccessPoint access_point_info = 5;
// Derived from net::NetworkQualityEstimator::EffectiveConnectionType // Derived from net::NetworkQualityEstimator::EffectiveConnectionType
...@@ -386,6 +391,7 @@ message SystemProfileProto { ...@@ -386,6 +391,7 @@ message SystemProfileProto {
EFFECTIVE_CONNECTION_TYPE_3G = 5; EFFECTIVE_CONNECTION_TYPE_3G = 5;
EFFECTIVE_CONNECTION_TYPE_4G = 6; EFFECTIVE_CONNECTION_TYPE_4G = 6;
} }
// Deprecated: The connection type according to // Deprecated: The connection type according to
// net::NetworkQualityEstimator. EffectiveConnectionType is the connection // net::NetworkQualityEstimator. EffectiveConnectionType is the connection
// type whose typical performance is most similar to the measured // type whose typical performance is most similar to the measured
...@@ -418,7 +424,7 @@ message SystemProfileProto { ...@@ -418,7 +424,7 @@ message SystemProfileProto {
optional int64 last_automatic_start_timestamp = 2; optional int64 last_automatic_start_timestamp = 2;
// The date at which Google Update last successfully sent an update check // The date at which Google Update last successfully sent an update check
// and recieved an intact response from the server, in seconds since the // and received an intact response from the server, in seconds since the
// Unix epoch. (The updates don't need to be successfully installed.) // Unix epoch. (The updates don't need to be successfully installed.)
optional int64 last_update_check_timestamp = 3; optional int64 last_update_check_timestamp = 3;
...@@ -770,7 +776,7 @@ message SystemProfileProto { ...@@ -770,7 +776,7 @@ message SystemProfileProto {
// Dolby vision support. // Dolby vision support.
optional bool dolby_vision_support = 19; optional bool dolby_vision_support = 19;
// Supported EOTFs. // Supported EOTF's.
// EOTF support according to the spec: // EOTF support according to the spec:
// eotf_support & 0x1 -> SDR supported // eotf_support & 0x1 -> SDR supported
// (eotf_support > 1) & 0x1 -> traditional HDR supported // (eotf_support > 1) & 0x1 -> traditional HDR supported
...@@ -793,8 +799,8 @@ message SystemProfileProto { ...@@ -793,8 +799,8 @@ message SystemProfileProto {
// Information about the current wireless access point. Collected directly // Information about the current wireless access point. Collected directly
// from the wireless access point via standard apis if the device is // from the wireless access point via standard apis if the device is
// connected to the Internet wirelessly. // connected to the Internet wirelessly. Introduced for Chrome on TV devices
// This is only used by Chromecast family. // but also can be collected by ChromeOS, Android or other clients.
message ExternalAccessPoint { message ExternalAccessPoint {
// The manufacturer name, for example "ASUSTeK Computer Inc.". // The manufacturer name, for example "ASUSTeK Computer Inc.".
optional string manufacturer = 1; optional string manufacturer = 1;
...@@ -908,7 +914,7 @@ message SystemProfileProto { ...@@ -908,7 +914,7 @@ message SystemProfileProto {
repeated AntiVirusProduct antivirus_product = 23; repeated AntiVirusProduct antivirus_product = 23;
enum ComponentId { enum ComponentId {
// Represents any component that is not one of the below. // The client transmitted a component ID the server does not recognize.
UNKNOWN = 1; UNKNOWN = 1;
// All the following are various components. // All the following are various components.
...@@ -925,6 +931,8 @@ message SystemProfileProto { ...@@ -925,6 +931,8 @@ message SystemProfileProto {
SW_REPORTER = 12; SW_REPORTER = 12;
WIDEVINE_CDM = 13; WIDEVINE_CDM = 13;
EPSON_INKJET_PRINTER_ESCPR = 14; EPSON_INKJET_PRINTER_ESCPR = 14;
CROS_TERMINA = 15;
STAR_CUPS_DRIVER = 16;
} }
// Information about what Chrome components are registered and at which // Information about what Chrome components are registered and at which
......
// Copyright 2016 The Chromium Authors. All rights reserved. // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
//
// Stores information about translate UI, translate Ranekr and user interaction.
syntax = "proto2"; syntax = "proto2";
option optimize_for = LITE_RUNTIME; option optimize_for = LITE_RUNTIME;
option java_outer_classname = "TranslateEventProtos"; option java_outer_classname = "TranslateEventProtos";
option java_package = "org.chromium.components.metrics"; option java_package = "org.chromium.components.metrics";
...@@ -27,8 +26,8 @@ message TranslateEventProto { ...@@ -27,8 +26,8 @@ message TranslateEventProto {
// Target language of the translation. // Target language of the translation.
optional string target_language = 2; optional string target_language = 2;
// The country where the user is. 2-letter country code. This // The country where the user is. 2-letter country code. This corresponds to
// corresponds to the stored permanent country in VariationsService. // the stored permanent country in VariationsService.
optional string country = 14; optional string country = 14;
// The following counts are extracted from TranslatePrefs. // The following counts are extracted from TranslatePrefs.
...@@ -67,7 +66,7 @@ message TranslateEventProto { ...@@ -67,7 +66,7 @@ message TranslateEventProto {
optional RankerResponse ranker_response = 9; optional RankerResponse ranker_response = 9;
// The action performed by the user in the translate UI. // The action performed by the user in the translate UI.
// Next tag 28. // Next tag: 28
enum EventType { enum EventType {
// The feedback event does not correspond to any of the enumerated // The feedback event does not correspond to any of the enumerated
// cases. // cases.
......
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
syntax = "proto2"; syntax = "proto2";
package ukm;
option optimize_for = LITE_RUNTIME; option optimize_for = LITE_RUNTIME;
package ukm;
// Next tag: 6 // Next tag: 6
message Entry { message Entry {
// Unique identifier for an Event. This is used to provide hierarchical // Unique identifier for an Event. This is used to provide hierarchical
......
...@@ -4,16 +4,16 @@ ...@@ -4,16 +4,16 @@
syntax = "proto2"; syntax = "proto2";
package ukm;
option optimize_for = LITE_RUNTIME; option optimize_for = LITE_RUNTIME;
package ukm;
import "ukm/entry.proto"; import "ukm/entry.proto";
import "ukm/source.proto"; import "ukm/source.proto";
import "system_profile.proto"; import "system_profile.proto";
// This is the message type sent from Chrome to the UKM collector. // This is the message type sent from Chrome to the UKM collector.
// Next tag: 6 // Next tag: 7
message Report { message Report {
// A unique identifier for a Chrome install. This ID should be used only // A unique identifier for a Chrome install. This ID should be used only
// in UKM reports, and not linked to any other data sources. // in UKM reports, and not linked to any other data sources.
......
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
syntax = "proto2"; syntax = "proto2";
package ukm;
option optimize_for = LITE_RUNTIME; option optimize_for = LITE_RUNTIME;
package ukm;
// Source contains data related to a top-level navigation. // Source contains data related to a top-level navigation.
// Next tag: 8 // Next tag: 8
message Source { message Source {
...@@ -18,7 +18,9 @@ message Source { ...@@ -18,7 +18,9 @@ message Source {
// discovered by Google's crawler, it should not be recorded. // discovered by Google's crawler, it should not be recorded.
optional string url = 2; optional string url = 2;
// The origin of the URL. This is reserved to be used by server side only. // The origin of the URL (ex. "http://docs.google.com" if the URL is something
// like "http://docs.google.com/some_doc_hash"). This field is populated
// server-side and should never be filled in by clients.
reserved 5; reserved 5;
reserved "url_origin"; reserved "url_origin";
...@@ -34,7 +36,7 @@ message Source { ...@@ -34,7 +36,7 @@ message Source {
// events related to this Source will generally be relative to this timestamp. // events related to this Source will generally be relative to this timestamp.
optional int64 navigation_time_msec = 3; optional int64 navigation_time_msec = 3;
// Time between navigation and the first contentful paint, in // Time between navigation and the first contentful paint, in milliseconds.
// milliseconds. Deprecated. Use ukm::Entry instead. // Deprecated. Use ukm::Entry instead.
optional int64 first_contentful_paint_msec = 4 [deprecated = true]; optional int64 first_contentful_paint_msec = 4 [deprecated = true];
} }
// Copyright 2014 The Chromium Authors. All rights reserved. // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
//
// Stores information about an event that occurs in response to a user action,
// e.g. an interaction with a browser UI element.
syntax = "proto2"; syntax = "proto2";
option optimize_for = LITE_RUNTIME; option optimize_for = LITE_RUNTIME;
option java_outer_classname = "UserActionEventProtos"; option java_outer_classname = "UserActionEventProtos";
option java_package = "org.chromium.components.metrics"; option java_package = "org.chromium.components.metrics";
package metrics; package metrics;
// Stores information about an event that occurs in response to a user action,
// e.g. an interaction with a browser UI element.
// Next tag: 3 // Next tag: 3
message UserActionEventProto { message UserActionEventProto {
// The name of the action, hashed. // The name of the action, hashed.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment