Index: chrome/browser/dom_ui/options/advanced_options_handler.h |
diff --git a/chrome/browser/dom_ui/options/advanced_options_handler.h b/chrome/browser/dom_ui/options/advanced_options_handler.h |
index 22ceebe833f88290b68f08374de407881304e1a8..4b61de13cc41eb296e023891a2711dfb8e87f281 100644 |
--- a/chrome/browser/dom_ui/options/advanced_options_handler.h |
+++ b/chrome/browser/dom_ui/options/advanced_options_handler.h |
@@ -6,178 +6,7 @@ |
#define CHROME_BROWSER_DOM_UI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ |
#pragma once |
-#include "chrome/browser/dom_ui/options/options_ui.h" |
-#include "chrome/browser/prefs/pref_member.h" |
-#include "chrome/browser/prefs/pref_set_observer.h" |
-#include "chrome/browser/printing/cloud_print/cloud_print_setup_flow.h" |
-#include "chrome/browser/remoting/remoting_options_handler.h" |
-#include "chrome/browser/ui/shell_dialogs.h" |
- |
-class OptionsManagedBannerHandler; |
- |
-// Chrome advanced options page UI handler. |
-class AdvancedOptionsHandler |
- : public OptionsPageUIHandler, |
- public SelectFileDialog::Listener, |
- public CloudPrintSetupFlow::Delegate { |
- public: |
- AdvancedOptionsHandler(); |
- virtual ~AdvancedOptionsHandler(); |
- |
- // OptionsUIHandler implementation. |
- virtual void GetLocalizedValues(DictionaryValue* localized_strings); |
- virtual void Initialize(); |
- |
- // WebUIMessageHandler implementation. |
- virtual WebUIMessageHandler* Attach(WebUI* web_ui); |
- virtual void RegisterMessages(); |
- |
- // NotificationObserver implementation. |
- virtual void Observe(NotificationType type, |
- const NotificationSource& source, |
- const NotificationDetails& details); |
- |
- // SelectFileDialog::Listener implementation |
- virtual void FileSelected(const FilePath& path, int index, void* params); |
- |
- // CloudPrintSetupFlow::Delegate implementation. |
- virtual void OnDialogClosed(); |
- |
- private: |
- // Callback for the "selectDownloadLocation" message. This will prompt |
- // the user for a destination folder using platform-specific APIs. |
- void HandleSelectDownloadLocation(const ListValue* args); |
- |
- // Callback for the "promptForDownloadAction" message. This will set |
- // the ask for save location pref accordingly. |
- void HandlePromptForDownload(const ListValue* args); |
- |
- // Callback for the "autoOpenFileTypesResetToDefault" message. This will |
- // remove all auto-open file-type settings. |
- void HandleAutoOpenButton(const ListValue* args); |
- |
- // Callback for the "metricsReportingCheckboxAction" message. This is called |
- // if the user toggles the metrics reporting checkbox. |
- void HandleMetricsReportingCheckbox(const ListValue* args); |
- |
- // Callback for the "defaultFontSizeAction" message. This is called if the |
- // user changes the default font size. |args| is an array that contains |
- // one item, the font size as a numeric value. |
- void HandleDefaultFontSize(const ListValue* args); |
- |
-#if defined(OS_WIN) |
- // Callback for the "Check SSL Revocation" checkbox. This is needed so we |
- // can support manual handling on Windows. |
- void HandleCheckRevocationCheckbox(const ListValue* args); |
- |
- // Callback for the "Use SSL3" checkbox. This is needed so we can support |
- // manual handling on Windows. |
- void HandleUseSSL3Checkbox(const ListValue* args); |
- |
- // Callback for the "Use TLS1" checkbox. This is needed so we can support |
- // manual handling on Windows. |
- void HandleUseTLS1Checkbox(const ListValue* args); |
- |
- // Callback for the "Show Gears Settings" button. |
- void HandleShowGearsSettings(const ListValue* args); |
-#endif |
- |
-#if !defined(OS_CHROMEOS) |
- // Callback for the "showNetworkProxySettings" message. This will invoke |
- // an appropriate dialog for configuring proxy settings. |
- void ShowNetworkProxySettings(const ListValue* args); |
-#endif |
- |
-#if !defined(USE_NSS) |
- // Callback for the "showManageSSLCertificates" message. This will invoke |
- // an appropriate certificate management action based on the platform. |
- void ShowManageSSLCertificates(const ListValue* args); |
-#endif |
- |
-#if !defined(OS_CHROMEOS) |
- // Callback for the Sign in to Cloud Print button. This will start |
- // the authentication process. |
- void ShowCloudPrintSetupDialog(const ListValue* args); |
- |
- // Callback for the Disable Cloud Print button. This will sign out |
- // of cloud print. |
- void HandleDisableCloudPrintProxy(const ListValue* args); |
- |
- // Callback for the Cloud Print manage button. This will open a new |
- // tab pointed at the management URL. |
- void ShowCloudPrintManagePage(const ListValue* args); |
- |
- // Pings the service to send us it's current notion of the enabled state. |
- void RefreshCloudPrintStatusFromService(); |
- |
- // Setup the enabled or disabled state of the cloud print proxy |
- // management UI. |
- void SetupCloudPrintProxySection(); |
- |
- // Remove cloud print proxy section if cloud print proxy management UI is |
- // disabled. |
- void RemoveCloudPrintProxySection(); |
- |
-#endif |
- |
-#if defined(ENABLE_REMOTING) && !defined(OS_CHROMEOS) |
- // Removes remoting section. Called if remoting is not enabled. |
- void RemoveRemotingSection(); |
- |
- // Callback for Setup Remoting button. |
- void ShowRemotingSetupDialog(const ListValue* args); |
- |
- // Disable Remoting. |
- void DisableRemoting(const ListValue* args); |
-#endif |
- |
- // Setup the checked state for the metrics reporting checkbox. |
- void SetupMetricsReportingCheckbox(); |
- |
- // Setup the visibility for the metrics reporting setting. |
- void SetupMetricsReportingSettingVisibility(); |
- |
- void SetupFontSizeLabel(); |
- |
- // Setup the download path based on user preferences. |
- void SetupDownloadLocationPath(); |
- |
- // Setup the pref whether to prompt for download location every time. |
- void SetupPromptForDownload(); |
- |
- // Setup the enabled state of the reset button. |
- void SetupAutoOpenFileTypesDisabledAttribute(); |
- |
- // Setup the proxy settings section UI. |
- void SetupProxySettingsSection(); |
- |
-#if defined(OS_WIN) |
- // Setup the checked state for SSL related checkboxes. |
- void SetupSSLConfigSettings(); |
-#endif |
- |
- scoped_refptr<SelectFileDialog> select_folder_dialog_; |
- |
-#if !defined(OS_CHROMEOS) |
- BooleanPrefMember enable_metrics_recording_; |
- StringPrefMember cloud_print_proxy_email_; |
- BooleanPrefMember cloud_print_proxy_enabled_; |
- bool cloud_print_proxy_ui_enabled_; |
-#endif |
- |
-#if defined(ENABLE_REMOTING) && !defined(OS_CHROMEOS) |
- remoting::RemotingOptionsHandler remoting_options_handler_; |
-#endif |
- |
- FilePathPrefMember default_download_location_; |
- BooleanPrefMember ask_for_save_location_; |
- StringPrefMember auto_open_files_; |
- IntegerPrefMember default_font_size_; |
- IntegerPrefMember default_fixed_font_size_; |
- scoped_ptr<PrefSetObserver> proxy_prefs_; |
- scoped_ptr<OptionsManagedBannerHandler> banner_handler_; |
- |
- DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); |
-}; |
+#include "chrome/browser/webui/options/advanced_options_handler.h" |
+// TODO(tfarina): remove this file once all includes have been updated. |
#endif // CHROME_BROWSER_DOM_UI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ |