| 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" |
| 11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "components/autofill/browser/autofill_manager_delegate.h" | 13 #include "components/autofill/browser/autofill_manager_delegate.h" |
| 14 #include "components/autofill/common/autofill_export.h" |
| 14 | 15 |
| 15 class PrefService; | 16 class PrefService; |
| 16 | 17 |
| 17 namespace base { | 18 namespace base { |
| 18 class Time; | 19 class Time; |
| 19 } | 20 } |
| 20 | 21 |
| 21 namespace content { | 22 namespace content { |
| 22 class WebContents; | 23 class WebContents; |
| 23 } | 24 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 37 | 38 |
| 38 // Asynchronously calls |callback| with statistics that, collectively, provide a | 39 // Asynchronously calls |callback| with statistics that, collectively, provide a |
| 39 // unique fingerprint for this (machine, user) pair, used for fraud prevention. | 40 // unique fingerprint for this (machine, user) pair, used for fraud prevention. |
| 40 // |gaia_id| should be the user id for Google's authentication system. | 41 // |gaia_id| should be the user id for Google's authentication system. |
| 41 // |window_bounds| should be the bounds of the containing Chrome window. | 42 // |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. | 43 // |web_contents| should be the host for the page the user is interacting with. |
| 43 // |version| is the version number of the application. | 44 // |version| is the version number of the application. |
| 44 // |charset| is the default character set. | 45 // |charset| is the default character set. |
| 45 // |accept_languages| is the Accept-Languages setting. | 46 // |accept_languages| is the Accept-Languages setting. |
| 46 // |install_time| is the absolute time of installation. | 47 // |install_time| is the absolute time of installation. |
| 47 void GetFingerprint( | 48 void AUTOFILL_EXPORT GetFingerprint( |
| 48 int64 gaia_id, | 49 int64 gaia_id, |
| 49 const gfx::Rect& window_bounds, | 50 const gfx::Rect& window_bounds, |
| 50 const content::WebContents& web_contents, | 51 const content::WebContents& web_contents, |
| 51 const std::string& version, | 52 const std::string& version, |
| 52 const std::string& charset, | 53 const std::string& charset, |
| 53 const std::string& accept_languages, | 54 const std::string& accept_languages, |
| 54 const base::Time& install_time, | 55 const base::Time& install_time, |
| 55 DialogType dialog_type, | 56 DialogType dialog_type, |
| 56 const std::string& app_locale, | 57 const std::string& app_locale, |
| 57 const base::Callback<void(scoped_ptr<Fingerprint>)>& callback); | 58 const base::Callback<void(scoped_ptr<Fingerprint>)>& callback); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 71 DialogType dialog_type, | 72 DialogType dialog_type, |
| 72 const std::string& app_locale, | 73 const std::string& app_locale, |
| 73 const base::Callback<void(scoped_ptr<Fingerprint>)>& callback); | 74 const base::Callback<void(scoped_ptr<Fingerprint>)>& callback); |
| 74 | 75 |
| 75 } // namespace internal | 76 } // namespace internal |
| 76 | 77 |
| 77 } // namespace risk | 78 } // namespace risk |
| 78 } // namespace autofill | 79 } // namespace autofill |
| 79 | 80 |
| 80 #endif // COMPONENTS_AUTOFILL_BROWSER_RISK_FINGERPRINT_H_ | 81 #endif // COMPONENTS_AUTOFILL_BROWSER_RISK_FINGERPRINT_H_ |
| OLD | NEW |