OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CHROMEOS_DOM_UI_INTERNET_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DOM_UI_INTERNET_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DOM_UI_INTERNET_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DOM_UI_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 12 matching lines...) Expand all Loading... |
23 virtual ~InternetOptionsHandler(); | 23 virtual ~InternetOptionsHandler(); |
24 | 24 |
25 // OptionsUIHandler implementation. | 25 // OptionsUIHandler implementation. |
26 virtual void GetLocalizedValues(DictionaryValue* localized_strings); | 26 virtual void GetLocalizedValues(DictionaryValue* localized_strings); |
27 | 27 |
28 // DOMMessageHandler implementation. | 28 // DOMMessageHandler implementation. |
29 virtual void RegisterMessages(); | 29 virtual void RegisterMessages(); |
30 | 30 |
31 // NetworkLibrary::Observer implementation. | 31 // NetworkLibrary::Observer implementation. |
32 virtual void NetworkChanged(chromeos::NetworkLibrary* obj); | 32 virtual void NetworkChanged(chromeos::NetworkLibrary* obj); |
33 virtual void CellularDataPlanChanged(chromeos::NetworkLibrary* obj); | 33 virtual void CellularDataPlanChanged(const std::string& service_path, |
| 34 const chromeos::CellularDataPlanList& plans); |
34 | 35 |
35 private: | 36 private: |
36 // Passes data needed to show details overlay for network. | 37 // Passes data needed to show details overlay for network. |
37 // |args| will be [ network_type, service_path, command ] | 38 // |args| will be [ network_type, service_path, command ] |
38 // And command is one of 'options', 'connect', disconnect', or 'forget' | 39 // And command is one of 'options', 'connect', disconnect', or 'forget' |
39 void ButtonClickCallback(const ListValue* args); | 40 void ButtonClickCallback(const ListValue* args); |
40 // Initiates cellular plan data refresh. The results from libcros will | 41 // Initiates cellular plan data refresh. The results from libcros will |
41 // be passed through CellularDataPlanChanged() callback method. | 42 // be passed through CellularDataPlanChanged() callback method. |
42 // |args| will be [ service_path ] | 43 // |args| will be [ service_path ] |
43 void RefreshCellularPlanCallback(const ListValue* args); | 44 void RefreshCellularPlanCallback(const ListValue* args); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 ListValue* GetWiredList(); | 79 ListValue* GetWiredList(); |
79 // Creates the map of wireless networks | 80 // Creates the map of wireless networks |
80 ListValue* GetWirelessList(); | 81 ListValue* GetWirelessList(); |
81 // Creates the map of remembered networks | 82 // Creates the map of remembered networks |
82 ListValue* GetRememberedList(); | 83 ListValue* GetRememberedList(); |
83 | 84 |
84 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); | 85 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); |
85 }; | 86 }; |
86 | 87 |
87 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_INTERNET_OPTIONS_HANDLER_H_ | 88 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_INTERNET_OPTIONS_HANDLER_H_ |
OLD | NEW |