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

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

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 years, 9 months 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 syntax = "proto2";
9
10 option optimize_for = LITE_RUNTIME;
11
12 package autofill.risk;
13
14 message Fingerprint {
15 // A simple protocol message to represent objects with width and height.
16 message Dimension {
17 optional int32 width = 1;
18 optional int32 height = 2;
19 }
20
21 // Characteristics of the user's machine that are relatively durable,
22 // i.e. that are expected to change relatively infrequently.
23 message MachineCharacteristics {
24 // A simple protocol message that represents a plugin.
25 // e.g. flash, shockwave, acrobat reader, gears, picasa
26 message Plugin {
27 optional string name = 1;
28 optional string description = 2;
29 repeated string mime_type = 3;
30 optional string version = 4;
31 }
32
33 // Information on the CPU.
34 message Cpu {
35 // e.g. "GenuineIntel"
36 optional string vendor_name = 1;
37 // e.g. "Intel(R) Xeon(R) CPU X5650 @ 2.67GHz\000"
38 optional string brand = 2;
39 }
40
41 // Information on the GPU.
42 message Graphics {
43 // The GPU manufacturer's vendor id.
44 optional uint32 vendor_id = 1;
45
46 // The GPU manufacturer's device id for the chip set.
47 optional uint32 device_id = 2;
48
49 // The driver version on the GPU.
50 optional string driver_version = 3;
51
52 // The driver date on the GPU.
53 optional string driver_date = 4;
54
55 // The GPU performance statistics.
56 message PerformanceStatistics {
57 optional float graphics_score = 1;
58 optional float gaming_score = 2;
59 optional float overall_score = 3;
60 }
61 optional PerformanceStatistics performance_statistics = 5;
62 }
63
64 // Username currently logged into computer / device.
65 // TODO(isherman): This seems like TMI.
66 optional string user_name = 1;
67
68 // Build version string for the current operating system.
69 optional string operating_system_build = 2;
70
71 // e.g. User-assigned computer name.
72 // TODO(isherman): This seems like TMI.
73 optional string device_name = 3;
74
75 // Browser install time (hours since epoch).
76 optional int64 browser_install_time_hours = 4;
77
78 // Fonts installed on the machine.
79 repeated string font = 5;
80
81 // Plug-ins installed on the machine.
82 repeated Plugin plugin = 6;
83
84 // Delta in ms of the device's time zone from UTC.
85 optional int64 utc_offset_ms = 7;
86
87 // IETF-formatted language tag. e.g. "en", "en-US", "es-419", etc.
88 // http://en.wikipedia.org/wiki/IETF_language_tag
89 optional string browser_language = 8;
90
91 // User-requested language code of viewed sites. Languages in
92 // accept-languages.
93 repeated string requested_language = 9;
94
95 // Default charset of the browser. (e.g. ISO-8859-1, obtained from
96 // document.defaultCharset)
97 optional string charset = 10;
98
99 // The number of physical screens.
100 optional int32 screen_count = 11;
101
102 // Information about the user's monitor's physical screen size.
103 // (e.g. 1024 x 768)
104 optional Dimension screen_size = 12;
105
106 // The color depth of the user's screen (obtained from screen.colorDepth
107 // or screen.pixelDepth)
108 optional int32 screen_color_depth = 13;
109
110 // Information about the size of the portion of the screen that is unusable
111 // to a program (i.e. on Windows, the portion of the screen that is taken
112 // up by the taskbar)
113 optional Dimension unavailable_screen_size = 14;
114
115 optional string user_agent = 15;
116
117 // Total size of each hard drive partition.
118 repeated int32 partition_size = 16;
119
120 optional Cpu cpu = 17;
121
122 // Total RAM in bytes.
123 optional int64 ram = 18;
124
125 // Graphics card being used.
126 optional Graphics graphics_card = 19;
127
128 // Build version string for browser.
129 optional string browser_build = 20;
130
131 }
132
133 // Contains properties relating to more transient computer / browser state.
134 message TransientState {
135 // Corresponds to window.innerWidth / innertHeight
136 optional Dimension inner_window_size = 1;
137
138 // Corresponds to window.outerWidth / outerHeight
139 optional Dimension outer_window_size = 2;
140 }
141
142 // Measures computer / network performance.
143 message Performance {
144 // Bandwidth in MB/s. network.connection.bandwidth
145 optional float bandwidth = 1;
146 // Whether bandwidth cost is metered. network.connection.metered
147 optional bool metered = 2;
148 // Whether it's wifi, 3g, 2g, etc. network.connection.type
149 optional string network_type = 3;
150 }
151
152 // Properties describing the user -- especially the user's state in the
153 // physical world.
154 message UserCharacteristics {
155 message Vector {
156 optional int32 x = 1;
157 optional int32 y = 2;
158 optional int32 z = 3;
159 }
160
161 message Location {
162 // Meters above sea level.
163 optional double altitude = 1;
164 // Latitude in degrees.
165 optional double latitude = 2;
166 // Longitude in degrees.
167 optional double longitude = 3;
168 // Accuracy in meters. 95% probability of being in this radius of
169 // lat / long.
170 optional float accuracy = 4;
171 // Milliseconds since epoch since measurement.
172 optional double time_in_ms = 5;
173 }
174
175 // Average force by finger presses. TouchEvent.force
176 optional float force = 1;
177 // Average finger width. TouchEvent.radiusX
178 optional float touch_width = 2;
179 // Average finger height. TouchEvent.radiusY
180 optional float touch_height = 3;
181 // TouchEvent.rotationAngle
182 optional int32 touch_rotation = 4;
183 // Orientation while user is navigating flow and the device is roughly
184 // stable. x for alpha, y for beta, z for gamma
185 // TODO(isherman): Orientation data is only available asynchronously in
186 // Chrome.
187 optional Vector device_orientation = 5;
188 // Acceleration while measuring orientation.
189 // TODO(isherman): Acceleration data is not available in Chrome.
190 optional Vector device_acceleration = 6;
191 optional Location location = 7;
192 }
193
194 // Metadata associated with data collection or the user that doesn't actually
195 // fingerprint the device.
196 message Metadata {
197 // When this data was collected / received, in milliseconds since the epoch.
198 optional int64 timestamp_ms = 1;
199 // Gaia id associated with transaction.
200 optional int64 gaia_id = 2;
201 // Version of the native library generating this proto.
202 // This may be manually bumped when the code populating the proto has
203 // significantly changed.
204 optional int32 fingerprinter_version = 3;
205 }
206
207 // Computer / browser fingerprint.
208 optional MachineCharacteristics machine_characteristics = 1;
209
210 optional Performance performance = 2;
211
212 optional UserCharacteristics user_characteristics = 3;
213
214 optional TransientState transient_state = 4;
215
216 // Metadata associated with data collection.
217 optional Metadata metadata = 5;
218 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/risk/fingerprint_browsertest.cc ('k') | chrome/browser/autofill/test_autofill_external_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698