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