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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/risk/proto/machine_fingerprint.proto
diff --git a/chrome/browser/autofill/risk/proto/machine_fingerprint.proto b/chrome/browser/autofill/risk/proto/machine_fingerprint.proto
new file mode 100644
index 0000000000000000000000000000000000000000..fb094442824ad529772ed352368320d649edd9b3
--- /dev/null
+++ b/chrome/browser/autofill/risk/proto/machine_fingerprint.proto
@@ -0,0 +1,212 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+//
+// This file contains the definition of protocol buffers for native browser
+// fingerprinting.
+
+// TODO(isherman): Upstream diffs in this file.
+
+syntax = "proto2";
+
+// option optimize_for = LITE_RUNTIME;
+
+package autofill.risk;
+
+message BrowserNativeFingerprinting {
+ // A simple protocol message to represent objects with width and height.
+ message Dimension {
+ required int32 width = 1;
+ required int32 height = 2;
+ }
+
+ message Fingerprint {
+
+ // A simple protocol message that represents a plugin.
+ // e.g. flash, shockwave, acrobat reader, gears, picasa
+ message Plugin {
+ required string name = 1;
+ optional string description = 2;
+ repeated string mime_type = 3;
+ optional string version = 4;
+ }
+
+ // Information on the GPU
+ message Graphics {
+ // The GPU manufacturer's vendor id.
+ optional uint32 vendor_id = 1;
+
+ // The GPU manufacturer's device id for the chip set.
+ optional uint32 device_id = 2;
+
+ // The driver version on the GPU.
+ optional string driver_version = 3;
+
+ // The driver date on the GPU.
+ optional string driver_date = 4;
+
+ // The GPU performance statistics.
+ message PerformanceStatistics {
+ optional float graphics_score = 1;
+ optional float gaming_score = 2;
+ optional float overall_score = 3;
+ }
+ optional PerformanceStatistics performance_statistics = 5;
+ }
+
+ // Username currently logged into computer / device.
+ // 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
+ // discussions.
+ optional string user_name = 1;
+
+ // Build version string for the current operating system.
+ optional string operating_system_build = 2;
+
+ // e.g. User-assigned computer name.
+ // TODO(isherman): This seems like TMI.
+ optional string device_name = 3;
+
+ // Browser install time (ms since epoch).
+ // TODO(isherman): This might be TMI.
+ optional int64 browser_install_time_ms = 4;
+
+ // Fonts installed on the machine.
+ repeated string font = 5;
+
+ // Plug-ins installed on the machine.
+ repeated Plugin plugin = 6;
+
+ // Delta in ms of the device's time zone from utc.
+ optional int64 utc_offset_ms = 7;
+
+ // Browser ISO3 language.
+ // TODO(isherman): What is "ISO3"?
+ optional string browser_language = 8;
+
+ // User-requested ISO3 language of viewed sites. Languages in
+ // accept-languages.
+ repeated string requested_language = 9;
+
+ // Default charset of the browser. (e.g. ISO-8859-1, obtained from
+ // document.defaultCharset)
+ optional string charset = 10;
+
+ // The number of physical screens.
+ optional int32 screen_count = 11;
+
+ // Information about the user's monitor's physical screen size.
+ // (e.g. 1024 x 768)
+ optional Dimension screen_size = 12;
+
+ // The color depth of the user's screen (obtained from screen.colorDepth
+ // or screen.pixelDepth)
+ optional int32 screen_color_depth = 13;
+
+ // Information about the size of the portion of the screen that is unusable
+ // to a program (i.e. on Windows, the portion of the screen that is taken
+ // up by the taskbar)
+ optional Dimension unavailable_screen_size = 14;
+
+ optional string user_agent = 15;
+
+ // Total size of each hard drive partition.
+ repeated int32 partition_size = 16;
+
+ // TODO(isherman): What format of data does this expect?
+ optional string cpu = 17;
+
+ // Total RAM in bytes.
+ optional int64 ram = 18;
+
+ // Graphics card being used.
+ optional Graphics graphics_card = 19;
+
+ // Build version string for browser.
+ optional string browser_build = 20;
+
+ }
+
+ // Contains properties relating to more transient computer / browser state.
+ message State {
+ // Corresponds to window.innerWidth / innertHeight
+ optional Dimension inner_window_size = 1;
+
+ // Corresponds to window.outerWidth / outerHeight
+ optional Dimension outer_window_size = 2;
+ }
+
+ // Measures computer / network performance.
+ message Performance {
+ // Bandwidth in MB/s. network.connection.bandwidth
+ optional float bandwidth = 1;
+ // Whether bandwidth cost is metered. network.connection.metered
+ optional bool metered = 2;
+ // Whether it's wifi, 3g, 2g, etc. network.connection.type
+ optional string network_type = 3;
+ }
+
+ message UserBehavior {
+ message Vector {
+ optional int32 x = 1;
+ optional int32 y = 2;
+ optional int32 z = 3;
+ }
+
+ message Location {
+ // Meters above sea level.
+ optional double altitude = 1;
+ // Latitude in degrees.
+ optional double latitude = 2;
+ // Longitude in degrees.
+ optional double longitude = 3;
+ // Accuracy in meters. 95% probability of being in this radius of
+ // lat / long.
+ optional float accuracy = 4;
+ // Milliseconds since epoch since measurement.
+ optional double time_in_ms = 5;
+ }
+
+ // Average force by finger presses. TouchEvent.force
+ optional float force = 1;
+ // Average finger width. TouchEvent.radiusX
+ optional float touch_width = 2;
+ // Average finger height. TouchEvent.radiusY
+ optional float touch_height = 3;
+ // TouchEvent.rotationAngle
+ optional int32 touch_rotation = 4;
+ // Orientation while user is navigating flow and the device is roughly
+ // stable. x for alpha, y for beta, z for gamma
+ // TODO(isherman): Orientation data is only available asynchronously in
+ // Chrome.
+ optional Vector device_orientation = 5;
+ // Acceleration while measuring orientation.
+ // TODO(isherman): Acceleration data is not available in Chrome.
+ optional Vector device_acceleration = 6;
+ optional Location location = 7;
+ }
+
+ // Metadata associated with data collection or the user
+ // and doesn't actually fingerprint the device.
+ message Metadata {
+ // When this data was collected / received, in milliseconds since the epoch.
+ optional int64 timestamp_ms = 1;
+ // Gaia id associated with transaction.
+ optional int64 gaia_id = 2;
+ // Version of the native library generating this proto.
+ // This may be manually bumped when the code populating the proto has
+ // significantly changed.
+ optional int32 fingerprinter_version = 3;
+ }
+
+ // Computer / browser fingerprint.
+ optional Fingerprint fingerprint = 1;
+
+ optional Performance performance = 2;
+
+ optional UserBehavior user_behavior = 3;
+
+ optional State state = 4;
+
+ // Metadata associated with data collection.
+ optional Metadata metadata = 5;
+}

Powered by Google App Engine
This is Rietveld 408576698