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

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

Issue 14904002: Load and send Wallet Risk params after user has agreed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
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 COMPONENTS_AUTOFILL_BROWSER_RISK_FINGERPRINT_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_RISK_FINGERPRINT_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_RISK_FINGERPRINT_H_ 6 #define COMPONENTS_AUTOFILL_BROWSER_RISK_FINGERPRINT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 27 matching lines...) Expand all
38 // Asynchronously calls |callback| with statistics that, collectively, provide a 38 // Asynchronously calls |callback| with statistics that, collectively, provide a
39 // unique fingerprint for this (machine, user) pair, used for fraud prevention. 39 // unique fingerprint for this (machine, user) pair, used for fraud prevention.
40 // |gaia_id| should be the user id for Google's authentication system. 40 // |gaia_id| should be the user id for Google's authentication system.
41 // |window_bounds| should be the bounds of the containing Chrome window. 41 // |window_bounds| should be the bounds of the containing Chrome window.
42 // |web_contents| should be the host for the page the user is interacting with. 42 // |web_contents| should be the host for the page the user is interacting with.
43 // |version| is the version number of the application. 43 // |version| is the version number of the application.
44 // |charset| is the default character set. 44 // |charset| is the default character set.
45 // |accept_languages| is the Accept-Languages setting. 45 // |accept_languages| is the Accept-Languages setting.
46 // |install_time| is the absolute time of installation. 46 // |install_time| is the absolute time of installation.
47 void GetFingerprint( 47 void GetFingerprint(
48 int64 gaia_id, 48 uint64 gaia_id,
49 const gfx::Rect& window_bounds, 49 const gfx::Rect& window_bounds,
50 const content::WebContents& web_contents, 50 const content::WebContents& web_contents,
51 const std::string& version, 51 const std::string& version,
52 const std::string& charset, 52 const std::string& charset,
53 const std::string& accept_languages, 53 const std::string& accept_languages,
54 const base::Time& install_time, 54 const base::Time& install_time,
55 DialogType dialog_type, 55 DialogType dialog_type,
56 const std::string& app_locale, 56 const std::string& app_locale,
57 const base::Callback<void(scoped_ptr<Fingerprint>)>& callback); 57 const base::Callback<void(scoped_ptr<Fingerprint>)>& callback);
58 58
59 // Exposed for testing: 59 // Exposed for testing:
60 namespace internal { 60 namespace internal {
61 61
62 void GetFingerprintInternal( 62 void GetFingerprintInternal(
63 int64 gaia_id, 63 uint64 gaia_id,
64 const gfx::Rect& window_bounds, 64 const gfx::Rect& window_bounds,
65 const gfx::Rect& content_bounds, 65 const gfx::Rect& content_bounds,
66 const WebKit::WebScreenInfo& screen_info, 66 const WebKit::WebScreenInfo& screen_info,
67 const std::string& version, 67 const std::string& version,
68 const std::string& charset, 68 const std::string& charset,
69 const std::string& accept_languages, 69 const std::string& accept_languages,
70 const base::Time& install_time, 70 const base::Time& install_time,
71 DialogType dialog_type, 71 DialogType dialog_type,
72 const std::string& app_locale, 72 const std::string& app_locale,
73 const base::Callback<void(scoped_ptr<Fingerprint>)>& callback); 73 const base::Callback<void(scoped_ptr<Fingerprint>)>& callback);
74 74
75 } // namespace internal 75 } // namespace internal
76 76
77 } // namespace risk 77 } // namespace risk
78 } // namespace autofill 78 } // namespace autofill
79 79
80 #endif // COMPONENTS_AUTOFILL_BROWSER_RISK_FINGERPRINT_H_ 80 #endif // COMPONENTS_AUTOFILL_BROWSER_RISK_FINGERPRINT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698