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

Side by Side Diff: chrome/browser/ui/webui/chromeos/proxy_settings_ui.h

Issue 9814030: get rid of old options pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 8 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_CHROMEOS_PROXY_SETTINGS_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_PROXY_SETTINGS_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_PROXY_SETTINGS_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_PROXY_SETTINGS_UI_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/webui/options/options_ui.h" 9 #include "chrome/browser/ui/webui/options2/options_ui2.h"
10 #include "content/public/browser/web_ui_controller.h" 10 #include "content/public/browser/web_ui_controller.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 13
14 namespace options2 {
14 class CoreChromeOSOptionsHandler; 15 class CoreChromeOSOptionsHandler;
15 class ProxyHandler; 16 class ProxyHandler;
17 }
16 18
17 // A WebUI to host proxy settings splitted from settings page for better 19 // A WebUI to host proxy settings splitted from settings page for better
18 // performance. 20 // performance.
19 class ProxySettingsUI : public content::WebUIController, 21 class ProxySettingsUI : public content::WebUIController,
20 public OptionsPageUIHandlerHost { 22 public ::options2::OptionsPageUIHandlerHost {
21 public: 23 public:
22 explicit ProxySettingsUI(content::WebUI* web_ui); 24 explicit ProxySettingsUI(content::WebUI* web_ui);
23 virtual ~ProxySettingsUI(); 25 virtual ~ProxySettingsUI();
24 26
25 private: 27 private:
26 // Overridden from OptionsPageUIHandlerHost: 28 // Overridden from OptionsPageUIHandlerHost:
27 virtual void InitializeHandlers() OVERRIDE; 29 virtual void InitializeHandlers() OVERRIDE;
28 30
29 ProxyHandler* proxy_handler_; // Weak ptr. 31 options2::ProxyHandler* proxy_handler_; // Weak ptr.
30 CoreChromeOSOptionsHandler* core_handler_; // WeakPtr. 32 options2::CoreChromeOSOptionsHandler* core_handler_; // WeakPtr.
31 33
32 DISALLOW_COPY_AND_ASSIGN(ProxySettingsUI); 34 DISALLOW_COPY_AND_ASSIGN(ProxySettingsUI);
33 }; 35 };
34 36
35 } // namespace chromeos 37 } // namespace chromeos
36 38
37 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_PROXY_SETTINGS_UI_H_ 39 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_PROXY_SETTINGS_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698