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

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

Issue 655433004: Get rid of unnecessary forward declarations in components/autofill/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated Ilya's review comments Created 6 years, 2 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // Generates fingerprints appropriate for sending to the Google Wallet Risk 5 // Generates fingerprints appropriate for sending to the Google Wallet Risk
6 // engine, which is the fraud-detection engine used for purchases powered by 6 // engine, which is the fraud-detection engine used for purchases powered by
7 // Google Wallet. A fingerprint encapsulates machine and user characteristics. 7 // Google Wallet. A fingerprint encapsulates machine and user characteristics.
8 // Because much of the data is privacy-sensitive, fingerprints should only be 8 // Because much of the data is privacy-sensitive, fingerprints should only be
9 // generated with explicit user consent, including consent to gather geolocation 9 // generated with explicit user consent, including consent to gather geolocation
10 // data. 10 // data.
(...skipping 15 matching lines...) Expand all
26 } 26 }
27 27
28 namespace content { 28 namespace content {
29 class WebContents; 29 class WebContents;
30 } 30 }
31 31
32 namespace gfx { 32 namespace gfx {
33 class Rect; 33 class Rect;
34 } 34 }
35 35
36 namespace blink {
37 struct WebScreenInfo;
38 }
39
40 namespace autofill { 36 namespace autofill {
41 namespace risk { 37 namespace risk {
42 38
43 class Fingerprint; 39 class Fingerprint;
44 40
45 // Asynchronously calls |callback| with statistics that, collectively, provide a 41 // Asynchronously calls |callback| with statistics that, collectively, provide a
46 // unique fingerprint for this (machine, user) pair, used for fraud prevention. 42 // unique fingerprint for this (machine, user) pair, used for fraud prevention.
47 // |obfuscated_gaia_id| is an obfuscated user id for Google's authentication 43 // |obfuscated_gaia_id| is an obfuscated user id for Google's authentication
48 // system. |window_bounds| should be the bounds of the containing Chrome window. 44 // system. |window_bounds| should be the bounds of the containing Chrome window.
49 // |web_contents| should be the host for the page the user is interacting with. 45 // |web_contents| should be the host for the page the user is interacting with.
50 // |version| is the version number of the application. |charset| is the default 46 // |version| is the version number of the application. |charset| is the default
51 // character set. |accept_languages| is the Accept-Languages setting. 47 // character set. |accept_languages| is the Accept-Languages setting.
52 // |install_time| is the absolute time of installation. 48 // |install_time| is the absolute time of installation.
53 void GetFingerprint( 49 void GetFingerprint(
54 uint64 obfuscated_gaia_id, 50 uint64 obfuscated_gaia_id,
55 const gfx::Rect& window_bounds, 51 const gfx::Rect& window_bounds,
56 content::WebContents* web_contents, 52 content::WebContents* web_contents,
57 const std::string& version, 53 const std::string& version,
58 const std::string& charset, 54 const std::string& charset,
59 const std::string& accept_languages, 55 const std::string& accept_languages,
60 const base::Time& install_time, 56 const base::Time& install_time,
61 const std::string& app_locale, 57 const std::string& app_locale,
62 const std::string& user_agent, 58 const std::string& user_agent,
63 const base::Callback<void(scoped_ptr<Fingerprint>)>& callback); 59 const base::Callback<void(scoped_ptr<Fingerprint>)>& callback);
64 60
65 } // namespace risk 61 } // namespace risk
66 } // namespace autofill 62 } // namespace autofill
67 63
68 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_RISK_FINGERPRINT_H_ 64 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_RISK_FINGERPRINT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698