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 struct FormFieldData; | |
Ilya Sherman
2013/01/18 01:45:02
nit: Not needed.
Raman Kakilate
2013/01/18 04:22:30
Done.
| |
18 | |
19 namespace content { | |
20 class WebContents; | |
Ilya Sherman
2013/01/18 01:45:02
nit: Not needed.
Raman Kakilate
2013/01/18 04:22:30
Done.
| |
21 struct SSLStatus; | |
22 } | |
23 | |
24 class AutocheckoutManager { | |
25 public: | |
26 explicit AutocheckoutManager(AutofillManager* autofill_manager); | |
27 | |
28 virtual void ShowAutocheckoutDialog(const GURL& frame_url, | |
29 const content::SSLStatus& ssl_status); | |
30 | |
31 ~AutocheckoutManager(); | |
Ilya Sherman
2013/01/18 01:45:02
nit: Since this class includes a virtual method, t
Raman Kakilate
2013/01/18 04:22:30
Done.
| |
32 | |
33 private: | |
34 | |
35 // Callback called from AutofillDialogController on filling up the UI form. | |
36 void ReturnAutocheckoutData(const FormStructure* result); | |
37 | |
38 AutofillManager* autofill_manager_; | |
Ilya Sherman
2013/01/18 01:45:02
nit: Please add the following comment: "// WEAK; o
Raman Kakilate
2013/01/18 04:22:30
Done.
| |
39 base::WeakPtrFactory<AutocheckoutManager> weak_ptr_factory_; | |
40 | |
41 DISALLOW_COPY_AND_ASSIGN(AutocheckoutManager); | |
42 }; | |
43 | |
44 #endif // CHROME_BROWSER_AUTOFILL_AUTOCHECKOUT_MANAGER_H_ | |
OLD | NEW |