Chromium Code Reviews| 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/memory/scoped_ptr.h" | |
| 10 | |
| 11 class PrefService; | |
| 12 | |
| 13 namespace gfx { | |
| 14 class Rect; | |
| 15 } | |
| 16 | |
| 17 namespace autofill { | |
| 18 namespace risk { | |
| 19 | |
| 20 class Fingerprint; | |
| 21 | |
| 22 // Fills |fingerprint| with statistics that, collectively, constitute a unique | |
| 23 // fingerprint for this (machine, user) pair, used for fraud prevention. | |
|
Evan Stade
2012/12/20 21:33:27
This makes it sound like |fingerprint| is an out p
Ilya Sherman
2012/12/21 04:51:23
Yeah, I was kind of punting on the callback issue.
| |
| 24 // The |gaia_id| should be the user id for Google's authentication system. | |
| 25 // The |window_bounds| should be the bounds of the containing Chrome window. | |
| 26 // The |content_bounds| should be the bounds of the web contents view for the | |
| 27 // page the user is interacting with. The |prefs| should reflect the active | |
| 28 // Chrome profile's user preferences. | |
| 29 void GetFingerprint(int64 gaia_id, | |
| 30 const gfx::Rect& window_rect, | |
| 31 const gfx::Rect& content_rect, | |
| 32 const PrefService& prefs, | |
| 33 scoped_ptr<Fingerprint> fingerprint); | |
| 34 | |
| 35 } // namespace risk | |
| 36 } // namespace autofill | |
| 37 | |
| 38 | |
| 39 #endif // CHROME_BROWSER_AUTOFILL_RISK_FINGERPRINT_H_ | |
| OLD | NEW |