| 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_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/prefs/pref_member.h" | 9 #include "chrome/browser/prefs/pref_member.h" |
| 10 #include "chrome/browser/prefs/pref_set_observer.h" | 10 #include "chrome/browser/prefs/pref_set_observer.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 // Callback for the "metricsReportingCheckboxAction" message. This is called | 60 // Callback for the "metricsReportingCheckboxAction" message. This is called |
| 61 // if the user toggles the metrics reporting checkbox. | 61 // if the user toggles the metrics reporting checkbox. |
| 62 void HandleMetricsReportingCheckbox(const ListValue* args); | 62 void HandleMetricsReportingCheckbox(const ListValue* args); |
| 63 | 63 |
| 64 // Callback for the "defaultFontSizeAction" message. This is called if the | 64 // Callback for the "defaultFontSizeAction" message. This is called if the |
| 65 // user changes the default font size. |args| is an array that contains | 65 // user changes the default font size. |args| is an array that contains |
| 66 // one item, the font size as a numeric value. | 66 // one item, the font size as a numeric value. |
| 67 void HandleDefaultFontSize(const ListValue* args); | 67 void HandleDefaultFontSize(const ListValue* args); |
| 68 | 68 |
| 69 #if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_FREEBSD) || \ | 69 // Callback for the "Check for server certificate revocation" checkbox. This |
| 70 defined(OS_OPENBSD) | 70 // is called if the user toggles the "Check for server certificate revocation" |
| 71 // Callback for the "Check SSL Revocation" checkbox. This is needed so we | 71 // checkbox. |
| 72 // can support manual handling on Windows. | |
| 73 void HandleCheckRevocationCheckbox(const ListValue* args); | 72 void HandleCheckRevocationCheckbox(const ListValue* args); |
| 74 | 73 |
| 75 // Callback for the "Use SSL3" checkbox. This is needed so we can support | 74 // Callback for the "Use SSL 3.0" checkbox. This is called if the user toggles |
| 76 // manual handling on Windows. | 75 // the "Use SSL 3.0" checkbox. |
| 77 void HandleUseSSL3Checkbox(const ListValue* args); | 76 void HandleUseSSL3Checkbox(const ListValue* args); |
| 78 | 77 |
| 79 // Callback for the "Use TLS1" checkbox. This is needed so we can support | 78 // Callback for the "Use TLS 1.0" checkbox. This is called if the user toggles |
| 80 // manual handling on Windows. | 79 // the "Use TLS 1.0" checkbox. |
| 81 void HandleUseTLS1Checkbox(const ListValue* args); | 80 void HandleUseTLS1Checkbox(const ListValue* args); |
| 82 #endif | |
| 83 | 81 |
| 84 #if !defined(OS_CHROMEOS) | 82 #if !defined(OS_CHROMEOS) |
| 85 // Callback for the "showNetworkProxySettings" message. This will invoke | 83 // Callback for the "showNetworkProxySettings" message. This will invoke |
| 86 // an appropriate dialog for configuring proxy settings. | 84 // an appropriate dialog for configuring proxy settings. |
| 87 void ShowNetworkProxySettings(const ListValue* args); | 85 void ShowNetworkProxySettings(const ListValue* args); |
| 88 #endif | 86 #endif |
| 89 | 87 |
| 90 #if !defined(USE_NSS) | 88 #if !defined(USE_NSS) |
| 91 // Callback for the "showManageSSLCertificates" message. This will invoke | 89 // Callback for the "showManageSSLCertificates" message. This will invoke |
| 92 // an appropriate certificate management action based on the platform. | 90 // an appropriate certificate management action based on the platform. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 141 |
| 144 // Setup the pref whether to prompt for download location every time. | 142 // Setup the pref whether to prompt for download location every time. |
| 145 void SetupPromptForDownload(); | 143 void SetupPromptForDownload(); |
| 146 | 144 |
| 147 // Setup the enabled state of the reset button. | 145 // Setup the enabled state of the reset button. |
| 148 void SetupAutoOpenFileTypesDisabledAttribute(); | 146 void SetupAutoOpenFileTypesDisabledAttribute(); |
| 149 | 147 |
| 150 // Setup the proxy settings section UI. | 148 // Setup the proxy settings section UI. |
| 151 void SetupProxySettingsSection(); | 149 void SetupProxySettingsSection(); |
| 152 | 150 |
| 153 #if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_FREEBSD) || \ | |
| 154 defined(OS_OPENBSD) | |
| 155 // Setup the checked state for SSL related checkboxes. | 151 // Setup the checked state for SSL related checkboxes. |
| 156 void SetupSSLConfigSettings(); | 152 void SetupSSLConfigSettings(); |
| 157 #endif | |
| 158 | 153 |
| 159 scoped_refptr<SelectFileDialog> select_folder_dialog_; | 154 scoped_refptr<SelectFileDialog> select_folder_dialog_; |
| 160 | 155 |
| 161 #if !defined(OS_CHROMEOS) | 156 #if !defined(OS_CHROMEOS) |
| 162 BooleanPrefMember enable_metrics_recording_; | 157 BooleanPrefMember enable_metrics_recording_; |
| 163 StringPrefMember cloud_print_proxy_email_; | 158 StringPrefMember cloud_print_proxy_email_; |
| 164 BooleanPrefMember cloud_print_proxy_enabled_; | 159 BooleanPrefMember cloud_print_proxy_enabled_; |
| 165 bool cloud_print_proxy_ui_enabled_; | 160 bool cloud_print_proxy_ui_enabled_; |
| 166 scoped_ptr<CloudPrintSetupHandler> cloud_print_setup_handler_; | 161 scoped_ptr<CloudPrintSetupHandler> cloud_print_setup_handler_; |
| 167 #endif | 162 #endif |
| 168 | 163 |
| 169 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_OPENBSD) | |
| 170 // SSLConfigService prefs. | 164 // SSLConfigService prefs. |
| 171 BooleanPrefMember rev_checking_enabled_; | 165 BooleanPrefMember rev_checking_enabled_; |
| 172 BooleanPrefMember ssl3_enabled_; | 166 BooleanPrefMember ssl3_enabled_; |
| 173 BooleanPrefMember tls1_enabled_; | 167 BooleanPrefMember tls1_enabled_; |
| 174 #endif | |
| 175 | 168 |
| 176 #if defined(ENABLE_REMOTING) && !defined(OS_CHROMEOS) | 169 #if defined(ENABLE_REMOTING) && !defined(OS_CHROMEOS) |
| 177 remoting::RemotingOptionsHandler remoting_options_handler_; | 170 remoting::RemotingOptionsHandler remoting_options_handler_; |
| 178 #endif | 171 #endif |
| 179 | 172 |
| 180 FilePathPrefMember default_download_location_; | 173 FilePathPrefMember default_download_location_; |
| 181 BooleanPrefMember ask_for_save_location_; | 174 BooleanPrefMember ask_for_save_location_; |
| 182 StringPrefMember auto_open_files_; | 175 StringPrefMember auto_open_files_; |
| 183 IntegerPrefMember default_font_size_; | 176 IntegerPrefMember default_font_size_; |
| 184 scoped_ptr<PrefSetObserver> proxy_prefs_; | 177 scoped_ptr<PrefSetObserver> proxy_prefs_; |
| 185 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; | 178 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; |
| 186 | 179 |
| 187 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); | 180 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); |
| 188 }; | 181 }; |
| 189 | 182 |
| 190 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ | 183 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ |
| OLD | NEW |