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...) 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(const std::string& service_path, | 33 virtual void CellularDataPlanChanged(chromeos::NetworkLibrary* obj); |
34 const chromeos::CellularDataPlanList& plans); | |
35 | 34 |
36 private: | 35 private: |
37 // Passes data needed to show details overlay for network. | 36 // Passes data needed to show details overlay for network. |
38 // |args| will be [ network_type, service_path, command ] | 37 // |args| will be [ network_type, service_path, command ] |
39 // And command is one of 'options', 'connect', disconnect', or 'forget' | 38 // And command is one of 'options', 'connect', disconnect', or 'forget' |
40 void ButtonClickCallback(const ListValue* args); | 39 void ButtonClickCallback(const ListValue* args); |
41 // Initiates cellular plan data refresh. The results from libcros will | 40 // Initiates cellular plan data refresh. The results from libcros will |
42 // be passed through CellularDataPlanChanged() callback method. | 41 // be passed through CellularDataPlanChanged() callback method. |
43 // |args| will be [ service_path ] | 42 // |args| will be [ service_path ] |
44 void RefreshCellularPlanCallback(const ListValue* args); | 43 void RefreshCellularPlanCallback(const ListValue* args); |
(...skipping 34 matching lines...) Loading... |
79 ListValue* GetWiredList(); | 78 ListValue* GetWiredList(); |
80 // Creates the map of wireless networks | 79 // Creates the map of wireless networks |
81 ListValue* GetWirelessList(); | 80 ListValue* GetWirelessList(); |
82 // Creates the map of remembered networks | 81 // Creates the map of remembered networks |
83 ListValue* GetRememberedList(); | 82 ListValue* GetRememberedList(); |
84 | 83 |
85 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); | 84 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); |
86 }; | 85 }; |
87 | 86 |
88 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_INTERNET_OPTIONS_HANDLER_H_ | 87 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_INTERNET_OPTIONS_HANDLER_H_ |
OLD | NEW |