| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include "chrome/browser/ui/webui/options2/options_ui.h" | 8 #include "chrome/browser/ui/webui/options2/options_ui.h" |
| 9 #include "content/public/browser/web_ui_controller.h" | 9 #include "content/public/browser/web_ui_controller.h" |
| 10 | 10 |
| 11 namespace chromeos { | 11 namespace chromeos { |
| 12 | 12 |
| 13 namespace options2 { | 13 namespace options { |
| 14 class CoreChromeOSOptionsHandler; | 14 class CoreChromeOSOptionsHandler; |
| 15 class ProxyHandler; | 15 class ProxyHandler; |
| 16 } | 16 } |
| 17 | 17 |
| 18 // A WebUI to host proxy settings splitted from settings page for better | 18 // A WebUI to host proxy settings splitted from settings page for better |
| 19 // performance. | 19 // performance. |
| 20 class ProxySettingsUI : public content::WebUIController, | 20 class ProxySettingsUI : public content::WebUIController, |
| 21 public ::options2::OptionsPageUIHandlerHost { | 21 public ::options::OptionsPageUIHandlerHost { |
| 22 public: | 22 public: |
| 23 explicit ProxySettingsUI(content::WebUI* web_ui); | 23 explicit ProxySettingsUI(content::WebUI* web_ui); |
| 24 virtual ~ProxySettingsUI(); | 24 virtual ~ProxySettingsUI(); |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 // Overridden from OptionsPageUIHandlerHost: | 27 // Overridden from OptionsPageUIHandlerHost: |
| 28 virtual void InitializeHandlers() OVERRIDE; | 28 virtual void InitializeHandlers() OVERRIDE; |
| 29 | 29 |
| 30 options2::ProxyHandler* proxy_handler_; // Weak ptr. | 30 options::ProxyHandler* proxy_handler_; // Weak ptr. |
| 31 options2::CoreChromeOSOptionsHandler* core_handler_; // WeakPtr. | 31 options::CoreChromeOSOptionsHandler* core_handler_; // WeakPtr. |
| 32 | 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(ProxySettingsUI); | 33 DISALLOW_COPY_AND_ASSIGN(ProxySettingsUI); |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 } // namespace chromeos | 36 } // namespace chromeos |
| 37 | 37 |
| 38 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_PROXY_SETTINGS_UI_H_ | 38 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_PROXY_SETTINGS_UI_H_ |
| OLD | NEW |