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

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

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 years, 9 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
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 <string>
9
10 #include "base/basictypes.h"
11 #include "base/callback_forward.h"
12 #include "base/memory/scoped_ptr.h"
13
14 class PrefService;
15
16 namespace base {
17 class Time;
18 }
19
20 namespace content {
21 class WebContents;
22 }
23
24 namespace gfx {
25 class Rect;
26 }
27
28 namespace WebKit {
29 struct WebScreenInfo;
30 }
31
32 namespace autofill {
33 namespace risk {
34
35 class Fingerprint;
36
37 // Asynchronously calls |callback| with statistics that, collectively, provide a
38 // unique fingerprint for this (machine, user) pair, used for fraud prevention.
39 // |gaia_id| should be the user id for Google's authentication system.
40 // |window_bounds| should be the bounds of the containing Chrome window.
41 // |web_contents| should be the host for the page the user is interacting with.
42 // |version| is the version number of the application.
43 // |charset| is the default character set.
44 // |accept_languages| is the Accept-Languages setting.
45 // |install_time| is the absolute time of installation.
46 void GetFingerprint(
47 int64 gaia_id,
48 const gfx::Rect& window_bounds,
49 const content::WebContents& web_contents,
50 const std::string& version,
51 const std::string& charset,
52 const std::string& accept_languages,
53 const base::Time& install_time,
54 const base::Callback<void(scoped_ptr<Fingerprint>)>& callback);
55
56 // Exposed for testing:
57 namespace internal {
58
59 void GetFingerprintInternal(
60 int64 gaia_id,
61 const gfx::Rect& window_bounds,
62 const gfx::Rect& content_bounds,
63 const WebKit::WebScreenInfo& screen_info,
64 const std::string& version,
65 const std::string& charset,
66 const std::string& accept_languages,
67 const base::Time& install_time,
68 const base::Callback<void(scoped_ptr<Fingerprint>)>& callback);
69
70 } // namespace internal
71
72 } // namespace risk
73 } // namespace autofill
74
75 #endif // CHROME_BROWSER_AUTOFILL_RISK_FINGERPRINT_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/phone_number_unittest.cc ('k') | chrome/browser/autofill/risk/fingerprint.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698