| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // Generates fingerprints appropriate for sending to the Google Wallet Risk | 5 // Generates fingerprints appropriate for sending to the Google Wallet Risk |
| 6 // engine, which is the fraud-detection engine used for purchases powered by | 6 // engine, which is the fraud-detection engine used for purchases powered by |
| 7 // Google Wallet. A fingerprint encapsulates machine and user characteristics. | 7 // Google Wallet. A fingerprint encapsulates machine and user characteristics. |
| 8 // Because much of the data is privacy-sensitive, fingerprints should only be | 8 // Because much of the data is privacy-sensitive, fingerprints should only be |
| 9 // generated with explicit user consent, including consent to gather geolocation | 9 // generated with explicit user consent, including consent to gather geolocation |
| 10 // data. | 10 // data. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // unique fingerprint for this (machine, user) pair, used for fraud prevention. | 42 // unique fingerprint for this (machine, user) pair, used for fraud prevention. |
| 43 // |obfuscated_gaia_id| is an obfuscated user id for Google's authentication | 43 // |obfuscated_gaia_id| is an obfuscated user id for Google's authentication |
| 44 // system. |window_bounds| should be the bounds of the containing Chrome window. | 44 // system. |window_bounds| should be the bounds of the containing Chrome window. |
| 45 // |web_contents| should be the host for the page the user is interacting with. | 45 // |web_contents| should be the host for the page the user is interacting with. |
| 46 // |version| is the version number of the application. |charset| is the default | 46 // |version| is the version number of the application. |charset| is the default |
| 47 // character set. |accept_languages| is the Accept-Languages setting. | 47 // character set. |accept_languages| is the Accept-Languages setting. |
| 48 // |install_time| is the absolute time of installation. | 48 // |install_time| is the absolute time of installation. |
| 49 void GetFingerprint( | 49 void GetFingerprint( |
| 50 uint64 obfuscated_gaia_id, | 50 uint64 obfuscated_gaia_id, |
| 51 const gfx::Rect& window_bounds, | 51 const gfx::Rect& window_bounds, |
| 52 content::WebContents* web_contents, | 52 const content::WebContents* web_contents, |
| 53 const std::string& version, | 53 const std::string& version, |
| 54 const std::string& charset, | 54 const std::string& charset, |
| 55 const std::string& accept_languages, | 55 const std::string& accept_languages, |
| 56 const base::Time& install_time, | 56 const base::Time& install_time, |
| 57 const std::string& app_locale, | 57 const std::string& app_locale, |
| 58 const std::string& user_agent, | 58 const std::string& user_agent, |
| 59 const base::Callback<void(scoped_ptr<Fingerprint>)>& callback); | 59 const base::Callback<void(scoped_ptr<Fingerprint>)>& callback); |
| 60 | 60 |
| 61 } // namespace risk | 61 } // namespace risk |
| 62 } // namespace autofill | 62 } // namespace autofill |
| 63 | 63 |
| 64 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_RISK_FINGERPRINT_H_ | 64 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_RISK_FINGERPRINT_H_ |
| OLD | NEW |