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

Side by Side Diff: chrome/browser/dom_ui/advanced_options_handler.h

Issue 2884047: Revert 53990 - - Implement proxy settings dialog for Linux/Windows.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/dom_ui/advanced_options_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/dom_ui/advanced_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698