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.
5 // Protocol buffer for Chrome UMA (User Metrics Analysis).
9 option optimize_for = LITE_RUNTIME;
10 option java_outer_classname = "ChromeUserMetricsExtensionProtos";
11 option java_package = "org.chromium.components.metrics";
15 import "cast_logs.proto";
16 import "histogram_event.proto";
17 import "omnibox_event.proto";
18 import "profiler_event.proto";
19 import "system_profile.proto";
20 import "user_action_event.proto";
21 import "perf_data.proto";
22 import "sampled_profile.proto";
25 message ChromeUserMetricsExtension {
26 // The product (i.e. end user application) for a given UMA log.
28 // Google Chrome product family.
31 // The product corresponding to this log. The field type is int32 instead of
32 // Product so that downstream users of the Chromium metrics component can
33 // introduce products without needing to make changes to the Chromium code
34 // (though they still need to add the new product to the server-side enum).
35 // Note: The default value is Chrome, so Chrome products will not transmit
37 optional int32 product = 10 [default = 0];
39 // The id of the client install that generated these events.
41 // For Chrome clients, this id is unique to a top-level (one level above the
42 // "Default" directory) Chrome user data directory [1], and so is shared among
43 // all Chrome user profiles contained in this user data directory.
44 // An id of 0 is reserved for test data (monitoring and internal testing) and
45 // should normally be ignored in analysis of the data.
46 // [1] http://www.chromium.org/user-experience/user-data-directory
47 optional fixed64 client_id = 1;
49 // The session id for this user.
50 // Values such as tab ids are only meaningful within a particular session.
51 // The client keeps track of the session id and sends it with each event.
52 // The session id is simply an integer that is incremented each time the user
54 optional int32 session_id = 2;
56 // Information about the user's browser and system configuration.
57 optional SystemProfileProto system_profile = 3;
59 // This message will log one or more of the following event types:
60 repeated UserActionEventProto user_action_event = 4;
61 repeated OmniboxEventProto omnibox_event = 5;
62 repeated HistogramEventProto histogram_event = 6;
63 repeated ProfilerEventProto profiler_event = 7;
65 // This field is no longer used. Use |sampled_profile| instead.
66 repeated PerfDataProto perf_data = 8 [deprecated=true];
68 // A list of all collected sample-based profiles since the last UMA upload.
69 repeated SampledProfile sampled_profile = 11;
71 // Additional data related with Cast-enabled devices.
72 optional CastLogsProto cast_logs = 12;