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

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: Clean up! 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/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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698