| 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_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "chrome/browser/autofill/personal_data_manager_observer.h" | 11 #include "chrome/browser/autofill/personal_data_manager_observer.h" |
| 12 #include "chrome/browser/ui/webui/options2/options_ui.h" | 12 #include "chrome/browser/ui/webui/options2/options_ui.h" |
| 13 | 13 |
| 14 class PersonalDataManager; | 14 class PersonalDataManager; |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class DictionaryValue; | 17 class DictionaryValue; |
| 18 class ListValue; | 18 class ListValue; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace options2 { | 21 namespace options { |
| 22 | 22 |
| 23 class AutofillOptionsHandler : public OptionsPageUIHandler, | 23 class AutofillOptionsHandler : public OptionsPageUIHandler, |
| 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; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // Returns true if |personal_data_| is non-null and loaded. | 85 // Returns true if |personal_data_| is non-null and loaded. |
| 86 bool IsPersonalDataLoaded() const; | 86 bool IsPersonalDataLoaded() const; |
| 87 | 87 |
| 88 // 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. |
| 89 // Unowned pointer, may not be NULL. | 89 // Unowned pointer, may not be NULL. |
| 90 PersonalDataManager* personal_data_; | 90 PersonalDataManager* personal_data_; |
| 91 | 91 |
| 92 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler); | 92 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler); |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 } // namespace options2 | 95 } // namespace options |
| 96 | 96 |
| 97 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER_H_ | 97 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_AUTOFILL_OPTIONS_HANDLER_H_ |
| OLD | NEW |