OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |