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" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 // WebUIMessageHandler (from OptionsPageUIHandler) | 49 // WebUIMessageHandler (from OptionsPageUIHandler) |
50 void RegisterMessages() override; | 50 void RegisterMessages() override; |
51 | 51 |
52 // Callbacks to set network state properties. | 52 // Callbacks to set network state properties. |
53 void ShowMorePlanInfoCallback(const base::ListValue* args); | 53 void ShowMorePlanInfoCallback(const base::ListValue* args); |
54 void CarrierStatusCallback(); | 54 void CarrierStatusCallback(); |
55 void SetCarrierCallback(const base::ListValue* args); | 55 void SetCarrierCallback(const base::ListValue* args); |
56 void SimOperationCallback(const base::ListValue* args); | 56 void SimOperationCallback(const base::ListValue* args); |
57 | 57 |
| 58 // Sets details_guid_ for event forwarding. |
| 59 void SetNetworkGuidCallback(const base::ListValue* args); |
| 60 |
58 // networkingPrvate callbacks | 61 // networkingPrvate callbacks |
59 void GetManagedPropertiesCallback(const base::ListValue* args); | 62 void GetManagedPropertiesCallback(const base::ListValue* args); |
60 void StartConnectCallback(const base::ListValue* args); | 63 void StartConnectCallback(const base::ListValue* args); |
61 void SetPropertiesCallback(const base::ListValue* args); | 64 void SetPropertiesCallback(const base::ListValue* args); |
62 | 65 |
63 // Refreshes the display of network information. | 66 // Refreshes the display of network information. |
64 void RefreshNetworkData(); | 67 void RefreshNetworkData(); |
65 | 68 |
66 // Updates the display of network connection information for the details page | 69 // Updates the display of network connection information for the details page |
67 // if visible. | 70 // if visible. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // Creates the map of virtual networks. | 111 // Creates the map of virtual networks. |
109 base::ListValue* GetVPNList(); | 112 base::ListValue* GetVPNList(); |
110 | 113 |
111 // Creates the map of remembered networks. | 114 // Creates the map of remembered networks. |
112 base::ListValue* GetRememberedList(); | 115 base::ListValue* GetRememberedList(); |
113 | 116 |
114 // Fills network information into JS dictionary for displaying network lists. | 117 // Fills network information into JS dictionary for displaying network lists. |
115 void FillNetworkInfo(base::DictionaryValue* dictionary); | 118 void FillNetworkInfo(base::DictionaryValue* dictionary); |
116 | 119 |
117 // Keep track of the service path for the network shown in the Details view. | 120 // Keep track of the service path for the network shown in the Details view. |
118 std::string details_path_; | 121 std::string details_guid_; |
119 | 122 |
120 // Weak pointer factory so we can start connections at a later time | 123 // Weak pointer factory so we can start connections at a later time |
121 // without worrying that they will actually try to happen after the lifetime | 124 // without worrying that they will actually try to happen after the lifetime |
122 // of this object. | 125 // of this object. |
123 base::WeakPtrFactory<InternetOptionsHandler> weak_factory_; | 126 base::WeakPtrFactory<InternetOptionsHandler> weak_factory_; |
124 | 127 |
125 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); | 128 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); |
126 }; | 129 }; |
127 | 130 |
128 } // namespace options | 131 } // namespace options |
129 } // namespace chromeos | 132 } // namespace chromeos |
130 | 133 |
131 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ | 134 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ |
OLD | NEW |