| OLD | NEW |
| (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 #ifndef CHROME_BROWSER_AUTOFILL_RISK_FINGERPRINT_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_RISK_FINGERPRINT_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/callback_forward.h" |
| 10 #include "base/memory/scoped_ptr.h" |
| 11 |
| 12 class PrefServiceBase; |
| 13 |
| 14 namespace gfx { |
| 15 class Rect; |
| 16 } |
| 17 |
| 18 namespace autofill { |
| 19 namespace risk { |
| 20 |
| 21 class Fingerprint; |
| 22 |
| 23 // Asynchronously calls |callback| with statistics that, collectively, provide a |
| 24 // unique fingerprint for this (machine, user) pair, used for fraud prevention. |
| 25 // The |gaia_id| should be the user id for Google's authentication system. |
| 26 // The |window_bounds| should be the bounds of the containing Chrome window. |
| 27 // The |content_bounds| should be the bounds of the web contents view for the |
| 28 // page the user is interacting with. The |prefs| should reflect the active |
| 29 // Chrome profile's user preferences. |
| 30 void GetFingerprint( |
| 31 int64 gaia_id, |
| 32 const gfx::Rect& window_bounds, |
| 33 const gfx::Rect& content_bounds, |
| 34 const PrefServiceBase& prefs, |
| 35 const base::Callback<void(scoped_ptr<Fingerprint>)>& callback); |
| 36 |
| 37 } // namespace risk |
| 38 } // namespace autofill |
| 39 |
| 40 #endif // CHROME_BROWSER_AUTOFILL_RISK_FINGERPRINT_H_ |
| OLD | NEW |