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" |
11 #include "chrome/browser/printing/cloud_print/cloud_print_setup_handler.h" | 11 #include "chrome/browser/printing/cloud_print/cloud_print_setup_handler.h" |
12 #include "chrome/browser/remoting/remoting_options_handler.h" | |
13 #include "chrome/browser/ui/shell_dialogs.h" | 12 #include "chrome/browser/ui/shell_dialogs.h" |
14 #include "chrome/browser/ui/webui/options/options_ui.h" | 13 #include "chrome/browser/ui/webui/options/options_ui.h" |
15 | 14 |
16 class OptionsManagedBannerHandler; | 15 class OptionsManagedBannerHandler; |
17 class CloudPrintSetupHandler; | 16 class CloudPrintSetupHandler; |
18 | 17 |
19 // Chrome advanced options page UI handler. | 18 // Chrome advanced options page UI handler. |
20 class AdvancedOptionsHandler | 19 class AdvancedOptionsHandler |
21 : public OptionsPageUIHandler, | 20 : public OptionsPageUIHandler, |
22 public SelectFileDialog::Listener, | 21 public SelectFileDialog::Listener, |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // Setup the enabled or disabled state of the cloud print proxy | 109 // Setup the enabled or disabled state of the cloud print proxy |
111 // management UI. | 110 // management UI. |
112 void SetupCloudPrintProxySection(); | 111 void SetupCloudPrintProxySection(); |
113 | 112 |
114 // Remove cloud print proxy section if cloud print proxy management UI is | 113 // Remove cloud print proxy section if cloud print proxy management UI is |
115 // disabled. | 114 // disabled. |
116 void RemoveCloudPrintProxySection(); | 115 void RemoveCloudPrintProxySection(); |
117 | 116 |
118 #endif | 117 #endif |
119 | 118 |
120 #if defined(ENABLE_REMOTING) && !defined(OS_CHROMEOS) | |
121 // Removes remoting section. Called if remoting is not enabled. | |
122 void RemoveRemotingSection(); | |
123 | |
124 // Callback for Setup Remoting button. | |
125 void ShowRemotingSetupDialog(const ListValue* args); | |
126 | |
127 // Disable Remoting. | |
128 void DisableRemoting(const ListValue* args); | |
129 #endif | |
130 | |
131 // Setup the checked state for the metrics reporting checkbox. | 119 // Setup the checked state for the metrics reporting checkbox. |
132 void SetupMetricsReportingCheckbox(); | 120 void SetupMetricsReportingCheckbox(); |
133 | 121 |
134 // Setup the visibility for the metrics reporting setting. | 122 // Setup the visibility for the metrics reporting setting. |
135 void SetupMetricsReportingSettingVisibility(); | 123 void SetupMetricsReportingSettingVisibility(); |
136 | 124 |
137 void SetupFontSizeLabel(); | 125 void SetupFontSizeLabel(); |
138 | 126 |
139 // Setup the download path based on user preferences. | 127 // Setup the download path based on user preferences. |
140 void SetupDownloadLocationPath(); | 128 void SetupDownloadLocationPath(); |
(...skipping 18 matching lines...) Expand all Loading... |
159 BooleanPrefMember cloud_print_proxy_enabled_; | 147 BooleanPrefMember cloud_print_proxy_enabled_; |
160 bool cloud_print_proxy_ui_enabled_; | 148 bool cloud_print_proxy_ui_enabled_; |
161 scoped_ptr<CloudPrintSetupHandler> cloud_print_setup_handler_; | 149 scoped_ptr<CloudPrintSetupHandler> cloud_print_setup_handler_; |
162 #endif | 150 #endif |
163 | 151 |
164 // SSLConfigService prefs. | 152 // SSLConfigService prefs. |
165 BooleanPrefMember rev_checking_enabled_; | 153 BooleanPrefMember rev_checking_enabled_; |
166 BooleanPrefMember ssl3_enabled_; | 154 BooleanPrefMember ssl3_enabled_; |
167 BooleanPrefMember tls1_enabled_; | 155 BooleanPrefMember tls1_enabled_; |
168 | 156 |
169 #if defined(ENABLE_REMOTING) && !defined(OS_CHROMEOS) | |
170 remoting::RemotingOptionsHandler remoting_options_handler_; | |
171 #endif | |
172 | |
173 FilePathPrefMember default_download_location_; | 157 FilePathPrefMember default_download_location_; |
174 BooleanPrefMember ask_for_save_location_; | 158 BooleanPrefMember ask_for_save_location_; |
175 BooleanPrefMember allow_file_selection_dialogs_; | 159 BooleanPrefMember allow_file_selection_dialogs_; |
176 StringPrefMember auto_open_files_; | 160 StringPrefMember auto_open_files_; |
177 IntegerPrefMember default_font_size_; | 161 IntegerPrefMember default_font_size_; |
178 scoped_ptr<PrefSetObserver> proxy_prefs_; | 162 scoped_ptr<PrefSetObserver> proxy_prefs_; |
179 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; | 163 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; |
180 | 164 |
181 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); | 165 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); |
182 }; | 166 }; |
183 | 167 |
184 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ | 168 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ |
OLD | NEW |