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

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

Powered by Google App Engine
This is Rietveld 408576698