Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Side by Side Diff: chrome/browser/autofill/risk/proto/machine_fingerprint.proto

Issue 11612017: [Autofill] Add protobuf for Google Wallet risk parameters and a utility function for filling it out. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean it up! Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 {
Evan Stade 2012/12/19 03:13:27 maybe this should be called something more specifi
Ilya Sherman 2012/12/20 04:06:49 Done.
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 // Infomation on the CPU
58 message Cpu {
59 // e.g. "GenuineIntel"
60 optional string vendor_name = 1;
61 // e.g. "Intel(R) Xeon(R) CPU X5650 @ 2.67GHz\000"
62 optional string brand = 2;
63 }
64
65 // Username currently logged into computer / device.
66 // TODO(isherman): This seems like TMI. Include pamartin@ in privacy
67 // discussions.
68 optional string user_name = 1;
69
70 // Build version string for the current operating system.
71 optional string operating_system_build = 2;
72
73 // e.g. User-assigned computer name.
74 // TODO(isherman): This seems like TMI.
75 optional string device_name = 3;
76
77 // Browser install time (ms since epoch).
78 // TODO(isherman): This might be TMI.
79 optional int64 browser_install_time_ms = 4;
80
81 // Fonts installed on the machine.
82 repeated string font = 5;
83
84 // Plug-ins installed on the machine.
85 repeated Plugin plugin = 6;
86
87 // Delta in ms of the device's time zone from utc.
88 optional int64 utc_offset_ms = 7;
89
90 // IETF-formatted language tag. e.g. "en", "en-US", "es-419", etc.
91 // http://en.wikipedia.org/wiki/IETF_language_tag
92 optional string browser_language = 8;
93
94 // User-requested language code of viewed sites. Languages in
95 // accept-languages.
96 repeated string requested_language = 9;
97
98 // Default charset of the browser. (e.g. ISO-8859-1, obtained from
99 // document.defaultCharset)
100 optional string charset = 10;
101
102 // The number of physical screens.
103 optional int32 screen_count = 11;
104
105 // Information about the user's monitor's physical screen size.
106 // (e.g. 1024 x 768)
107 optional Dimension screen_size = 12;
108
109 // The color depth of the user's screen (obtained from screen.colorDepth
110 // or screen.pixelDepth)
111 optional int32 screen_color_depth = 13;
112
113 // Information about the size of the portion of the screen that is unusable
114 // to a program (i.e. on Windows, the portion of the screen that is taken
115 // up by the taskbar)
116 optional Dimension unavailable_screen_size = 14;
117
118 optional string user_agent = 15;
119
120 // Total size of each hard drive partition.
121 repeated int32 partition_size = 16;
122
123 optional Cpu cpu = 17;
124
125 // Total RAM in bytes.
126 optional int64 ram = 18;
127
128 // Graphics card being used.
129 optional Graphics graphics_card = 19;
130
131 // Build version string for browser.
132 optional string browser_build = 20;
133
134 }
135
136 // Contains properties relating to more transient computer / browser state.
137 message State {
138 // Corresponds to window.innerWidth / innertHeight
139 optional Dimension inner_window_size = 1;
140
141 // Corresponds to window.outerWidth / outerHeight
142 optional Dimension outer_window_size = 2;
143 }
144
145 // Measures computer / network performance.
146 message Performance {
147 // Bandwidth in MB/s. network.connection.bandwidth
148 optional float bandwidth = 1;
149 // Whether bandwidth cost is metered. network.connection.metered
150 optional bool metered = 2;
151 // Whether it's wifi, 3g, 2g, etc. network.connection.type
152 optional string network_type = 3;
153 }
154
155 message UserBehavior {
Evan Stade 2012/12/19 03:13:27 docs call it UserCharacteristics?
Ilya Sherman 2012/12/20 04:06:49 Done.
156 message Vector {
157 optional int32 x = 1;
158 optional int32 y = 2;
159 optional int32 z = 3;
160 }
161
162 message Location {
163 // Meters above sea level.
164 optional double altitude = 1;
165 // Latitude in degrees.
166 optional double latitude = 2;
167 // Longitude in degrees.
168 optional double longitude = 3;
169 // Accuracy in meters. 95% probability of being in this radius of
170 // lat / long.
171 optional float accuracy = 4;
172 // Milliseconds since epoch since measurement.
173 optional double time_in_ms = 5;
174 }
175
176 // Average force by finger presses. TouchEvent.force
177 optional float force = 1;
178 // Average finger width. TouchEvent.radiusX
179 optional float touch_width = 2;
180 // Average finger height. TouchEvent.radiusY
181 optional float touch_height = 3;
182 // TouchEvent.rotationAngle
183 optional int32 touch_rotation = 4;
184 // Orientation while user is navigating flow and the device is roughly
185 // stable. x for alpha, y for beta, z for gamma
186 // TODO(isherman): Orientation data is only available asynchronously in
187 // Chrome.
188 optional Vector device_orientation = 5;
189 // Acceleration while measuring orientation.
190 // TODO(isherman): Acceleration data is not available in Chrome.
191 optional Vector device_acceleration = 6;
192 optional Location location = 7;
193 }
194
195 // Metadata associated with data collection or the user
196 // and doesn't actually fingerprint the device.
197 message Metadata {
198 // When this data was collected / received, in milliseconds since the epoch.
199 optional int64 timestamp_ms = 1;
200 // Gaia id associated with transaction.
201 optional int64 gaia_id = 2;
202 // Version of the native library generating this proto.
203 // This may be manually bumped when the code populating the proto has
204 // significantly changed.
205 optional int32 fingerprinter_version = 3;
206 }
207
208 // Computer / browser fingerprint.
209 optional Fingerprint fingerprint = 1;
210
211 optional Performance performance = 2;
212
213 optional UserBehavior user_behavior = 3;
214
215 optional State state = 4;
216
217 // Metadata associated with data collection.
218 optional Metadata metadata = 5;
219 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698