OLD | NEW |
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. |
11 | 11 |
12 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_RISK_FINGERPRINT_H_ | 12 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_RISK_FINGERPRINT_H_ |
13 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_RISK_FINGERPRINT_H_ | 13 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_RISK_FINGERPRINT_H_ |
14 | 14 |
15 #include <stdint.h> | 15 #include <stdint.h> |
16 | 16 |
| 17 #include <memory> |
17 #include <string> | 18 #include <string> |
18 | 19 |
19 #include "base/callback_forward.h" | 20 #include "base/callback_forward.h" |
20 #include "base/memory/scoped_ptr.h" | |
21 #include "components/autofill/core/browser/autofill_client.h" | 21 #include "components/autofill/core/browser/autofill_client.h" |
22 | 22 |
23 class PrefService; | 23 class PrefService; |
24 | 24 |
25 namespace base { | 25 namespace base { |
26 class Time; | 26 class Time; |
27 } | 27 } |
28 | 28 |
29 namespace content { | 29 namespace content { |
30 class WebContents; | 30 class WebContents; |
(...skipping 19 matching lines...) Expand all Loading... |
50 void GetFingerprint( | 50 void GetFingerprint( |
51 uint64_t obfuscated_gaia_id, | 51 uint64_t obfuscated_gaia_id, |
52 const gfx::Rect& window_bounds, | 52 const gfx::Rect& window_bounds, |
53 content::WebContents* web_contents, | 53 content::WebContents* web_contents, |
54 const std::string& version, | 54 const std::string& version, |
55 const std::string& charset, | 55 const std::string& charset, |
56 const std::string& accept_languages, | 56 const std::string& accept_languages, |
57 const base::Time& install_time, | 57 const base::Time& install_time, |
58 const std::string& app_locale, | 58 const std::string& app_locale, |
59 const std::string& user_agent, | 59 const std::string& user_agent, |
60 const base::Callback<void(scoped_ptr<Fingerprint>)>& callback); | 60 const base::Callback<void(std::unique_ptr<Fingerprint>)>& callback); |
61 | 61 |
62 } // namespace risk | 62 } // namespace risk |
63 } // namespace autofill | 63 } // namespace autofill |
64 | 64 |
65 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_RISK_FINGERPRINT_H_ | 65 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_RISK_FINGERPRINT_H_ |
OLD | NEW |