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 | |
17 // Chrome advanced options page UI handler. | 13 // Chrome advanced options page UI handler. |
18 class AdvancedOptionsHandler | 14 class AdvancedOptionsHandler |
19 : public OptionsPageUIHandler, | 15 : public OptionsPageUIHandler, |
20 public SelectFileDialog::Listener { | 16 public SelectFileDialog::Listener { |
21 public: | 17 public: |
22 AdvancedOptionsHandler(); | 18 AdvancedOptionsHandler(); |
23 virtual ~AdvancedOptionsHandler(); | 19 virtual ~AdvancedOptionsHandler(); |
24 | 20 |
25 // OptionsUIHandler implementation. | 21 // OptionsUIHandler implementation. |
26 virtual void GetLocalizedValues(DictionaryValue* localized_strings); | 22 virtual void GetLocalizedValues(DictionaryValue* localized_strings); |
(...skipping 23 matching lines...) Expand all Loading... |
50 #if defined(OS_WIN) | 46 #if defined(OS_WIN) |
51 // Callback for the "Check SSL Revocation" checkbox. This is needed so we | 47 // Callback for the "Check SSL Revocation" checkbox. This is needed so we |
52 // can support manual handling on Windows. | 48 // can support manual handling on Windows. |
53 void HandleCheckRevocationCheckbox(const Value* value); | 49 void HandleCheckRevocationCheckbox(const Value* value); |
54 | 50 |
55 // Callback for the "Use SSL2" checkbox. This is needed so we can support | 51 // Callback for the "Use SSL2" checkbox. This is needed so we can support |
56 // manual handling on Windows. | 52 // manual handling on Windows. |
57 void HandleUseSSL2Checkbox(const Value* value); | 53 void HandleUseSSL2Checkbox(const Value* value); |
58 #endif | 54 #endif |
59 | 55 |
| 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 |
60 // Setup the download path based on user preferences. | 66 // Setup the download path based on user preferences. |
61 void SetupDownloadLocationPath(); | 67 void SetupDownloadLocationPath(); |
62 | 68 |
63 // Setup the enabled state of the reset button. | 69 // Setup the enabled state of the reset button. |
64 void SetupAutoOpenFileTypesDisabledAttribute(); | 70 void SetupAutoOpenFileTypesDisabledAttribute(); |
65 | 71 |
66 #if defined(OS_WIN) | 72 #if defined(OS_WIN) |
67 // Setup the checked state SSL related checkboxes. | 73 // Setup the checked state SSL related checkboxes. |
68 void SetupSSLConfigSettings(); | 74 void SetupSSLConfigSettings(); |
69 #endif | 75 #endif |
70 | 76 |
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 | |
79 scoped_refptr<SelectFileDialog> select_folder_dialog_; | 77 scoped_refptr<SelectFileDialog> select_folder_dialog_; |
80 FilePathPrefMember default_download_location_; | 78 FilePathPrefMember default_download_location_; |
81 StringPrefMember auto_open_files_; | 79 StringPrefMember auto_open_files_; |
82 | 80 |
83 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); | 81 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); |
84 }; | 82 }; |
85 | 83 |
86 #endif // CHROME_BROWSER_DOM_UI_ADVANCED_OPTIONS_HANDLER_H_ | 84 #endif // CHROME_BROWSER_DOM_UI_ADVANCED_OPTIONS_HANDLER_H_ |
OLD | NEW |