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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // Setup the enabled or disabled state of the cloud print proxy | 109 // Setup the enabled or disabled state of the cloud print proxy |
110 // management UI. | 110 // management UI. |
111 void SetupCloudPrintProxySection(); | 111 void SetupCloudPrintProxySection(); |
112 | 112 |
113 // 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 |
114 // disabled. | 114 // disabled. |
115 void RemoveCloudPrintProxySection(); | 115 void RemoveCloudPrintProxySection(); |
116 | 116 |
117 #endif | 117 #endif |
118 | 118 |
| 119 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) |
| 120 // Sets up the checked state for the "Continue running background apps..." |
| 121 // checkbox. |
| 122 void SetupBackgroundModeSettings(); |
| 123 |
| 124 // Callback for the "Continue running background apps..." checkbox. |
| 125 void HandleBackgroundModeCheckbox(const ListValue* args); |
| 126 #endif |
| 127 |
119 // Setup the checked state for the metrics reporting checkbox. | 128 // Setup the checked state for the metrics reporting checkbox. |
120 void SetupMetricsReportingCheckbox(); | 129 void SetupMetricsReportingCheckbox(); |
121 | 130 |
122 // Setup the visibility for the metrics reporting setting. | 131 // Setup the visibility for the metrics reporting setting. |
123 void SetupMetricsReportingSettingVisibility(); | 132 void SetupMetricsReportingSettingVisibility(); |
124 | 133 |
125 void SetupFontSizeLabel(); | 134 void SetupFontSizeLabel(); |
126 | 135 |
127 // Setup the download path based on user preferences. | 136 // Setup the download path based on user preferences. |
128 void SetupDownloadLocationPath(); | 137 void SetupDownloadLocationPath(); |
(...skipping 18 matching lines...) Expand all Loading... |
147 BooleanPrefMember cloud_print_proxy_enabled_; | 156 BooleanPrefMember cloud_print_proxy_enabled_; |
148 bool cloud_print_proxy_ui_enabled_; | 157 bool cloud_print_proxy_ui_enabled_; |
149 scoped_ptr<CloudPrintSetupHandler> cloud_print_setup_handler_; | 158 scoped_ptr<CloudPrintSetupHandler> cloud_print_setup_handler_; |
150 #endif | 159 #endif |
151 | 160 |
152 // SSLConfigService prefs. | 161 // SSLConfigService prefs. |
153 BooleanPrefMember rev_checking_enabled_; | 162 BooleanPrefMember rev_checking_enabled_; |
154 BooleanPrefMember ssl3_enabled_; | 163 BooleanPrefMember ssl3_enabled_; |
155 BooleanPrefMember tls1_enabled_; | 164 BooleanPrefMember tls1_enabled_; |
156 | 165 |
| 166 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) |
| 167 BooleanPrefMember background_mode_enabled_; |
| 168 #endif |
| 169 |
157 FilePathPrefMember default_download_location_; | 170 FilePathPrefMember default_download_location_; |
158 BooleanPrefMember ask_for_save_location_; | 171 BooleanPrefMember ask_for_save_location_; |
159 BooleanPrefMember allow_file_selection_dialogs_; | 172 BooleanPrefMember allow_file_selection_dialogs_; |
160 StringPrefMember auto_open_files_; | 173 StringPrefMember auto_open_files_; |
161 IntegerPrefMember default_font_size_; | 174 IntegerPrefMember default_font_size_; |
162 scoped_ptr<PrefSetObserver> proxy_prefs_; | 175 scoped_ptr<PrefSetObserver> proxy_prefs_; |
163 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; | 176 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; |
164 | 177 |
165 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); | 178 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); |
166 }; | 179 }; |
167 | 180 |
168 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ | 181 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ |
OLD | NEW |