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

Unified Diff: chrome/browser/autofill/autocheckout_manager.h

Issue 11539003: Pop up requestAutocomplete UI when autofill server hints chrome client that it is in a multipage au… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Resolve with AutofillDialogController refactoring. Created 7 years, 11 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: chrome/browser/autofill/autocheckout_manager.h
diff --git a/chrome/browser/autofill/autocheckout_manager.h b/chrome/browser/autofill/autocheckout_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..548042bd643b1d469a1b9a538685981976b8817d
--- /dev/null
+++ b/chrome/browser/autofill/autocheckout_manager.h
@@ -0,0 +1,42 @@
+// Copyright (c) 2013 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_AUTOCHECKOUT_MANAGER_H_
+#define CHROME_BROWSER_AUTOFILL_AUTOCHECKOUT_MANAGER_H_
+
+#include <string>
+
+#include "base/memory/weak_ptr.h"
+
+class AutofillManager;
+class FormStructure;
+class GURL;
+
+struct FormData;
+
+namespace content {
+struct SSLStatus;
+}
+
+class AutocheckoutManager {
+ public:
+ explicit AutocheckoutManager(AutofillManager* autofill_manager);
+
+ virtual void ShowAutocheckoutDialog(const GURL& frame_url,
+ const content::SSLStatus& ssl_status);
+
+ virtual ~AutocheckoutManager();
+
+ private:
+
+ // Callback called from AutofillDialogController on filling up the UI form.
+ void ReturnAutocheckoutData(const FormStructure* result);
+
+ AutofillManager* autofill_manager_; // WEAK; owns us
+ base::WeakPtrFactory<AutocheckoutManager> weak_ptr_factory_;
+
+ DISALLOW_COPY_AND_ASSIGN(AutocheckoutManager);
+};
+
+#endif // CHROME_BROWSER_AUTOFILL_AUTOCHECKOUT_MANAGER_H_
« no previous file with comments | « chrome/browser/autofill/autocheckout_infobar_delegate.cc ('k') | chrome/browser/autofill/autocheckout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698