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

Unified Diff: chrome/browser/autofill/risk/fingerprint.h

Issue 11612017: [Autofill] Add protobuf for Google Wallet risk parameters and a utility function for filling it out. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/risk/fingerprint.h
diff --git a/chrome/browser/autofill/risk/fingerprint.h b/chrome/browser/autofill/risk/fingerprint.h
new file mode 100644
index 0000000000000000000000000000000000000000..16adfba44d25647ecfffecad729f5642a3ecb3f3
--- /dev/null
+++ b/chrome/browser/autofill/risk/fingerprint.h
@@ -0,0 +1,40 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_AUTOFILL_RISK_FINGERPRINT_H_
+#define CHROME_BROWSER_AUTOFILL_RISK_FINGERPRINT_H_
+
+#include "base/basictypes.h"
+#include "base/callback_forward.h"
+#include "base/memory/scoped_ptr.h"
+
+class PrefServiceBase;
+
+namespace gfx {
+class Rect;
+}
+
+namespace autofill {
+namespace risk {
+
+class Fingerprint;
+
+// Asynchronously calls |callback| with statistics that, collectively, provide a
+// unique fingerprint for this (machine, user) pair, used for fraud prevention.
+// The |gaia_id| should be the user id for Google's authentication system.
+// The |window_bounds| should be the bounds of the containing Chrome window.
+// The |content_bounds| should be the bounds of the web contents view for the
+// page the user is interacting with. The |prefs| should reflect the active
+// Chrome profile's user preferences.
+void GetFingerprint(
+ int64 gaia_id,
+ const gfx::Rect& window_bounds,
+ const gfx::Rect& content_bounds,
+ const PrefServiceBase& prefs,
+ const base::Callback<void(scoped_ptr<Fingerprint>)>& callback);
+
+} // namespace risk
+} // namespace autofill
+
+#endif // CHROME_BROWSER_AUTOFILL_RISK_FINGERPRINT_H_

Powered by Google App Engine
This is Rietveld 408576698