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

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

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: Callback + test 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 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 #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
Evan Stade 2012/12/21 22:37:08 one less \n
Ilya Sherman 2012/12/22 01:22:00 Done.
40
41 #endif // CHROME_BROWSER_AUTOFILL_RISK_FINGERPRINT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698