| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 13 matching lines...) Expand all Loading... |
| 24 public PersonalDataManagerObserver { | 24 public PersonalDataManagerObserver { |
| 25 public: | 25 public: |
| 26 AutofillOptionsHandler(); | 26 AutofillOptionsHandler(); |
| 27 virtual ~AutofillOptionsHandler(); | 27 virtual ~AutofillOptionsHandler(); |
| 28 | 28 |
| 29 // OptionsPageUIHandler implementation. | 29 // OptionsPageUIHandler implementation. |
| 30 virtual void GetLocalizedValues( | 30 virtual void GetLocalizedValues( |
| 31 base::DictionaryValue* localized_strings) OVERRIDE; | 31 base::DictionaryValue* localized_strings) OVERRIDE; |
| 32 virtual void Initialize() OVERRIDE; | 32 virtual void Initialize() OVERRIDE; |
| 33 virtual void RegisterMessages() OVERRIDE; | 33 virtual void RegisterMessages() OVERRIDE; |
| 34 virtual void SendPageValues() OVERRIDE; |
| 34 | 35 |
| 35 // PersonalDataManagerObserver implementation. | 36 // PersonalDataManagerObserver implementation. |
| 36 virtual void OnPersonalDataChanged() OVERRIDE; | 37 virtual void OnPersonalDataChanged() OVERRIDE; |
| 37 | 38 |
| 38 private: | 39 private: |
| 39 // Loads the strings for the address and credit card overlays. | 40 // Loads the strings for the address and credit card overlays. |
| 40 void SetAddressOverlayStrings(base::DictionaryValue* localized_strings); | 41 void SetAddressOverlayStrings(base::DictionaryValue* localized_strings); |
| 41 void SetCreditCardOverlayStrings(base::DictionaryValue* localized_strings); | 42 void SetCreditCardOverlayStrings(base::DictionaryValue* localized_strings); |
| 42 | 43 |
| 43 // Loads Autofill addresses and credit cards using the PersonalDataManager. | 44 // Loads Autofill addresses and credit cards using the PersonalDataManager. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // The personal data manager, used to load Autofill profiles and credit cards. | 85 // The personal data manager, used to load Autofill profiles and credit cards. |
| 85 // Unowned pointer, may not be NULL. | 86 // Unowned pointer, may not be NULL. |
| 86 PersonalDataManager* personal_data_; | 87 PersonalDataManager* personal_data_; |
| 87 | 88 |
| 88 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler); | 89 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler); |
| 89 }; | 90 }; |
| 90 | 91 |
| 91 } // namespace options2 | 92 } // namespace options2 |
| 92 | 93 |
| 93 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_H_ | 94 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER2_H_ |
| OLD | NEW |