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

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

Issue 3419020: dom-ui settings: properly implement the 'metrics reporting' checkbox.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Rebase to r60664. Created 10 years, 2 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/prefs/pref_member.h" 10 #include "chrome/browser/prefs/pref_member.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 void HandleSelectDownloadLocation(const ListValue* args); 43 void HandleSelectDownloadLocation(const ListValue* args);
44 44
45 // Callback for the "autoOpenFileTypesResetToDefault" message. This will 45 // Callback for the "autoOpenFileTypesResetToDefault" message. This will
46 // remove all auto-open file-type settings. 46 // remove all auto-open file-type settings.
47 void HandleAutoOpenButton(const ListValue* args); 47 void HandleAutoOpenButton(const ListValue* args);
48 48
49 // Callback for the "resetToDefaults" message. This will ask the user if 49 // Callback for the "resetToDefaults" message. This will ask the user if
50 // they want to reset all options to their default values. 50 // they want to reset all options to their default values.
51 void HandleResetToDefaults(const ListValue* args); 51 void HandleResetToDefaults(const ListValue* args);
52 52
53 // Callback for the "metricsReportingCheckboxAction" message. This is called
54 // if the user toggles the metrics reporting checkbox.
55 void HandleMetricsReportingCheckbox(const ListValue* args);
53 #if defined(OS_WIN) 56 #if defined(OS_WIN)
54 // Callback for the "Check SSL Revocation" checkbox. This is needed so we 57 // Callback for the "Check SSL Revocation" checkbox. This is needed so we
55 // can support manual handling on Windows. 58 // can support manual handling on Windows.
56 void HandleCheckRevocationCheckbox(const ListValue* args); 59 void HandleCheckRevocationCheckbox(const ListValue* args);
57 60
58 // Callback for the "Use SSL2" checkbox. This is needed so we can support 61 // Callback for the "Use SSL2" checkbox. This is needed so we can support
59 // manual handling on Windows. 62 // manual handling on Windows.
60 void HandleUseSSL2Checkbox(const ListValue* args); 63 void HandleUseSSL2Checkbox(const ListValue* args);
61 64
62 // Callback for the "Show Gears Settings" button. 65 // Callback for the "Show Gears Settings" button.
63 void HandleShowGearsSettings(const ListValue* args); 66 void HandleShowGearsSettings(const ListValue* args);
64 #endif 67 #endif
65 68
66 #if !defined(OS_CHROMEOS) 69 #if !defined(OS_CHROMEOS)
67 // Callback for the "showNetworkProxySettings" message. This will invoke 70 // Callback for the "showNetworkProxySettings" message. This will invoke
68 // an appropriate dialog for configuring proxy settings. 71 // an appropriate dialog for configuring proxy settings.
69 void ShowNetworkProxySettings(const ListValue* args); 72 void ShowNetworkProxySettings(const ListValue* args);
70 73
71 // Callback for the "showManageSSLCertificates" message. This will invoke 74 // Callback for the "showManageSSLCertificates" message. This will invoke
72 // an appropriate certificate management action based on the platform. 75 // an appropriate certificate management action based on the platform.
73 void ShowManageSSLCertificates(const ListValue* args); 76 void ShowManageSSLCertificates(const ListValue* args);
74 #endif 77 #endif
75 78
79 // Setup the checked state for the metrics reporting checkbox.
80 void SetupMetricsReportingCheckbox(bool user_changed);
81
76 // Setup the download path based on user preferences. 82 // Setup the download path based on user preferences.
77 void SetupDownloadLocationPath(); 83 void SetupDownloadLocationPath();
78 84
79 // Setup the enabled state of the reset button. 85 // Setup the enabled state of the reset button.
80 void SetupAutoOpenFileTypesDisabledAttribute(); 86 void SetupAutoOpenFileTypesDisabledAttribute();
81 87
82 // Setup the proxy settings section UI. 88 // Setup the proxy settings section UI.
83 void SetupProxySettingsSection(); 89 void SetupProxySettingsSection();
84 90
85 #if defined(OS_WIN) 91 #if defined(OS_WIN)
86 // Setup the checked state SSL related checkboxes. 92 // Setup the checked state for SSL related checkboxes.
87 void SetupSSLConfigSettings(); 93 void SetupSSLConfigSettings();
88 #endif 94 #endif
89 95
90 scoped_refptr<SelectFileDialog> select_folder_dialog_; 96 scoped_refptr<SelectFileDialog> select_folder_dialog_;
97 BooleanPrefMember enable_metrics_recording_;
91 FilePathPrefMember default_download_location_; 98 FilePathPrefMember default_download_location_;
92 StringPrefMember auto_open_files_; 99 StringPrefMember auto_open_files_;
93 scoped_ptr<PrefSetObserver> proxy_prefs_; 100 scoped_ptr<PrefSetObserver> proxy_prefs_;
94 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; 101 scoped_ptr<OptionsManagedBannerHandler> banner_handler_;
95 102
96 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); 103 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler);
97 }; 104 };
98 105
99 #endif // CHROME_BROWSER_DOM_UI_ADVANCED_OPTIONS_HANDLER_H_ 106 #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