Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 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 // This file contains the definition of protocol buffers for native browser | |
| 6 // fingerprinting. | |
| 7 | |
| 8 // TODO(isherman): Upstream diffs in this file. | |
| 9 | |
| 10 syntax = "proto2"; | |
| 11 | |
| 12 // option optimize_for = LITE_RUNTIME; | |
| 13 | |
| 14 package autofill.risk; | |
| 15 | |
| 16 message BrowserNativeFingerprinting { | |
| 17 // A simple protocol message to represent objects with width and height. | |
| 18 message Dimension { | |
| 19 required int32 width = 1; | |
| 20 required int32 height = 2; | |
| 21 } | |
| 22 | |
| 23 message Fingerprint { | |
| 24 | |
| 25 // A simple protocol message that represents a plugin. | |
| 26 // e.g. flash, shockwave, acrobat reader, gears, picasa | |
| 27 message Plugin { | |
| 28 required string name = 1; | |
| 29 optional string description = 2; | |
| 30 repeated string mime_type = 3; | |
| 31 optional string version = 4; | |
| 32 } | |
| 33 | |
| 34 // Information on the GPU | |
| 35 message Graphics { | |
| 36 // The GPU manufacturer's vendor id. | |
| 37 optional uint32 vendor_id = 1; | |
| 38 | |
| 39 // The GPU manufacturer's device id for the chip set. | |
| 40 optional uint32 device_id = 2; | |
| 41 | |
| 42 // The driver version on the GPU. | |
| 43 optional string driver_version = 3; | |
| 44 | |
| 45 // The driver date on the GPU. | |
| 46 optional string driver_date = 4; | |
| 47 | |
| 48 // The GPU performance statistics. | |
| 49 message PerformanceStatistics { | |
| 50 optional float graphics_score = 1; | |
| 51 optional float gaming_score = 2; | |
| 52 optional float overall_score = 3; | |
| 53 } | |
| 54 optional PerformanceStatistics performance_statistics = 5; | |
| 55 } | |
| 56 | |
| 57 // Username currently logged into computer / device. | |
| 58 // TODO(isherman): This seems like TMI. Include pamartin@ in privacy | |
|
Albert Bodenhamer
2012/12/18 17:42:22
Yeah, that wasn't included in the list of things w
Ilya Sherman
2012/12/19 01:50:08
Sent an email to the privacy team; let's see what
| |
| 59 // discussions. | |
| 60 optional string user_name = 1; | |
| 61 | |
| 62 // Build version string for the current operating system. | |
| 63 optional string operating_system_build = 2; | |
| 64 | |
| 65 // e.g. User-assigned computer name. | |
| 66 // TODO(isherman): This seems like TMI. | |
| 67 optional string device_name = 3; | |
| 68 | |
| 69 // Browser install time (ms since epoch). | |
| 70 // TODO(isherman): This might be TMI. | |
| 71 optional int64 browser_install_time_ms = 4; | |
| 72 | |
| 73 // Fonts installed on the machine. | |
| 74 repeated string font = 5; | |
| 75 | |
| 76 // Plug-ins installed on the machine. | |
| 77 repeated Plugin plugin = 6; | |
| 78 | |
| 79 // Delta in ms of the device's time zone from utc. | |
| 80 optional int64 utc_offset_ms = 7; | |
| 81 | |
| 82 // Browser ISO3 language. | |
| 83 // TODO(isherman): What is "ISO3"? | |
| 84 optional string browser_language = 8; | |
| 85 | |
| 86 // User-requested ISO3 language of viewed sites. Languages in | |
| 87 // accept-languages. | |
| 88 repeated string requested_language = 9; | |
| 89 | |
| 90 // Default charset of the browser. (e.g. ISO-8859-1, obtained from | |
| 91 // document.defaultCharset) | |
| 92 optional string charset = 10; | |
| 93 | |
| 94 // The number of physical screens. | |
| 95 optional int32 screen_count = 11; | |
| 96 | |
| 97 // Information about the user's monitor's physical screen size. | |
| 98 // (e.g. 1024 x 768) | |
| 99 optional Dimension screen_size = 12; | |
| 100 | |
| 101 // The color depth of the user's screen (obtained from screen.colorDepth | |
| 102 // or screen.pixelDepth) | |
| 103 optional int32 screen_color_depth = 13; | |
| 104 | |
| 105 // Information about the size of the portion of the screen that is unusable | |
| 106 // to a program (i.e. on Windows, the portion of the screen that is taken | |
| 107 // up by the taskbar) | |
| 108 optional Dimension unavailable_screen_size = 14; | |
| 109 | |
| 110 optional string user_agent = 15; | |
| 111 | |
| 112 // Total size of each hard drive partition. | |
| 113 repeated int32 partition_size = 16; | |
| 114 | |
| 115 // TODO(isherman): What format of data does this expect? | |
| 116 optional string cpu = 17; | |
| 117 | |
| 118 // Total RAM in bytes. | |
| 119 optional int64 ram = 18; | |
| 120 | |
| 121 // Graphics card being used. | |
| 122 optional Graphics graphics_card = 19; | |
| 123 | |
| 124 // Build version string for browser. | |
| 125 optional string browser_build = 20; | |
| 126 | |
| 127 } | |
| 128 | |
| 129 // Contains properties relating to more transient computer / browser state. | |
| 130 message State { | |
| 131 // Corresponds to window.innerWidth / innertHeight | |
| 132 optional Dimension inner_window_size = 1; | |
| 133 | |
| 134 // Corresponds to window.outerWidth / outerHeight | |
| 135 optional Dimension outer_window_size = 2; | |
| 136 } | |
| 137 | |
| 138 // Measures computer / network performance. | |
| 139 message Performance { | |
| 140 // Bandwidth in MB/s. network.connection.bandwidth | |
| 141 optional float bandwidth = 1; | |
| 142 // Whether bandwidth cost is metered. network.connection.metered | |
| 143 optional bool metered = 2; | |
| 144 // Whether it's wifi, 3g, 2g, etc. network.connection.type | |
| 145 optional string network_type = 3; | |
| 146 } | |
| 147 | |
| 148 message UserBehavior { | |
| 149 message Vector { | |
| 150 optional int32 x = 1; | |
| 151 optional int32 y = 2; | |
| 152 optional int32 z = 3; | |
| 153 } | |
| 154 | |
| 155 message Location { | |
| 156 // Meters above sea level. | |
| 157 optional double altitude = 1; | |
| 158 // Latitude in degrees. | |
| 159 optional double latitude = 2; | |
| 160 // Longitude in degrees. | |
| 161 optional double longitude = 3; | |
| 162 // Accuracy in meters. 95% probability of being in this radius of | |
| 163 // lat / long. | |
| 164 optional float accuracy = 4; | |
| 165 // Milliseconds since epoch since measurement. | |
| 166 optional double time_in_ms = 5; | |
| 167 } | |
| 168 | |
| 169 // Average force by finger presses. TouchEvent.force | |
| 170 optional float force = 1; | |
| 171 // Average finger width. TouchEvent.radiusX | |
| 172 optional float touch_width = 2; | |
| 173 // Average finger height. TouchEvent.radiusY | |
| 174 optional float touch_height = 3; | |
| 175 // TouchEvent.rotationAngle | |
| 176 optional int32 touch_rotation = 4; | |
| 177 // Orientation while user is navigating flow and the device is roughly | |
| 178 // stable. x for alpha, y for beta, z for gamma | |
| 179 // TODO(isherman): Orientation data is only available asynchronously in | |
| 180 // Chrome. | |
| 181 optional Vector device_orientation = 5; | |
| 182 // Acceleration while measuring orientation. | |
| 183 // TODO(isherman): Acceleration data is not available in Chrome. | |
| 184 optional Vector device_acceleration = 6; | |
| 185 optional Location location = 7; | |
| 186 } | |
| 187 | |
| 188 // Metadata associated with data collection or the user | |
| 189 // and doesn't actually fingerprint the device. | |
| 190 message Metadata { | |
| 191 // When this data was collected / received, in milliseconds since the epoch. | |
| 192 optional int64 timestamp_ms = 1; | |
| 193 // Gaia id associated with transaction. | |
| 194 optional int64 gaia_id = 2; | |
| 195 // Version of the native library generating this proto. | |
| 196 // This may be manually bumped when the code populating the proto has | |
| 197 // significantly changed. | |
| 198 optional int32 fingerprinter_version = 3; | |
| 199 } | |
| 200 | |
| 201 // Computer / browser fingerprint. | |
| 202 optional Fingerprint fingerprint = 1; | |
| 203 | |
| 204 optional Performance performance = 2; | |
| 205 | |
| 206 optional UserBehavior user_behavior = 3; | |
| 207 | |
| 208 optional State state = 4; | |
| 209 | |
| 210 // Metadata associated with data collection. | |
| 211 optional Metadata metadata = 5; | |
| 212 } | |
| OLD | NEW |