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

Side by Side Diff: chrome/browser/autofill/risk/proto/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 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 Fingerprint {
17 // A simple protocol message to represent objects with width and height.
18 message Dimension {
19 required int32 width = 1;
ahutter 2012/12/20 18:35:12 Is this proto going to also live in google3? If so
Ilya Sherman 2012/12/21 04:51:23 Done.
20 required int32 height = 2;
21 }
22
23 // Characteristics of the user's machine that are relatively durable,
24 // i.e. that are expected to change relatively infrequently.
25 message MachineCharacteristics {
26 // A simple protocol message that represents a plugin.
27 // e.g. flash, shockwave, acrobat reader, gears, picasa
28 message Plugin {
29 required string name = 1;
30 optional string description = 2;
31 repeated string mime_type = 3;
32 optional string version = 4;
33 }
34
35 // Infomation on the CPU.
36 message Cpu {
37 // e.g. "GenuineIntel"
38 optional string vendor_name = 1;
39 // e.g. "Intel(R) Xeon(R) CPU X5650 @ 2.67GHz\000"
40 optional string brand = 2;
41 }
42
43 // Information on the GPU.
44 message Graphics {
45 // The GPU manufacturer's vendor id.
46 optional uint32 vendor_id = 1;
47
48 // The GPU manufacturer's device id for the chip set.
49 optional uint32 device_id = 2;
50
51 // The driver version on the GPU.
52 optional string driver_version = 3;
53
54 // The driver date on the GPU.
55 optional string driver_date = 4;
56
57 // The GPU performance statistics.
58 message PerformanceStatistics {
59 optional float graphics_score = 1;
60 optional float gaming_score = 2;
61 optional float overall_score = 3;
62 }
63 optional PerformanceStatistics performance_statistics = 5;
64 }
65
66 // Username currently logged into computer / device.
67 // TODO(isherman): This seems like TMI.
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 TransientState {
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 // Properties describing the user -- especially the user's state in the
156 // physical world.
157 message UserCharacteristics {
158 message Vector {
159 optional int32 x = 1;
160 optional int32 y = 2;
161 optional int32 z = 3;
162 }
163
164 message Location {
165 // Meters above sea level.
166 optional double altitude = 1;
167 // Latitude in degrees.
168 optional double latitude = 2;
169 // Longitude in degrees.
170 optional double longitude = 3;
171 // Accuracy in meters. 95% probability of being in this radius of
172 // lat / long.
173 optional float accuracy = 4;
174 // Milliseconds since epoch since measurement.
175 optional double time_in_ms = 5;
176 }
177
178 // Average force by finger presses. TouchEvent.force
179 optional float force = 1;
180 // Average finger width. TouchEvent.radiusX
181 optional float touch_width = 2;
182 // Average finger height. TouchEvent.radiusY
183 optional float touch_height = 3;
184 // TouchEvent.rotationAngle
185 optional int32 touch_rotation = 4;
186 // Orientation while user is navigating flow and the device is roughly
187 // stable. x for alpha, y for beta, z for gamma
188 // TODO(isherman): Orientation data is only available asynchronously in
189 // Chrome.
190 optional Vector device_orientation = 5;
191 // Acceleration while measuring orientation.
192 // TODO(isherman): Acceleration data is not available in Chrome.
193 optional Vector device_acceleration = 6;
194 optional Location location = 7;
195 }
196
197 // Metadata associated with data collection or the user that doesn't actually
198 // fingerprint the device.
199 message Metadata {
200 // When this data was collected / received, in milliseconds since the epoch.
201 optional int64 timestamp_ms = 1;
202 // Gaia id associated with transaction.
203 optional int64 gaia_id = 2;
204 // Version of the native library generating this proto.
205 // This may be manually bumped when the code populating the proto has
206 // significantly changed.
207 optional int32 fingerprinter_version = 3;
208 }
209
210 // Computer / browser fingerprint.
211 optional MachineCharacteristics machine_characteristics = 1;
212
213 optional Performance performance = 2;
214
215 optional UserCharacteristics user_characteristics = 3;
216
217 optional TransientState transient_state = 4;
218
219 // Metadata associated with data collection.
220 optional Metadata metadata = 5;
221 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698