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

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

Issue 12212057: [Autofill] Add ability to load Risk fingerprint data in AutofillDialogControllerImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mock harder Created 7 years, 10 months 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
« no previous file with comments | « no previous file | chrome/browser/autofill/risk/fingerprint.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROME_BROWSER_AUTOFILL_RISK_FINGERPRINT_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_RISK_FINGERPRINT_H_
6 #define CHROME_BROWSER_AUTOFILL_RISK_FINGERPRINT_H_ 6 #define CHROME_BROWSER_AUTOFILL_RISK_FINGERPRINT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 11
12 class PrefService; 12 class PrefService;
13 13
14 namespace content {
15 class WebContents;
16 }
17
14 namespace gfx { 18 namespace gfx {
15 class Rect; 19 class Rect;
16 } 20 }
17 21
18 namespace WebKit { 22 namespace WebKit {
19 struct WebScreenInfo; 23 struct WebScreenInfo;
20 } 24 }
21 25
22 namespace autofill { 26 namespace autofill {
23 namespace risk { 27 namespace risk {
24 28
25 class Fingerprint; 29 class Fingerprint;
26 30
27 // Asynchronously calls |callback| with statistics that, collectively, provide a 31 // Asynchronously calls |callback| with statistics that, collectively, provide a
28 // unique fingerprint for this (machine, user) pair, used for fraud prevention. 32 // unique fingerprint for this (machine, user) pair, used for fraud prevention.
29 // The |gaia_id| should be the user id for Google's authentication system. 33 // |gaia_id| should be the user id for Google's authentication system.
30 // The |window_bounds| should be the bounds of the containing Chrome window. 34 // |window_bounds| should be the bounds of the containing Chrome window.
31 // The |content_bounds| should be the bounds of the web contents view for the 35 // |web_contents| should be the host for the page the user is interacting with.
32 // page the user is interacting with. The |prefs| should reflect the active 36 // |prefs| should reflect the active Chrome profile's user preferences.
33 // Chrome profile's user preferences.
34 void GetFingerprint( 37 void GetFingerprint(
35 int64 gaia_id, 38 int64 gaia_id,
36 const gfx::Rect& window_bounds, 39 const gfx::Rect& window_bounds,
37 const gfx::Rect& content_bounds, 40 const content::WebContents& web_contents,
38 const WebKit::WebScreenInfo& screen_info,
39 const PrefService& prefs, 41 const PrefService& prefs,
40 const base::Callback<void(scoped_ptr<Fingerprint>)>& callback); 42 const base::Callback<void(scoped_ptr<Fingerprint>)>& callback);
41 43
42 } // namespace risk 44 } // namespace risk
43 } // namespace autofill 45 } // namespace autofill
44 46
45 #endif // CHROME_BROWSER_AUTOFILL_RISK_FINGERPRINT_H_ 47 #endif // CHROME_BROWSER_AUTOFILL_RISK_FINGERPRINT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autofill/risk/fingerprint.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698