system_profile.proto revision da21ac0751a3abf3502ff74c5de7ad95db52ba30
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// Stores information about the user's brower and system configuration.
6// The system configuration fields are recorded once per client session.
7
8syntax = "proto2";
9
10option optimize_for = LITE_RUNTIME;
11option java_outer_classname = "SystemProfileProtos";
12option java_package = "org.chromium.components.metrics";
13
14package metrics;
15
16// Next tag: 21
17message SystemProfileProto {
18  // The time when the client was compiled/linked, in seconds since the epoch.
19  optional int64 build_timestamp = 1;
20
21  // A version number string for the application.
22  // Most commonly this is the browser version number found in a user agent
23  // string, and is typically a 4-tuple of numbers separated by periods.  In
24  // cases where the user agent version might be ambiguous (example: Linux 64-
25  // bit build, rather than 32-bit build, or a Windows version used in some
26  // special context, such as ChromeFrame running in IE), then this may include
27  // some additional postfix to provide clarification not available in the UA
28  // string.
29  //
30  // An example of a browser version 4-tuple is "5.0.322.0".  Currently used
31  // postfixes are:
32  //
33  //   "-64": a 64-bit build
34  //   "-F": Chrome is running under control of ChromeFrame
35  //   "-devel": this is not an official build of Chrome
36  //
37  // A full version number string could look similar to:
38  // "5.0.322.0-F-devel".
39  //
40  // This value, when available, is more trustworthy than the UA string
41  // associated with the request; and including the postfix, may be more
42  // specific.
43  optional string app_version = 2;
44
45  // The brand code or distribution tag assigned to a partner, if available.
46  // Brand codes are only available on Windows.  Not every Windows install
47  // though will have a brand code.
48  optional string brand_code = 12;
49
50  // The possible channels for an installation, from least to most stable.
51  enum Channel {
52    CHANNEL_UNKNOWN = 0;  // Unknown channel -- perhaps an unofficial build?
53    CHANNEL_CANARY = 1;
54    CHANNEL_DEV = 2;
55    CHANNEL_BETA = 3;
56    CHANNEL_STABLE = 4;
57  }
58  optional Channel channel = 10;
59
60  // True if Chrome build is ASan-instrumented.
61  optional bool is_asan_build = 20 [default = false];
62
63  // The date the user enabled UMA, in seconds since the epoch.
64  // If the user has toggled the UMA enabled state multiple times, this will
65  // be the most recent date on which UMA was enabled.
66  // For privacy, this is rounded to the nearest hour.
67  optional int64 uma_enabled_date = 3;
68
69  // The time when the client was installed, in seconds since the epoch.
70  // For privacy, this is rounded to the nearest hour.
71  optional int64 install_date = 16;
72
73  // The user's selected application locale, i.e. the user interface language.
74  // The locale includes a language code and, possibly, also a country code,
75  // e.g. "en-US".
76  optional string application_locale = 4;
77
78  message BrilloDeviceData {
79    optional string build_target_id = 1;
80  }
81  optional BrilloDeviceData brillo = 21;
82
83  // Information on the user's operating system.
84  message OS {
85    // The user's operating system. This should be one of:
86    // - Android
87    // - Windows NT
88    // - Linux (includes ChromeOS)
89    // - iPhone OS
90    // - Mac OS X
91    optional string name = 1;
92
93    // The version of the OS.  The meaning of this field is OS-dependent.
94    optional string version = 2;
95
96    // The fingerprint of the build.  This field is used only on Android.
97    optional string fingerprint = 3;
98
99    // Whether the version of iOS appears to be "jailbroken". This field is
100    // used only on iOS. Chrome for iOS detects whether device contains a
101    // DynamicLibraries/ directory. It's a necessary but insufficient indicator
102    // of whether the operating system has been jailbroken.
103    optional bool is_jailbroken = 4;
104  }
105  optional OS os = 5;
106
107  // Next tag for Hardware: 18
108  // Information on the user's hardware.
109  message Hardware {
110    // The CPU architecture (x86, PowerPC, x86_64, ...)
111    optional string cpu_architecture = 1;
112
113    // The amount of RAM present on the system, in megabytes.
114    optional int64 system_ram_mb = 2;
115
116    // The base memory address that chrome.dll was loaded at.
117    // (Logged only on Windows.)
118    optional int64 dll_base = 3;
119
120    // The Chrome OS device hardware class ID is a unique string associated with
121    // each Chrome OS device product revision generally assigned at hardware
122    // qualification time.  The hardware class effectively identifies the
123    // configured system components such as CPU, WiFi adapter, etc.
124    //
125    // An example of such a hardware class is "IEC MARIO PONY 6101".  An
126    // internal database associates this hardware class with the qualified
127    // device specifications including OEM information, schematics, hardware
128    // qualification reports, test device tags, etc.
129    optional string hardware_class = 4;
130
131    // The number of physical screens.
132    optional int32 screen_count = 5;
133
134    // The screen dimensions of the primary screen, in pixels.
135    optional int32 primary_screen_width = 6;
136    optional int32 primary_screen_height = 7;
137
138    // The device scale factor of the primary screen.
139    optional float primary_screen_scale_factor = 12;
140
141    // Max DPI for any attached screen. (Windows only)
142    optional float max_dpi_x = 9;
143    optional float max_dpi_y = 10;
144
145    // Information on the CPU obtained by CPUID.
146    message CPU {
147      // A 12 character string naming the vendor, e.g. "GeniuneIntel".
148      optional string vendor_name = 1;
149
150      // The signature reported by CPUID (from EAX).
151      optional uint32 signature = 2;
152
153      // Number of logical processors/cores on the current machine.
154      optional uint32 num_cores = 3;
155    }
156    optional CPU cpu = 13;
157
158    // Information on the GPU
159    message Graphics {
160      // The GPU manufacturer's vendor id.
161      optional uint32 vendor_id = 1;
162
163      // The GPU manufacturer's device id for the chip set.
164      optional uint32 device_id = 2;
165
166      // The driver version on the GPU.
167      optional string driver_version = 3;
168
169      // The driver date on the GPU.
170      optional string driver_date = 4;
171
172      // The GL_VENDOR string. An example of a gl_vendor string is
173      // "Imagination Technologies". "" if we are not using OpenGL.
174      optional string gl_vendor = 6;
175
176      // The GL_RENDERER string. An example of a gl_renderer string is
177      // "PowerVR SGX 540". "" if we are not using OpenGL.
178      optional string gl_renderer = 7;
179    }
180    optional Graphics gpu = 8;
181
182    // Information about Bluetooth devices paired with the system.
183    message Bluetooth {
184      // Whether Bluetooth is present on this system.
185      optional bool is_present = 1;
186
187      // Whether Bluetooth is enabled on this system.
188      optional bool is_enabled = 2;
189
190      // Describes a paired device.
191      message PairedDevice {
192        // Assigned class of the device. This is a bitfield according to the
193        // Bluetooth specification available at the following URL:
194        // https://www.bluetooth.org/en-us/specification/assigned-numbers-overview/baseband
195        optional uint32 bluetooth_class = 1;
196
197        // Decoded device type.
198        enum Type {
199          DEVICE_UNKNOWN = 0;
200          DEVICE_COMPUTER = 1;
201          DEVICE_PHONE = 2;
202          DEVICE_MODEM = 3;
203          DEVICE_AUDIO = 4;
204          DEVICE_CAR_AUDIO = 5;
205          DEVICE_VIDEO = 6;
206          DEVICE_PERIPHERAL = 7;
207          DEVICE_JOYSTICK = 8;
208          DEVICE_GAMEPAD = 9;
209          DEVICE_KEYBOARD = 10;
210          DEVICE_MOUSE = 11;
211          DEVICE_TABLET = 12;
212          DEVICE_KEYBOARD_MOUSE_COMBO = 13;
213        }
214        optional Type type = 2;
215
216        // Vendor prefix of the Bluetooth address, these are OUI registered by
217        // the IEEE and are encoded with the first byte in bits 16-23, the
218        // second byte in bits 8-15 and the third byte in bits 0-7.
219        //
220        // ie. Google's OUI (00:1A:11) is encoded as 0x00001A11
221        optional uint32 vendor_prefix = 4;
222
223        // The Vendor ID of a device, returned in vendor_id below, can be
224        // either allocated by the Bluetooth SIG or USB IF, providing two
225        // completely overlapping namespaces for identifiers.
226        //
227        // This field should be read along with vendor_id to correctly
228        // identify the vendor. For example Google is identified by either
229        // vendor_id_source = VENDOR_ID_BLUETOOTH, vendor_id = 0x00E0 or
230        // vendor_id_source = VENDOR_ID_USB, vendor_id = 0x18D1.
231        //
232        // If the device does not support the Device ID specification the
233        // unknown value will be set.
234        enum VendorIDSource {
235          VENDOR_ID_UNKNOWN = 0;
236          VENDOR_ID_BLUETOOTH = 1;
237          VENDOR_ID_USB = 2;
238        }
239        optional VendorIDSource vendor_id_source = 8;
240
241        // Vendor ID of the device, where available.
242        optional uint32 vendor_id = 5;
243
244        // Product ID of the device, where available.
245        optional uint32 product_id = 6;
246
247        // Device ID of the device, generally the release or version number in
248        // BCD format, where available.
249        optional uint32 device_id = 7;
250      }
251      repeated PairedDevice paired_device = 3;
252    }
253    optional Bluetooth bluetooth = 11;
254
255    // Whether the internal display produces touch events. Omitted if unknown.
256    // Logged on ChromeOS only.
257    optional bool internal_display_supports_touch = 14;
258
259    // Vendor ids and product ids of external touchscreens.
260    message TouchScreen {
261      // Touch screen vendor id.
262      optional uint32 vendor_id = 1;
263      // Touch screen product id.
264      optional uint32 product_id = 2;
265    }
266    // Lists vendor and product ids of external touchscreens.
267    // Logged on ChromeOS only.
268    repeated TouchScreen external_touchscreen = 15;
269
270    // Drive messages are currently logged on Windows 7+, iOS, and Android.
271    message Drive {
272      // Whether this drive incurs a time penalty when randomly accessed. This
273      // should be true for spinning disks but false for SSDs or other
274      // flash-based drives.
275      optional bool has_seek_penalty = 1;
276    }
277    // The drive that the application executable was loaded from.
278    optional Drive app_drive = 16;
279    // The drive that the current user data directory was loaded from.
280    optional Drive user_data_drive = 17;
281  }
282  optional Hardware hardware = 6;
283
284  // Information about the network connection.
285  message Network {
286    // Set to true if connection_type changed during the lifetime of the log.
287    optional bool connection_type_is_ambiguous = 1;
288
289    // See net::NetworkChangeNotifier::ConnectionType.
290    enum ConnectionType {
291      CONNECTION_UNKNOWN = 0;
292      CONNECTION_ETHERNET = 1;
293      CONNECTION_WIFI = 2;
294      CONNECTION_2G = 3;
295      CONNECTION_3G = 4;
296      CONNECTION_4G = 5;
297      CONNECTION_BLUETOOTH = 6;
298    }
299    // The connection type according to NetworkChangeNotifier.
300    optional ConnectionType connection_type = 2;
301
302    // Set to true if wifi_phy_layer_protocol changed during the lifetime of the log.
303    optional bool wifi_phy_layer_protocol_is_ambiguous = 3;
304
305    // See net::WifiPHYLayerProtocol.
306    enum WifiPHYLayerProtocol {
307      WIFI_PHY_LAYER_PROTOCOL_NONE = 0;
308      WIFI_PHY_LAYER_PROTOCOL_ANCIENT = 1;
309      WIFI_PHY_LAYER_PROTOCOL_A = 2;
310      WIFI_PHY_LAYER_PROTOCOL_B = 3;
311      WIFI_PHY_LAYER_PROTOCOL_G = 4;
312      WIFI_PHY_LAYER_PROTOCOL_N = 5;
313      WIFI_PHY_LAYER_PROTOCOL_UNKNOWN = 6;
314    }
315    // The physical layer mode of the associated wifi access point, if any.
316    optional WifiPHYLayerProtocol wifi_phy_layer_protocol = 4;
317
318    // Describe wifi access point information.
319    message WifiAccessPoint {
320      // Vendor prefix of the access point's BSSID, these are OUIs
321      // (Organizationally Unique Identifiers) registered by
322      // the IEEE and are encoded with the first byte in bits 16-23, the
323      // second byte in bits 8-15 and the third byte in bits 0-7.
324      optional uint32 vendor_prefix = 1;
325
326      // Access point seurity mode definitions.
327      enum SecurityMode {
328        SECURITY_UNKNOWN = 0;
329        SECURITY_WPA = 1;
330        SECURITY_WEP = 2;
331        SECURITY_RSN = 3;
332        SECURITY_802_1X = 4;
333        SECURITY_PSK = 5;
334        SECURITY_NONE = 6;
335      }
336      // The security mode of the access point.
337      optional SecurityMode security_mode = 2;
338
339      // Vendor specific information.
340      message VendorInformation {
341        // The model number, for example "0".
342        optional string model_number = 1;
343
344        // The model name (sometimes the same as the model_number),
345        // for example "WZR-HP-AG300H".
346        optional string model_name = 2;
347
348        // The device name (sometimes the same as the model_number),
349        // for example "Dummynet"
350        optional string device_name = 3;
351
352        // The list of vendor-specific OUIs (Organziationally Unqiue
353        // Identifiers). These are provided by the vendor through WPS
354        // (Wireless Provisioning Service) information elements, which
355        // identifies the content of the element.
356        repeated uint32 element_identifier = 4;
357      }
358      // The wireless access point vendor information.
359      optional VendorInformation vendor_info = 3;
360    }
361    // Information of the wireless AP that device is connected to.
362    optional WifiAccessPoint access_point_info = 5;
363  }
364  optional Network network = 13;
365
366  // Information on the Google Update install that is managing this client.
367  message GoogleUpdate {
368    // Whether the Google Update install is system-level or user-level.
369    optional bool is_system_install = 1;
370
371    // The date at which Google Update last started performing an automatic
372    // update check, in seconds since the Unix epoch.
373    optional int64 last_automatic_start_timestamp = 2;
374
375    // The date at which Google Update last successfully sent an update check
376    // and recieved an intact response from the server, in seconds since the
377    // Unix epoch. (The updates don't need to be successfully installed.)
378    optional int64 last_update_check_timestamp = 3;
379
380    // Describes a product being managed by Google Update. (This can also
381    // describe Google Update itself.)
382    message ProductInfo {
383      // The current version of the product that is installed.
384      optional string version = 1;
385
386      // The date at which Google Update successfully updated this product,
387      // stored in seconds since the Unix epoch.  This is updated when an update
388      // is successfully applied, or if the server reports that no update
389      // is available.
390      optional int64 last_update_success_timestamp = 2;
391
392      // The result reported by the product updater on its last run.
393      enum InstallResult {
394        INSTALL_RESULT_SUCCESS = 0;
395        INSTALL_RESULT_FAILED_CUSTOM_ERROR = 1;
396        INSTALL_RESULT_FAILED_MSI_ERROR = 2;
397        INSTALL_RESULT_FAILED_SYSTEM_ERROR = 3;
398        INSTALL_RESULT_EXIT_CODE = 4;
399      }
400      optional InstallResult last_result = 3;
401
402      // The error code reported by the product updater on its last run.  This
403      // will typically be a error code specific to the product installer.
404      optional int32 last_error = 4;
405
406      // The extra error code reported by the product updater on its last run.
407      // This will typically be a Win32 error code.
408      optional int32 last_extra_error = 5;
409    }
410    optional ProductInfo google_update_status = 4;
411    optional ProductInfo client_status = 5;
412  }
413  optional GoogleUpdate google_update = 11;
414
415  // Information on all installed plugins.
416  message Plugin {
417    // The plugin's self-reported name and filename (without path).
418    optional string name = 1;
419    optional string filename = 2;
420
421    // The plugin's version.
422    optional string version = 3;
423
424    // True if the plugin is disabled.
425    // If a client has multiple local Chrome user accounts, this is logged based
426    // on the first user account launched during the current session.
427    optional bool is_disabled = 4;
428
429    // True if the plugin is PPAPI.
430    optional bool is_pepper = 5;
431  }
432  repeated Plugin plugin = 7;
433
434  // Figures that can be used to generate application stability metrics.
435  // All values are counts of events since the last time that these
436  // values were reported.
437  // Next tag: 24
438  message Stability {
439    // Total amount of time that the program was running, in seconds,
440    // since the last time a log was recorded, as measured using a client-side
441    // clock implemented via TimeTicks, which guarantees that it is monotonic
442    // and does not jump if the user changes his/her clock.  The TimeTicks
443    // implementation also makes the clock not count time the computer is
444    // suspended.
445    optional int64 incremental_uptime_sec = 1;
446
447    // Total amount of time that the program was running, in seconds,
448    // since startup, as measured using a client-side clock implemented
449    // via TimeTicks, which guarantees that it is monotonic and does not
450    // jump if the user changes his/her clock.  The TimeTicks implementation
451    // also makes the clock not count time the computer is suspended.
452    // This field was added for M-35.
453    optional int64 uptime_sec = 23;
454
455    // Page loads along with renderer crashes and hangs, since page load count
456    // roughly corresponds to usage.
457    optional int32 page_load_count = 2;
458    optional int32 renderer_crash_count = 3;
459    optional int32 renderer_hang_count = 4;
460
461    // Number of renderer crashes that were for extensions. These crashes are
462    // not counted in renderer_crash_count.
463    optional int32 extension_renderer_crash_count = 5;
464
465    // Number of non-renderer child process crashes.
466    optional int32 child_process_crash_count = 6;
467
468    // Number of times the browser has crashed while logged in as the "other
469    // user" (guest) account.
470    // Logged on ChromeOS only.
471    optional int32 other_user_crash_count = 7;
472
473    // Number of times the kernel has crashed.
474    // Logged on ChromeOS only.
475    optional int32 kernel_crash_count = 8;
476
477    // Number of times the system has shut down uncleanly.
478    // Logged on ChromeOS only.
479    optional int32 unclean_system_shutdown_count = 9;
480
481    //
482    // All the remaining fields in the Stability are recorded at most once per
483    // client session.
484    //
485
486    // The number of times the program was launched.
487    // This will typically be equal to 1.  However, it is possible that Chrome
488    // was unable to upload stability metrics for previous launches (e.g. due to
489    // crashing early during startup), and hence this value might be greater
490    // than 1.
491    optional int32 launch_count = 15;
492    // The number of times that it didn't exit cleanly (which we assume to be
493    // mostly crashes).
494    optional int32 crash_count = 16;
495
496    // The number of times the program began, but did not complete, the shutdown
497    // process.  (For example, this may occur when Windows is shutting down, and
498    // it only gives the process a few seconds to clean up.)
499    optional int32 incomplete_shutdown_count = 17;
500
501    // The number of times the program was able register with breakpad crash
502    // services.
503    optional int32 breakpad_registration_success_count = 18;
504
505    // The number of times the program failed to register with breakpad crash
506    // services.  If crash registration fails then when the program crashes no
507    // crash report will be generated.
508    optional int32 breakpad_registration_failure_count = 19;
509
510    // The number of times the program has run under a debugger.  This should
511    // be an exceptional condition.  Running under a debugger prevents crash
512    // dumps from being generated.
513    optional int32 debugger_present_count = 20;
514
515    // The number of times the program has run without a debugger attached.
516    // This should be most common scenario and should be very close to
517    // |launch_count|.
518    optional int32 debugger_not_present_count = 21;
519
520    // Stability information for all installed plugins.
521    message PluginStability {
522      // The relevant plugin's information (name, etc.)
523      optional Plugin plugin = 1;
524
525      // The number of times this plugin's process was launched.
526      optional int32 launch_count = 2;
527
528      // The number of times this plugin was instantiated on a web page.
529      // This will be >= |launch_count|.
530      // (A page load with multiple sections drawn by this plugin will
531      // increase this count multiple times.)
532      optional int32 instance_count = 3;
533
534      // The number of times this plugin process crashed.
535      // This value will be <= |launch_count|.
536      optional int32 crash_count = 4;
537
538      // The number of times this plugin could not be loaded.
539      optional int32 loading_error_count = 5;
540    }
541    repeated PluginStability plugin_stability = 22;
542  }
543  optional Stability stability = 8;
544
545  // Description of a field trial or experiment that the user is currently
546  // enrolled in.
547  // All metrics reported in this upload can potentially be influenced by the
548  // field trial.
549  message FieldTrial {
550    // The name of the field trial, as a 32-bit identifier.
551    // Currently, the identifier is a hash of the field trial's name.
552    optional fixed32 name_id = 1;
553
554    // The user's group within the field trial, as a 32-bit identifier.
555    // Currently, the identifier is a hash of the group's name.
556    optional fixed32 group_id = 2;
557  }
558  repeated FieldTrial field_trial = 9;
559
560  // Information about the A/V output device(s) (typically just a TV).
561  // However, a configuration may have one or more intermediate A/V devices
562  // between the source device and the TV (e.g. an A/V receiver, video
563  // processor, etc.).
564  message ExternalAudioVideoDevice {
565    // The manufacturer name (possibly encoded as a 3-letter code, e.g. "YMH"
566    // for Yamaha).
567    optional string manufacturer_name = 1;
568
569    // The model name (e.g. "RX-V1900"). Some devices may report generic names
570    // like "receiver" or use the full manufacturer name (e.g "PHILIPS").
571    optional string model_name = 2;
572
573    // The product code (e.g. "0218").
574    optional string product_code = 3;
575
576    // The device types. A single device can have multiple types (e.g. a set-top
577    // box could be both a tuner and a player).  The same type may even be
578    // repeated (e.g a device that reports two tuners).
579    enum AVDeviceType {
580      AV_DEVICE_TYPE_UNKNOWN = 0;
581      AV_DEVICE_TYPE_TV = 1;
582      AV_DEVICE_TYPE_RECORDER = 2;
583      AV_DEVICE_TYPE_TUNER = 3;
584      AV_DEVICE_TYPE_PLAYER = 4;
585      AV_DEVICE_TYPE_AUDIO_SYSTEM = 5;
586    }
587    repeated AVDeviceType av_device_type = 4;
588
589    // The year of manufacture.
590    optional int32 manufacture_year = 5;
591
592    // The week of manufacture.
593    // Note: per the Wikipedia EDID article, numbering for this field may not
594    // be consistent between manufacturers.
595    optional int32 manufacture_week = 6;
596
597    // Max horizontal resolution in pixels.
598    optional int32 horizontal_resolution = 7;
599
600    // Max vertical resolution in pixels.
601    optional int32 vertical_resolution = 8;
602
603    // Audio capabilities of the device.
604    // Ref: http://en.wikipedia.org/wiki/Extended_display_identification_data
605    message AudioDescription {
606      // Audio format
607      enum AudioFormat {
608        AUDIO_FORMAT_UNKNOWN = 0;
609        AUDIO_FORMAT_LPCM = 1;
610        AUDIO_FORMAT_AC_3 = 2;
611        AUDIO_FORMAT_MPEG1 = 3;
612        AUDIO_FORMAT_MP3 = 4;
613        AUDIO_FORMAT_MPEG2 = 5;
614        AUDIO_FORMAT_AAC = 6;
615        AUDIO_FORMAT_DTS = 7;
616        AUDIO_FORMAT_ATRAC = 8;
617        AUDIO_FORMAT_ONE_BIT = 9;
618        AUDIO_FORMAT_DD_PLUS = 10;
619        AUDIO_FORMAT_DTS_HD = 11;
620        AUDIO_FORMAT_MLP_DOLBY_TRUEHD = 12;
621        AUDIO_FORMAT_DST_AUDIO = 13;
622        AUDIO_FORMAT_MICROSOFT_WMA_PRO = 14;
623      }
624      optional AudioFormat audio_format = 1;
625
626      // Number of channels (e.g. 1, 2, 8, etc.).
627      optional int32 num_channels = 2;
628
629      // Supported sample frequencies in Hz (e.g. 32000, 44100, etc.).
630      // Multiple frequencies may be specified.
631      repeated int32 sample_frequency_hz = 3;
632
633      // Maximum bit rate in bits/s.
634      optional int32 max_bit_rate_per_second = 4;
635
636      // Bit depth (e.g. 16, 20, 24, etc.).
637      optional int32 bit_depth = 5;
638    }
639    repeated AudioDescription audio_description = 9;
640
641    // The position in AV setup.
642    // A value of 0 means this device is the TV.
643    // A value of 1 means this device is directly connected to one of
644    // the TV's inputs.
645    // Values > 1 indicate there are 1 or more devices between this device
646    // and the TV.
647    optional int32 position_in_setup = 10;
648
649    // Whether this device is in the path to the TV.
650    optional bool is_in_path_to_tv = 11;
651
652    // The CEC version the device supports.
653    // CEC stands for Consumer Electronics Control, a part of the HDMI
654    // specification.  Not all HDMI devices support CEC.
655    // Only devices that support CEC will report a value here.
656    optional int32 cec_version = 12;
657
658    // This message reports CEC commands seen by a device.
659    // After each log is sent, this information is cleared and gathered again.
660    // By collecting CEC status information by opcode we can determine
661    // which CEC features can be supported.
662    message CECCommand {
663      // The CEC command opcode.  CEC supports up to 256 opcodes.
664      // We add only one CECCommand message per unique opcode.  Only opcodes
665      // seen by the device will be reported. The remainder of the message
666      // accumulates status for this opcode (and device).
667      optional int32 opcode = 1;
668
669      // The total number of commands received from the external device.
670      optional int32 num_received_direct = 2;
671
672      // The number of commands received from the external device as part of a
673      // broadcast message.
674      optional int32 num_received_broadcast = 3;
675
676      // The total number of commands sent to the external device.
677      optional int32 num_sent_direct = 4;
678
679      // The number of commands sent to the external device as part of a
680      // broadcast message.
681      optional int32 num_sent_broadcast = 5;
682
683      // The number of aborted commands for unknown reasons.
684      optional int32 num_aborted_unknown_reason = 6;
685
686      // The number of aborted commands because of an unrecognized opcode.
687      optional int32 num_aborted_unrecognized = 7;
688    }
689    repeated CECCommand cec_command = 13;
690  }
691  repeated ExternalAudioVideoDevice external_audio_video_device = 14;
692
693  // Information about the current wireless access point. Collected directly
694  // from the wireless access point via standard apis if the device is
695  // connected to the Internet wirelessly. Introduced for Chrome on TV devices
696  // but also can be collected by ChromeOS, Android or other clients.
697  message ExternalAccessPoint {
698    // The manufacturer name, for example "ASUSTeK Computer Inc.".
699    optional string manufacturer = 1;
700
701    // The model name, for example "Wi-Fi Protected Setup Router".
702    optional string model_name = 2;
703
704    // The model number, for example "RT-N16".
705    optional string model_number = 3;
706
707    // The device name (sometime same as model_number), for example "RT-N16".
708    optional string device_name = 4;
709  }
710  optional ExternalAccessPoint external_access_point = 15;
711
712  // Number of users currently signed into a multiprofile session.
713  // A zero value indicates that the user count changed while the log is open.
714  // Logged only on ChromeOS.
715  optional uint32 multi_profile_user_count = 17;
716
717  // Information about extensions that are installed, masked to provide better
718  // privacy.  Only extensions from a single profile are reported; this will
719  // generally be the profile used when the browser is started.  The profile
720  // reported on will remain consistent at least until the browser is
721  // relaunched (or the profile is deleted by the user).
722  //
723  // Each client first picks a value for client_key derived from its UMA
724  // client_id:
725  //   client_key = client_id % 4096
726  // Then, each installed extension is mapped into a hash bucket according to
727  //   bucket = CityHash64(StringPrintf("%d:%s",
728  //                                    client_key, extension_id)) % 1024
729  // The client reports the set of hash buckets occupied by all installed
730  // extensions.  If multiple extensions map to the same bucket, that bucket is
731  // still only reported once.
732  repeated int32 occupied_extension_bucket = 18;
733
734  // The state of loaded extensions for this system. The system can have either
735  // no applicable extensions, extensions only from the webstore and verified by
736  // the webstore, extensions only from the webstore but not verified, or
737  // extensions not from the store. If there is a single off-store extension,
738  // then HAS_OFFSTORE is reported. This should be kept in sync with the
739  // corresponding enum in chrome/browser/metrics/extensions_metrics_provider.cc
740  enum ExtensionsState {
741    NO_EXTENSIONS = 0;
742    NO_OFFSTORE_VERIFIED = 1;
743    NO_OFFSTORE_UNVERIFIED = 2;
744    HAS_OFFSTORE = 3;
745  }
746  optional ExtensionsState offstore_extensions_state = 19;
747}
748