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

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

Issue 229723002: Better error reasons for rAc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/autofill_manager_delegate.h
diff --git a/components/autofill/core/browser/autofill_manager_delegate.h b/components/autofill/core/browser/autofill_manager_delegate.h
index 2ad85d078ce57785fb307278fbf2ba5bf4b7e14b..b236ea2643483e86d79438113262a1b66c64c711 100644
--- a/components/autofill/core/browser/autofill_manager_delegate.h
+++ b/components/autofill/core/browser/autofill_manager_delegate.h
@@ -11,6 +11,7 @@
#include "base/i18n/rtl.h"
#include "base/memory/weak_ptr.h"
#include "base/strings/string16.h"
+#include "third_party/WebKit/public/web/WebFormElement.h"
namespace gfx {
class Rect;
@@ -43,6 +44,10 @@ struct PasswordForm;
// attached to).
class AutofillManagerDelegate {
public:
+ typedef base::Callback<
+ void(blink::WebFormElement::AutocompleteResult,
+ const FormStructure*)> ResultCallback;
+
virtual ~AutofillManagerDelegate() {}
// Gets the PersonalDataManager instance associated with the delegate.
@@ -70,7 +75,7 @@ class AutofillManagerDelegate {
virtual void ShowRequestAutocompleteDialog(
const FormData& form,
const GURL& source_url,
- const base::Callback<void(const FormStructure*)>& callback) = 0;
+ const ResultCallback& callback) = 0;
// Shows an Autofill popup with the given |values|, |labels|, |icons|, and
// |identifiers| for the element at |element_bounds|. |delegate| will be

Powered by Google App Engine
This is Rietveld 408576698