| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/ui/webui/options2/options_ui2.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 namespace options2 { |
| 15 class CoreChromeOSOptionsHandler; | 15 class CoreChromeOSOptionsHandler; |
| 16 class ProxyHandler; | 16 class ProxyHandler; |
| 17 } | 17 } |
| 18 | 18 |
| 19 // 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 |
| 20 // performance. | 20 // performance. |
| 21 class ProxySettingsUI : public content::WebUIController, | 21 class ProxySettingsUI : public content::WebUIController, |
| 22 public ::options2::OptionsPageUIHandlerHost { | 22 public ::options2::OptionsPageUIHandlerHost { |
| 23 public: | 23 public: |
| 24 explicit ProxySettingsUI(content::WebUI* web_ui); | 24 explicit ProxySettingsUI(content::WebUI* web_ui); |
| 25 virtual ~ProxySettingsUI(); | 25 virtual ~ProxySettingsUI(); |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 // Overridden from OptionsPageUIHandlerHost: | 28 // Overridden from OptionsPageUIHandlerHost: |
| 29 virtual void InitializeHandlers() OVERRIDE; | 29 virtual void InitializePages() OVERRIDE; |
| 30 | 30 |
| 31 options2::ProxyHandler* proxy_handler_; // Weak ptr. | 31 options2::ProxyHandler* proxy_handler_; // Weak ptr. |
| 32 options2::CoreChromeOSOptionsHandler* core_handler_; // WeakPtr. | 32 options2::CoreChromeOSOptionsHandler* core_handler_; // WeakPtr. |
| 33 | 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(ProxySettingsUI); | 34 DISALLOW_COPY_AND_ASSIGN(ProxySettingsUI); |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 } // namespace chromeos | 37 } // namespace chromeos |
| 38 | 38 |
| 39 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_PROXY_SETTINGS_UI_H_ | 39 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_PROXY_SETTINGS_UI_H_ |
| OLD | NEW |