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

Unified Diff: components/autofill/core/browser/risk_data_loader.h

Issue 2794613002: Remove FullCardRequest's dependency on AutofillClient. (Closed)
Patch Set: Add risk_data_loader.h to BUILD. Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/core/browser/risk_data_loader.h
diff --git a/components/autofill/core/browser/risk_data_loader.h b/components/autofill/core/browser/risk_data_loader.h
new file mode 100644
index 0000000000000000000000000000000000000000..8efc7e501e5c92bc6281a81ed4135ba9d3cd287d
--- /dev/null
+++ b/components/autofill/core/browser/risk_data_loader.h
@@ -0,0 +1,25 @@
+// Copyright 2017 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 COMPONENTS_AUTOFILL_CORE_BROWSER_RISK_DATA_LOADER_H_
+#define COMPONENTS_AUTOFILL_CORE_BROWSER_RISK_DATA_LOADER_H_
+
+#include <string>
+
+#include "base/callback.h"
+
+namespace autofill {
+
+class RiskDataLoader {
+ public:
+ virtual ~RiskDataLoader() {}
Mathieu 2017/03/31 19:04:03 I think this can be protected?
anthonyvd 2017/04/03 15:01:20 Done.
+
+ // Gathers risk data and provides it to |callback|.
+ virtual void LoadRiskData(
+ const base::Callback<void(const std::string&)>& callback) = 0;
+};
+
+} // namespace autofill
+
+#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_RISK_DATA_LOADER_H_

Powered by Google App Engine
This is Rietveld 408576698