Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Side by Side Diff: chrome/browser/chromeos/cros/cros_network_functions.cc

Issue 9702005: Call libcros functions through proxy functions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/chromeos/cros/cros_network_functions.h"
6
7 namespace chromeos {
8
9 bool CrosActivateCellularModem(const char* service_path, const char* carrier) {
10 return ActivateCellularModem(service_path, carrier);
stevenjb 2012/03/14 21:42:45 I know that it's implicit, but I've been specifyin
hashimoto 2012/03/14 22:48:19 Done.
11 }
12
13 void CrosSetNetworkServicePropertyGValue(const char* service_path,
14 const char* property,
15 const GValue* gvalue) {
16 SetNetworkServicePropertyGValue(service_path, property, gvalue);
17 }
18
19 void CrosClearNetworkServiceProperty(const char* service_path,
20 const char* property) {
21 ClearNetworkServiceProperty(service_path, property);
22 }
23
24 void CrosSetNetworkDevicePropertyGValue(const char* device_path,
25 const char* property,
26 const GValue* gvalue) {
27 SetNetworkDevicePropertyGValue(device_path, property, gvalue);
28 }
29
30 void CrosSetNetworkIPConfigPropertyGValue(const char* ipconfig_path,
31 const char* property,
32 const GValue* gvalue) {
33 SetNetworkIPConfigPropertyGValue(ipconfig_path, property, gvalue);
34 }
35
36 void CrosDeleteServiceFromProfile(const char* profile_path,
37 const char* service_path) {
38 DeleteServiceFromProfile(profile_path, service_path);
39 }
40
41 void CrosRequestCellularDataPlanUpdate(const char* modem_service_path) {
42 RequestCellularDataPlanUpdate(modem_service_path);
43 }
44
45 NetworkPropertiesMonitor CrosMonitorNetworkManagerProperties(
46 MonitorPropertyGValueCallback callback,
47 void* object) {
48 return MonitorNetworkManagerProperties(callback, object);
49 }
50
51 NetworkPropertiesMonitor CrosMonitorNetworkServiceProperties(
52 MonitorPropertyGValueCallback callback,
53 const char* service_path,
54 void* object) {
55 return MonitorNetworkServiceProperties(callback, service_path, object);
56 }
57
58 NetworkPropertiesMonitor CrosMonitorNetworkDeviceProperties(
59 MonitorPropertyGValueCallback callback,
60 const char* device_path,
61 void* object) {
62 return MonitorNetworkDeviceProperties(callback, device_path, object);
63 }
64
65 void CrosDisconnectNetworkPropertiesMonitor(
66 NetworkPropertiesMonitor monitor) {
67 DisconnectNetworkPropertiesMonitor(monitor);
68 }
69
70 DataPlanUpdateMonitor CrosMonitorCellularDataPlan(
71 MonitorDataPlanCallback callback,
72 void* object) {
73 return MonitorCellularDataPlan(callback, object);
74 }
75
76 void CrosDisconnectDataPlanUpdateMonitor(DataPlanUpdateMonitor monitor) {
77 DisconnectDataPlanUpdateMonitor(monitor);
78 }
79
80 SMSMonitor CrosMonitorSMS(const char* modem_device_path,
81 MonitorSMSCallback callback,
82 void* object) {
83 return CrosMonitorSMS(modem_device_path, callback, object);
84 }
85
86 void CrosDisconnectSMSMonitor(SMSMonitor monitor) {
87 DisconnectSMSMonitor(monitor);
88 }
89
90 void CrosRequestNetworkServiceConnect(const char* service_path,
91 NetworkActionCallback callback,
92 void* object) {
93 RequestNetworkServiceConnect(service_path, callback, object);
94 }
95
96 void CrosRequestNetworkManagerProperties(
97 NetworkPropertiesGValueCallback callback,
98 void* object) {
99 RequestNetworkManagerProperties(callback, object);
100 }
101
102 void CrosRequestNetworkServiceProperties(
103 const char* service_path,
104 NetworkPropertiesGValueCallback callback,
105 void* object) {
106 RequestNetworkServiceProperties(service_path, callback, object);
107 }
108
109 void CrosRequestNetworkDeviceProperties(
110 const char* device_path,
111 NetworkPropertiesGValueCallback callback,
112 void* object) {
113 RequestNetworkDeviceProperties(device_path, callback, object);
114 }
115
116 void CrosRequestNetworkProfileProperties(
117 const char* profile_path,
118 NetworkPropertiesGValueCallback callback,
119 void* object) {
120 RequestNetworkProfileProperties(profile_path, callback, object);
121 }
122
123 void CrosRequestNetworkProfileEntryProperties(
124 const char* profile_path,
125 const char* profile_entry_path,
126 NetworkPropertiesGValueCallback callback,
127 void* object) {
128 RequestNetworkProfileEntryProperties(profile_path, profile_entry_path,
129 callback, object);
130 }
131
132 void CrosRequestHiddenWifiNetworkProperties(
133 const char* ssid,
134 const char* security,
135 NetworkPropertiesGValueCallback callback,
136 void* object) {
137 RequestHiddenWifiNetworkProperties(ssid, security, callback, object);
138 }
139
140 void CrosRequestVirtualNetworkProperties(
141 const char* service_name,
142 const char* server_hostname,
143 const char* provider_type,
144 NetworkPropertiesGValueCallback callback,
145 void* object) {
146 RequestVirtualNetworkProperties(service_name, server_hostname, provider_type,
147 callback, object);
148 }
149
150 void CrosRequestNetworkServiceDisconnect(const char* service_path) {
151 RequestNetworkServiceDisconnect(service_path);
152 }
153
154 void CrosRequestRemoveNetworkService(const char* service_path) {
155 RequestRemoveNetworkService(service_path);
156 }
157
158 void CrosRequestNetworkScan(const char* network_type) {
159 RequestNetworkScan(network_type);
160 }
161
162 void CrosRequestNetworkDeviceEnable(const char* network_type, bool enable) {
163 RequestNetworkDeviceEnable(network_type, enable);
164 }
165
166 void CrosRequestRequirePin(const char* device_path,
167 const char* pin,
168 bool enable,
169 NetworkActionCallback callback,
170 void* object) {
171 RequestRequirePin(device_path, pin, enable, callback, object);
172 }
173
174 void CrosRequestEnterPin(const char* device_path,
175 const char* pin,
176 NetworkActionCallback callback,
177 void* object) {
178 RequestEnterPin(device_path, pin, callback, object);
179 }
180
181 void CrosRequestUnblockPin(const char* device_path,
182 const char* unblock_code,
183 const char* pin,
184 NetworkActionCallback callback,
185 void* object) {
186 RequestUnblockPin(device_path, unblock_code, pin, callback, object);
187 }
188
189 void CrosRequestChangePin(const char* device_path,
190 const char* old_pin,
191 const char* new_pin,
192 NetworkActionCallback callback,
193 void* object) {
194 RequestChangePin(device_path, old_pin, new_pin, callback, object);
195 }
196
197 void CrosProposeScan(const char* device_path) {
198 ProposeScan(device_path);
199 }
200
201 void CrosRequestCellularRegister(const char* device_path,
202 const char* network_id,
203 NetworkActionCallback callback,
204 void* object) {
205 RequestCellularRegister(device_path, network_id, callback, object);
206 }
207
208 bool CrosSetOfflineMode(bool offline) {
209 return SetOfflineMode(offline);
210 }
211
212 IPConfigStatus* CrosListIPConfigs(const char* device_path) {
213 return ListIPConfigs(device_path);
214 }
215
216 bool CrosAddIPConfig(const char* device_path, IPConfigType type) {
217 return AddIPConfig(device_path, type);
218 }
219
220 bool CrosRemoveIPConfig(IPConfig* config) {
221 return RemoveIPConfig(config);
222 }
223
224 void CrosFreeIPConfigStatus(IPConfigStatus* status) {
225 FreeIPConfigStatus(status);
226 }
227
228 DeviceNetworkList* CrosGetDeviceNetworkList() {
229 return GetDeviceNetworkList();
230 }
231
232 void CrosFreeDeviceNetworkList(DeviceNetworkList* network_list) {
233 FreeDeviceNetworkList(network_list);
234 }
235
236 void CrosConfigureService(const char* identifier,
237 const GHashTable* properties,
238 NetworkActionCallback callback,
239 void* object) {
240 ConfigureService(identifier, properties, callback, object);
241 }
242
243 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698