| 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_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 "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "chrome/browser/chromeos/cros/network_constants.h" | 11 #include "chrome/browser/chromeos/cros/network_constants.h" |
| 12 #include "chrome/browser/chromeos/cros/network_ip_config.h" |
| 12 #include "chrome/browser/chromeos/cros/network_library.h" | 13 #include "chrome/browser/chromeos/cros/network_library.h" |
| 13 #include "chrome/browser/chromeos/cros/network_ui_data.h" | 14 #include "chrome/browser/chromeos/cros/network_ui_data.h" |
| 14 #include "chrome/browser/ui/webui/options/options_ui.h" | 15 #include "chrome/browser/ui/webui/options/options_ui.h" |
| 15 #include "content/public/browser/notification_registrar.h" | 16 #include "content/public/browser/notification_registrar.h" |
| 16 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
| 17 | 18 |
| 18 class Browser; | 19 class Browser; |
| 19 | 20 |
| 20 namespace gfx { | 21 namespace gfx { |
| 21 class ImageSkia; | 22 class ImageSkia; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 void ToggleAirplaneModeCallback(const ListValue* args); | 122 void ToggleAirplaneModeCallback(const ListValue* args); |
| 122 | 123 |
| 123 // Populates the ui with the details of the given device path. This forces | 124 // Populates the ui with the details of the given device path. This forces |
| 124 // an overlay to be displayed in the UI. | 125 // an overlay to be displayed in the UI. |
| 125 void PopulateDictionaryDetails(const chromeos::Network* network); | 126 void PopulateDictionaryDetails(const chromeos::Network* network); |
| 126 // This is the second half of PopulateDictionaryDetails after the asynchronous | 127 // This is the second half of PopulateDictionaryDetails after the asynchronous |
| 127 // request for Shill's service properties. | 128 // request for Shill's service properties. |
| 128 void PopulateDictionaryDetailsCallback( | 129 void PopulateDictionaryDetailsCallback( |
| 129 const chromeos::Network* network, | 130 const chromeos::Network* network, |
| 130 const std::string& service_path, | 131 const std::string& service_path, |
| 131 const base::DictionaryValue* shill_properties); | 132 scoped_ptr<base::DictionaryValue> shill_properties); |
| 133 void PopulateIPConfigsCallback( |
| 134 const chromeos::Network* network, |
| 135 scoped_ptr<base::DictionaryValue> shill_properties, |
| 136 const chromeos::NetworkIPConfigVector& ipconfigs, |
| 137 const std::string& hardware_address); |
| 132 void PopulateWifiDetails(const chromeos::WifiNetwork* wifi, | 138 void PopulateWifiDetails(const chromeos::WifiNetwork* wifi, |
| 133 base::DictionaryValue* dictionary); | 139 base::DictionaryValue* dictionary); |
| 134 void PopulateWimaxDetails(const chromeos::WimaxNetwork* wimax, | 140 void PopulateWimaxDetails(const chromeos::WimaxNetwork* wimax, |
| 135 base::DictionaryValue* dictionary); | 141 base::DictionaryValue* dictionary); |
| 136 void PopulateCellularDetails(const chromeos::CellularNetwork* cellular, | 142 void PopulateCellularDetails(const chromeos::CellularNetwork* cellular, |
| 137 base::DictionaryValue* dictionary); | 143 base::DictionaryValue* dictionary); |
| 138 | 144 |
| 139 // Converts CellularDataPlan structure into dictionary for JS. Formats plan | 145 // Converts CellularDataPlan structure into dictionary for JS. Formats plan |
| 140 // settings into human readable texts. | 146 // settings into human readable texts. |
| 141 base::DictionaryValue* CellularDataPlanToDictionary( | 147 base::DictionaryValue* CellularDataPlanToDictionary( |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // without worrying that they will actually try to happen after the lifetime | 186 // without worrying that they will actually try to happen after the lifetime |
| 181 // of this object. | 187 // of this object. |
| 182 base::WeakPtrFactory<InternetOptionsHandler> weak_factory_; | 188 base::WeakPtrFactory<InternetOptionsHandler> weak_factory_; |
| 183 | 189 |
| 184 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); | 190 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); |
| 185 }; | 191 }; |
| 186 | 192 |
| 187 } // namespace options | 193 } // namespace options |
| 188 | 194 |
| 189 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ | 195 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ |
| OLD | NEW |