Index: chrome/browser/dom_ui/options/autofill_options_handler.h |
diff --git a/chrome/browser/dom_ui/options/autofill_options_handler.h b/chrome/browser/dom_ui/options/autofill_options_handler.h |
index 52de3e21ccf47a5e68b6535d4d67b8ce87950bca..26a7bfde880348e55cf3c8a2fefe482fb0cb63e3 100644 |
--- a/chrome/browser/dom_ui/options/autofill_options_handler.h |
+++ b/chrome/browser/dom_ui/options/autofill_options_handler.h |
@@ -4,75 +4,9 @@ |
#ifndef CHROME_BROWSER_DOM_UI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ |
#define CHROME_BROWSER_DOM_UI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ |
+#pragma once |
-#include <string> |
- |
-#include "chrome/browser/autofill/personal_data_manager.h" |
-#include "chrome/browser/dom_ui/options/options_ui.h" |
- |
-class DictionaryValue; |
-class ListValue; |
- |
-class AutoFillOptionsHandler : public OptionsPageUIHandler, |
- public PersonalDataManager::Observer { |
- public: |
- AutoFillOptionsHandler(); |
- virtual ~AutoFillOptionsHandler(); |
- |
- // OptionsUIHandler implementation. |
- virtual void GetLocalizedValues(DictionaryValue* localized_strings); |
- virtual void Initialize(); |
- virtual void RegisterMessages(); |
- |
- // PersonalDataManager::Observer implementation. |
- virtual void OnPersonalDataLoaded(); |
- virtual void OnPersonalDataChanged(); |
- |
- private: |
- // Loads the strings for the address and credit card overlays. |
- void SetAddressOverlayStrings(DictionaryValue* localized_strings); |
- void SetCreditCardOverlayStrings(DictionaryValue* localized_strings); |
- |
- // Loads AutoFill addresses and credit cards using the PersonalDataManager. |
- void LoadAutoFillData(); |
- |
- // Removes an address from the PersonalDataManager. |
- // |args| - A string, the GUID of the address to remove. |
- void RemoveAddress(const ListValue* args); |
- |
- // Removes a credit card from the PersonalDataManager. |
- // |args| - A string, the GUID of the credit card to remove. |
- void RemoveCreditCard(const ListValue* args); |
- |
- // Requests profile data for a specific address. Calls into WebUI with the |
- // loaded profile data to open the address editor. |
- // |args| - A string, the GUID of the address to load. |
- void LoadAddressEditor(const ListValue* args); |
- |
- // Requests profile data for a specific credit card. Calls into WebUI with the |
- // loaded profile data to open the credit card editor. |
- // |args| - A string, the GUID of the credit card to load. |
- void LoadCreditCardEditor(const ListValue* args); |
- |
- // Adds or updates an address, depending on the GUID of the profile. If the |
- // GUID is empty, a new address is added to the WebDatabase; otherwise, the |
- // address with the matching GUID is updated. Called from WebUI. |
- // |args| - an array containing the GUID of the address followed by the |
- // address data. |
- void SetAddress(const ListValue* args); |
- |
- // Adds or updates a credit card, depending on the GUID of the profile. If the |
- // GUID is empty, a new credit card is added to the WebDatabase; otherwise, |
- // the credit card with the matching GUID is updated. Called from WebUI. |
- // |args| - an array containing the GUID of the credit card followed by the |
- // credit card data. |
- void SetCreditCard(const ListValue* args); |
- |
- // The personal data manager, used to load AutoFill profiles and credit cards. |
- // Unowned pointer, may not be NULL. |
- PersonalDataManager* personal_data_; |
- |
- DISALLOW_COPY_AND_ASSIGN(AutoFillOptionsHandler); |
-}; |
+#include "chrome/browser/webui/options/autofill_options_handler.h" |
+// TODO(tfarina): remove this file once all includes have been updated. |
#endif // CHROME_BROWSER_DOM_UI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ |