| OLD | NEW |
| 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_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/chromeos/cros/network_library.h" | 10 #include "chrome/browser/chromeos/cros/network_library.h" |
| 11 #include "chrome/browser/ui/webui/options/chromeos/cros_options_page_ui_handler.
h" | 11 #include "chrome/browser/ui/webui/options/options_ui.h" |
| 12 #include "content/public/browser/notification_registrar.h" | 12 #include "content/public/browser/notification_registrar.h" |
| 13 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
| 14 | 14 |
| 15 class SkBitmap; | 15 class SkBitmap; |
| 16 namespace views { | 16 namespace views { |
| 17 class WidgetDelegate; | 17 class WidgetDelegate; |
| 18 } | 18 } |
| 19 | 19 |
| 20 // ChromeOS internet options page UI handler. | 20 // ChromeOS internet options page UI handler. |
| 21 class InternetOptionsHandler | 21 class InternetOptionsHandler |
| 22 : public chromeos::CrosOptionsPageUIHandler, | 22 : public OptionsPageUIHandler, |
| 23 public chromeos::NetworkLibrary::NetworkManagerObserver, | 23 public chromeos::NetworkLibrary::NetworkManagerObserver, |
| 24 public chromeos::NetworkLibrary::NetworkObserver, | 24 public chromeos::NetworkLibrary::NetworkObserver, |
| 25 public chromeos::NetworkLibrary::CellularDataPlanObserver { | 25 public chromeos::NetworkLibrary::CellularDataPlanObserver { |
| 26 public: | 26 public: |
| 27 InternetOptionsHandler(); | 27 InternetOptionsHandler(); |
| 28 virtual ~InternetOptionsHandler(); | 28 virtual ~InternetOptionsHandler(); |
| 29 | 29 |
| 30 // OptionsPageUIHandler implementation. | 30 // OptionsPageUIHandler implementation. |
| 31 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings); | 31 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings); |
| 32 virtual void Initialize(); | 32 virtual void Initialize(); |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 | 140 |
| 141 // Convenience pointer to netwrok library (will not change). | 141 // Convenience pointer to netwrok library (will not change). |
| 142 chromeos::NetworkLibrary* cros_; | 142 chromeos::NetworkLibrary* cros_; |
| 143 | 143 |
| 144 content::NotificationRegistrar registrar_; | 144 content::NotificationRegistrar registrar_; |
| 145 | 145 |
| 146 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); | 146 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); |
| 147 }; | 147 }; |
| 148 | 148 |
| 149 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ | 149 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ |
| OLD | NEW |