OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // |args| - an array containing the GUID of the credit card followed by the | 75 // |args| - an array containing the GUID of the credit card followed by the |
76 // credit card data. | 76 // credit card data. |
77 void SetCreditCard(const base::ListValue* args); | 77 void SetCreditCard(const base::ListValue* args); |
78 | 78 |
79 // Validates a list of phone numbers. The resulting validated list of | 79 // Validates a list of phone numbers. The resulting validated list of |
80 // numbers is then sent back to the WebUI. | 80 // numbers is then sent back to the WebUI. |
81 // |args| - an array containing the index of the modified or added number, the | 81 // |args| - an array containing the index of the modified or added number, the |
82 // array of numbers, and the country code string set on the profile. | 82 // array of numbers, and the country code string set on the profile. |
83 void ValidatePhoneNumbers(const base::ListValue* args); | 83 void ValidatePhoneNumbers(const base::ListValue* args); |
84 | 84 |
| 85 // Returns true if |personal_data_| is non-null and loaded. |
| 86 bool IsPersonalDataLoaded() const; |
| 87 |
85 // The personal data manager, used to load Autofill profiles and credit cards. | 88 // The personal data manager, used to load Autofill profiles and credit cards. |
86 // Unowned pointer, may not be NULL. | 89 // Unowned pointer, may not be NULL. |
87 PersonalDataManager* personal_data_; | 90 PersonalDataManager* personal_data_; |
88 | 91 |
89 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler); | 92 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler); |
90 }; | 93 }; |
91 | 94 |
92 } // namespace options2 | 95 } // namespace options2 |
93 | 96 |
94 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_H_ | 97 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_H_ |
OLD | NEW |