Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: chrome/browser/ui/webui/options/advanced_options_handler.h

Issue 6693077: Read and Write SSL3, TLS1 and Cert revocation SSL preferences (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 SSL Revocation" checkbox. This is called if the
70 defined(OS_OPENBSD) 70 // user toggles the "Check SSL Revocation" checkbox.
wtc 2011/04/05 18:40:37 Please understand why this ifdef has OS_WIN but no
ramant (doing other things) 2011/04/05 21:01:36 We used to have special code in advanced_option_ha
wtc 2011/04/05 18:40:37 The names of the checkboxes are not exactly right.
ramant (doing other things) 2011/04/05 21:01:36 Done.
71 // Callback for the "Check SSL Revocation" checkbox. This is needed so we
72 // can support manual handling on Windows.
73 void HandleCheckRevocationCheckbox(const ListValue* args); 71 void HandleCheckRevocationCheckbox(const ListValue* args);
74 72
75 // Callback for the "Use SSL3" checkbox. This is needed so we can support 73 // Callback for the "Use SSL3" checkbox. This is called if the user toggles
76 // manual handling on Windows. 74 // the "Use SSL3" checkbox.
77 void HandleUseSSL3Checkbox(const ListValue* args); 75 void HandleUseSSL3Checkbox(const ListValue* args);
78 76
79 // Callback for the "Use TLS1" checkbox. This is needed so we can support 77 // Callback for the "Use TLS1" checkbox. This is called if the user toggles
80 // manual handling on Windows. 78 // the "Use TLS1" checkbox.
81 void HandleUseTLS1Checkbox(const ListValue* args); 79 void HandleUseTLS1Checkbox(const ListValue* args);
82 #endif
83 80
84 #if !defined(OS_CHROMEOS) 81 #if !defined(OS_CHROMEOS)
85 // Callback for the "showNetworkProxySettings" message. This will invoke 82 // Callback for the "showNetworkProxySettings" message. This will invoke
86 // an appropriate dialog for configuring proxy settings. 83 // an appropriate dialog for configuring proxy settings.
87 void ShowNetworkProxySettings(const ListValue* args); 84 void ShowNetworkProxySettings(const ListValue* args);
88 #endif 85 #endif
89 86
90 #if !defined(USE_NSS) 87 #if !defined(USE_NSS)
91 // Callback for the "showManageSSLCertificates" message. This will invoke 88 // Callback for the "showManageSSLCertificates" message. This will invoke
92 // an appropriate certificate management action based on the platform. 89 // an appropriate certificate management action based on the platform.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 140
144 // Setup the pref whether to prompt for download location every time. 141 // Setup the pref whether to prompt for download location every time.
145 void SetupPromptForDownload(); 142 void SetupPromptForDownload();
146 143
147 // Setup the enabled state of the reset button. 144 // Setup the enabled state of the reset button.
148 void SetupAutoOpenFileTypesDisabledAttribute(); 145 void SetupAutoOpenFileTypesDisabledAttribute();
149 146
150 // Setup the proxy settings section UI. 147 // Setup the proxy settings section UI.
151 void SetupProxySettingsSection(); 148 void SetupProxySettingsSection();
152 149
153 #if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_FREEBSD) || \
154 defined(OS_OPENBSD)
155 // Setup the checked state for SSL related checkboxes. 150 // Setup the checked state for SSL related checkboxes.
156 void SetupSSLConfigSettings(); 151 void SetupSSLConfigSettings();
157 #endif
158 152
159 scoped_refptr<SelectFileDialog> select_folder_dialog_; 153 scoped_refptr<SelectFileDialog> select_folder_dialog_;
160 154
161 #if !defined(OS_CHROMEOS) 155 #if !defined(OS_CHROMEOS)
162 BooleanPrefMember enable_metrics_recording_; 156 BooleanPrefMember enable_metrics_recording_;
163 StringPrefMember cloud_print_proxy_email_; 157 StringPrefMember cloud_print_proxy_email_;
164 BooleanPrefMember cloud_print_proxy_enabled_; 158 BooleanPrefMember cloud_print_proxy_enabled_;
165 bool cloud_print_proxy_ui_enabled_; 159 bool cloud_print_proxy_ui_enabled_;
166 scoped_ptr<CloudPrintSetupHandler> cloud_print_setup_handler_; 160 scoped_ptr<CloudPrintSetupHandler> cloud_print_setup_handler_;
167 #endif 161 #endif
168 162
169 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_OPENBSD)
170 // SSLConfigService prefs. 163 // SSLConfigService prefs.
171 BooleanPrefMember rev_checking_enabled_; 164 BooleanPrefMember rev_checking_enabled_;
172 BooleanPrefMember ssl3_enabled_; 165 BooleanPrefMember ssl3_enabled_;
173 BooleanPrefMember tls1_enabled_; 166 BooleanPrefMember tls1_enabled_;
174 #endif
175 167
176 #if defined(ENABLE_REMOTING) && !defined(OS_CHROMEOS) 168 #if defined(ENABLE_REMOTING) && !defined(OS_CHROMEOS)
177 remoting::RemotingOptionsHandler remoting_options_handler_; 169 remoting::RemotingOptionsHandler remoting_options_handler_;
178 #endif 170 #endif
179 171
180 FilePathPrefMember default_download_location_; 172 FilePathPrefMember default_download_location_;
181 BooleanPrefMember ask_for_save_location_; 173 BooleanPrefMember ask_for_save_location_;
182 StringPrefMember auto_open_files_; 174 StringPrefMember auto_open_files_;
183 IntegerPrefMember default_font_size_; 175 IntegerPrefMember default_font_size_;
184 scoped_ptr<PrefSetObserver> proxy_prefs_; 176 scoped_ptr<PrefSetObserver> proxy_prefs_;
185 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; 177 scoped_ptr<OptionsManagedBannerHandler> banner_handler_;
186 178
187 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); 179 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler);
188 }; 180 };
189 181
190 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ 182 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698