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

Side by Side Diff: chrome/browser/ui/webui/options/advanced_options_handler.h

Issue 6685008: Cloud print signin crash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase past Windows views options removal. Created 9 years, 9 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
OLDNEW
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"
11 #include "chrome/browser/printing/cloud_print/cloud_print_setup_flow.h" 11 #include "chrome/browser/printing/cloud_print/cloud_print_setup_handler.h"
12 #include "chrome/browser/remoting/remoting_options_handler.h" 12 #include "chrome/browser/remoting/remoting_options_handler.h"
13 #include "chrome/browser/ui/shell_dialogs.h" 13 #include "chrome/browser/ui/shell_dialogs.h"
14 #include "chrome/browser/ui/webui/options/options_ui.h" 14 #include "chrome/browser/ui/webui/options/options_ui.h"
15 15
16 class OptionsManagedBannerHandler; 16 class OptionsManagedBannerHandler;
17 class CloudPrintSetupHandler;
17 18
18 // Chrome advanced options page UI handler. 19 // Chrome advanced options page UI handler.
19 class AdvancedOptionsHandler 20 class AdvancedOptionsHandler
20 : public OptionsPageUIHandler, 21 : public OptionsPageUIHandler,
21 public SelectFileDialog::Listener, 22 public SelectFileDialog::Listener,
22 public CloudPrintSetupFlow::Delegate { 23 public CloudPrintSetupHandler::Delegate {
23 public: 24 public:
24 AdvancedOptionsHandler(); 25 AdvancedOptionsHandler();
25 virtual ~AdvancedOptionsHandler(); 26 virtual ~AdvancedOptionsHandler();
26 27
27 // OptionsPageUIHandler implementation. 28 // OptionsPageUIHandler implementation.
28 virtual void GetLocalizedValues(DictionaryValue* localized_strings); 29 virtual void GetLocalizedValues(DictionaryValue* localized_strings);
29 virtual void Initialize(); 30 virtual void Initialize();
30 31
31 // WebUIMessageHandler implementation. 32 // WebUIMessageHandler implementation.
32 virtual WebUIMessageHandler* Attach(WebUI* web_ui); 33 virtual WebUIMessageHandler* Attach(WebUI* web_ui);
33 virtual void RegisterMessages(); 34 virtual void RegisterMessages();
34 35
35 // NotificationObserver implementation. 36 // NotificationObserver implementation.
36 virtual void Observe(NotificationType type, 37 virtual void Observe(NotificationType type,
37 const NotificationSource& source, 38 const NotificationSource& source,
38 const NotificationDetails& details); 39 const NotificationDetails& details);
39 40
40 // SelectFileDialog::Listener implementation 41 // SelectFileDialog::Listener implementation
41 virtual void FileSelected(const FilePath& path, int index, void* params); 42 virtual void FileSelected(const FilePath& path, int index, void* params);
42 43
43 // CloudPrintSetupFlow::Delegate implementation. 44 // CloudPrintSetupHandler::Delegate implementation.
44 virtual void OnDialogClosed(); 45 virtual void OnCloudPrintSetupClosed();
45 46
46 private: 47 private:
47 // Callback for the "selectDownloadLocation" message. This will prompt 48 // Callback for the "selectDownloadLocation" message. This will prompt
48 // the user for a destination folder using platform-specific APIs. 49 // the user for a destination folder using platform-specific APIs.
49 void HandleSelectDownloadLocation(const ListValue* args); 50 void HandleSelectDownloadLocation(const ListValue* args);
50 51
51 // Callback for the "promptForDownloadAction" message. This will set 52 // Callback for the "promptForDownloadAction" message. This will set
52 // the ask for save location pref accordingly. 53 // the ask for save location pref accordingly.
53 void HandlePromptForDownload(const ListValue* args); 54 void HandlePromptForDownload(const ListValue* args);
54 55
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 void SetupSSLConfigSettings(); 154 void SetupSSLConfigSettings();
154 #endif 155 #endif
155 156
156 scoped_refptr<SelectFileDialog> select_folder_dialog_; 157 scoped_refptr<SelectFileDialog> select_folder_dialog_;
157 158
158 #if !defined(OS_CHROMEOS) 159 #if !defined(OS_CHROMEOS)
159 BooleanPrefMember enable_metrics_recording_; 160 BooleanPrefMember enable_metrics_recording_;
160 StringPrefMember cloud_print_proxy_email_; 161 StringPrefMember cloud_print_proxy_email_;
161 BooleanPrefMember cloud_print_proxy_enabled_; 162 BooleanPrefMember cloud_print_proxy_enabled_;
162 bool cloud_print_proxy_ui_enabled_; 163 bool cloud_print_proxy_ui_enabled_;
164 scoped_ptr<CloudPrintSetupHandler> cloud_print_setup_handler_;
163 #endif 165 #endif
164 166
165 #if defined(ENABLE_REMOTING) && !defined(OS_CHROMEOS) 167 #if defined(ENABLE_REMOTING) && !defined(OS_CHROMEOS)
166 remoting::RemotingOptionsHandler remoting_options_handler_; 168 remoting::RemotingOptionsHandler remoting_options_handler_;
167 #endif 169 #endif
168 170
169 FilePathPrefMember default_download_location_; 171 FilePathPrefMember default_download_location_;
170 BooleanPrefMember ask_for_save_location_; 172 BooleanPrefMember ask_for_save_location_;
171 StringPrefMember auto_open_files_; 173 StringPrefMember auto_open_files_;
172 IntegerPrefMember default_font_size_; 174 IntegerPrefMember default_font_size_;
173 IntegerPrefMember default_fixed_font_size_; 175 IntegerPrefMember default_fixed_font_size_;
174 scoped_ptr<PrefSetObserver> proxy_prefs_; 176 scoped_ptr<PrefSetObserver> proxy_prefs_;
175 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; 177 scoped_ptr<OptionsManagedBannerHandler> banner_handler_;
176 178
177 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); 179 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler);
178 }; 180 };
179 181
180 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ 182 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698