| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DOM_UI_ADVANCED_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_ADVANCED_OPTIONS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_DOM_UI_ADVANCED_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_DOM_UI_ADVANCED_OPTIONS_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/dom_ui/options_ui.h" | 9 #include "chrome/browser/dom_ui/options_ui.h" |
| 10 #include "chrome/browser/pref_member.h" | 10 #include "chrome/browser/pref_member.h" |
| 11 #include "chrome/browser/shell_dialogs.h" | 11 #include "chrome/browser/shell_dialogs.h" |
| 12 | 12 |
| 13 #if defined(OS_MACOSX) |
| 14 #include "chrome/browser/dom_ui/advanced_options_utils_mac.h" |
| 15 #endif |
| 16 |
| 13 // Chrome advanced options page UI handler. | 17 // Chrome advanced options page UI handler. |
| 14 class AdvancedOptionsHandler | 18 class AdvancedOptionsHandler |
| 15 : public OptionsPageUIHandler, | 19 : public OptionsPageUIHandler, |
| 16 public SelectFileDialog::Listener { | 20 public SelectFileDialog::Listener { |
| 17 public: | 21 public: |
| 18 AdvancedOptionsHandler(); | 22 AdvancedOptionsHandler(); |
| 19 virtual ~AdvancedOptionsHandler(); | 23 virtual ~AdvancedOptionsHandler(); |
| 20 | 24 |
| 21 // OptionsUIHandler implementation. | 25 // OptionsUIHandler implementation. |
| 22 virtual void GetLocalizedValues(DictionaryValue* localized_strings); | 26 virtual void GetLocalizedValues(DictionaryValue* localized_strings); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 46 #if defined(OS_WIN) | 50 #if defined(OS_WIN) |
| 47 // Callback for the "Check SSL Revocation" checkbox. This is needed so we | 51 // Callback for the "Check SSL Revocation" checkbox. This is needed so we |
| 48 // can support manual handling on Windows. | 52 // can support manual handling on Windows. |
| 49 void HandleCheckRevocationCheckbox(const Value* value); | 53 void HandleCheckRevocationCheckbox(const Value* value); |
| 50 | 54 |
| 51 // Callback for the "Use SSL2" checkbox. This is needed so we can support | 55 // Callback for the "Use SSL2" checkbox. This is needed so we can support |
| 52 // manual handling on Windows. | 56 // manual handling on Windows. |
| 53 void HandleUseSSL2Checkbox(const Value* value); | 57 void HandleUseSSL2Checkbox(const Value* value); |
| 54 #endif | 58 #endif |
| 55 | 59 |
| 56 #if !defined(OS_CHROMEOS) | |
| 57 // Callback for the "showNetworkProxySettings" message. This will invoke | |
| 58 // an appropriate dialog for configuring proxy settings. | |
| 59 void ShowNetworkProxySettings(const Value* value); | |
| 60 | |
| 61 // Callback for the "showManageSSLCertificates" message. This will invoke | |
| 62 // an appropriate certificate management action based on the platform. | |
| 63 void ShowManageSSLCertificates(const Value* value); | |
| 64 #endif | |
| 65 | |
| 66 // Setup the download path based on user preferences. | 60 // Setup the download path based on user preferences. |
| 67 void SetupDownloadLocationPath(); | 61 void SetupDownloadLocationPath(); |
| 68 | 62 |
| 69 // Setup the enabled state of the reset button. | 63 // Setup the enabled state of the reset button. |
| 70 void SetupAutoOpenFileTypesDisabledAttribute(); | 64 void SetupAutoOpenFileTypesDisabledAttribute(); |
| 71 | 65 |
| 72 #if defined(OS_WIN) | 66 #if defined(OS_WIN) |
| 73 // Setup the checked state SSL related checkboxes. | 67 // Setup the checked state SSL related checkboxes. |
| 74 void SetupSSLConfigSettings(); | 68 void SetupSSLConfigSettings(); |
| 75 #endif | 69 #endif |
| 76 | 70 |
| 71 // Callback for the "showNetworkProxySettings" message. This will invoke |
| 72 // an appropriate dialog for configuring proxy settings. |
| 73 void ShowNetworkProxySettings(const Value* value); |
| 74 |
| 75 // Callback for the "showManageSSLCertificates" message. This will invoke |
| 76 // an appropriate certificate management action based on the platform. |
| 77 void ShowManageSSLCertificates(const Value* value); |
| 78 |
| 77 scoped_refptr<SelectFileDialog> select_folder_dialog_; | 79 scoped_refptr<SelectFileDialog> select_folder_dialog_; |
| 78 FilePathPrefMember default_download_location_; | 80 FilePathPrefMember default_download_location_; |
| 79 StringPrefMember auto_open_files_; | 81 StringPrefMember auto_open_files_; |
| 80 | 82 |
| 81 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); | 83 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); |
| 82 }; | 84 }; |
| 83 | 85 |
| 84 #endif // CHROME_BROWSER_DOM_UI_ADVANCED_OPTIONS_HANDLER_H_ | 86 #endif // CHROME_BROWSER_DOM_UI_ADVANCED_OPTIONS_HANDLER_H_ |
| OLD | NEW |