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