| 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" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // NetworkLibrary::NetworkManagerObserver implementation. | 37 // NetworkLibrary::NetworkManagerObserver implementation. |
| 38 virtual void OnNetworkManagerChanged(chromeos::NetworkLibrary* network_lib); | 38 virtual void OnNetworkManagerChanged(chromeos::NetworkLibrary* network_lib); |
| 39 // NetworkLibrary::NetworkObserver implementation. | 39 // NetworkLibrary::NetworkObserver implementation. |
| 40 virtual void OnNetworkChanged(chromeos::NetworkLibrary* network_lib, | 40 virtual void OnNetworkChanged(chromeos::NetworkLibrary* network_lib, |
| 41 const chromeos::Network* network); | 41 const chromeos::Network* network); |
| 42 // NetworkLibrary::CellularDataPlanObserver implementation. | 42 // NetworkLibrary::CellularDataPlanObserver implementation. |
| 43 virtual void OnCellularDataPlanChanged(chromeos::NetworkLibrary* network_lib); | 43 virtual void OnCellularDataPlanChanged(chromeos::NetworkLibrary* network_lib); |
| 44 | 44 |
| 45 // NotificationObserver implementation. | 45 // NotificationObserver implementation. |
| 46 virtual void Observe(NotificationType type, | 46 virtual void Observe(int type, |
| 47 const NotificationSource& source, | 47 const NotificationSource& source, |
| 48 const NotificationDetails& details) OVERRIDE; | 48 const NotificationDetails& details) OVERRIDE; |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 // Opens a modal popup dialog. | 51 // Opens a modal popup dialog. |
| 52 void CreateModalPopup(views::WidgetDelegate* view); | 52 void CreateModalPopup(views::WidgetDelegate* view); |
| 53 gfx::NativeWindow GetNativeWindow() const; | 53 gfx::NativeWindow GetNativeWindow() const; |
| 54 | 54 |
| 55 // Passes data needed to show details overlay for network. | 55 // Passes data needed to show details overlay for network. |
| 56 // |args| will be [ network_type, service_path, command ] | 56 // |args| will be [ network_type, service_path, command ] |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 133 |
| 134 // Convenience pointer to netwrok library (will not change). | 134 // Convenience pointer to netwrok library (will not change). |
| 135 chromeos::NetworkLibrary* cros_; | 135 chromeos::NetworkLibrary* cros_; |
| 136 | 136 |
| 137 NotificationRegistrar registrar_; | 137 NotificationRegistrar registrar_; |
| 138 | 138 |
| 139 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); | 139 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ | 142 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ |
| OLD | NEW |