OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOCHECKOUT_MANAGER_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_AUTOCHECKOUT_MANAGER_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/memory/weak_ptr.h" |
| 11 |
| 12 class AutofillManager; |
| 13 class FormStructure; |
| 14 class GURL; |
| 15 |
| 16 struct FormData; |
| 17 |
| 18 namespace content { |
| 19 struct SSLStatus; |
| 20 } |
| 21 |
| 22 class AutocheckoutManager { |
| 23 public: |
| 24 explicit AutocheckoutManager(AutofillManager* autofill_manager); |
| 25 |
| 26 virtual void ShowAutocheckoutDialog(const GURL& frame_url, |
| 27 const content::SSLStatus& ssl_status); |
| 28 |
| 29 virtual ~AutocheckoutManager(); |
| 30 |
| 31 private: |
| 32 |
| 33 // Callback called from AutofillDialogController on filling up the UI form. |
| 34 void ReturnAutocheckoutData(const FormStructure* result); |
| 35 |
| 36 AutofillManager* autofill_manager_; // WEAK; owns us |
| 37 base::WeakPtrFactory<AutocheckoutManager> weak_ptr_factory_; |
| 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(AutocheckoutManager); |
| 40 }; |
| 41 |
| 42 #endif // CHROME_BROWSER_AUTOFILL_AUTOCHECKOUT_MANAGER_H_ |
OLD | NEW |