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

Side by Side Diff: load.cc

Issue 6896001: Implement SetNetworkDeviceProperty() and ClearNetworkDeviceProperty(). (Closed) Base URL: ssh://gitrw.chromium.org:9222/cros.git@master
Patch Set: Slight tune-up of test program Created 9 years, 8 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
« no previous file with comments | « chromeos_network.cc ('k') | network_property_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium OS 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 #include <cstdio> 5 #include <cstdio>
6 #include <dlfcn.h> 6 #include <dlfcn.h>
7 #include <string.h> 7 #include <string.h>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 DECL_FUNC_0(GetSystemInfo, SystemInfo*); 201 DECL_FUNC_0(GetSystemInfo, SystemInfo*);
202 DECL_FUNC_1(RequestScan, void, ConnectionType); 202 DECL_FUNC_1(RequestScan, void, ConnectionType);
203 DECL_FUNC_2(GetWifiService, ServiceInfo*, const char*, ConnectionSecurity); 203 DECL_FUNC_2(GetWifiService, ServiceInfo*, const char*, ConnectionSecurity);
204 DECL_FUNC_2(ActivateCellularModem, bool, const char*, const char*); 204 DECL_FUNC_2(ActivateCellularModem, bool, const char*, const char*);
205 DECL_FUNC_5(ConfigureWifiService, bool, const char*, ConnectionSecurity, 205 DECL_FUNC_5(ConfigureWifiService, bool, const char*, ConnectionSecurity,
206 const char*, const char*, const char*); 206 const char*, const char*, const char*);
207 DECL_FUNC_2(ConnectToNetwork, bool, const char*, const char*); 207 DECL_FUNC_2(ConnectToNetwork, bool, const char*, const char*);
208 DECL_FUNC_3(SetNetworkServiceProperty, void, const char*, const char*, 208 DECL_FUNC_3(SetNetworkServiceProperty, void, const char*, const char*,
209 const ::Value *); 209 const ::Value *);
210 DECL_FUNC_2(ClearNetworkServiceProperty, void, const char*, const char*); 210 DECL_FUNC_2(ClearNetworkServiceProperty, void, const char*, const char*);
211 DECL_FUNC_3(SetNetworkDeviceProperty, void, const char*, const char*,
212 const ::Value *);
213 DECL_FUNC_2(ClearNetworkDeviceProperty, void, const char*, const char*);
211 DECL_FUNC_4(ConnectToNetworkWithCertInfo, bool, const char*, const char*, 214 DECL_FUNC_4(ConnectToNetworkWithCertInfo, bool, const char*, const char*,
212 const char*, const char*); 215 const char*, const char*);
213 DECL_FUNC_1(DisconnectFromNetwork, bool, const char*); 216 DECL_FUNC_1(DisconnectFromNetwork, bool, const char*);
214 DECL_FUNC_1(DeleteRememberedService, bool, const char*); 217 DECL_FUNC_1(DeleteRememberedService, bool, const char*);
215 DECL_FUNC_1(FreeSystemInfo, void, SystemInfo*); 218 DECL_FUNC_1(FreeSystemInfo, void, SystemInfo*);
216 DECL_FUNC_1(FreeServiceInfo, void, ServiceInfo*); 219 DECL_FUNC_1(FreeServiceInfo, void, ServiceInfo*);
217 // MonitorNetwork is deprecated: use MonitorNetworkManager 220 // MonitorNetwork is deprecated: use MonitorNetworkManager
218 DECL_FUNC_2(MonitorNetwork, 221 DECL_FUNC_2(MonitorNetwork,
219 MonitorNetworkConnection, MonitorNetworkCallback, void*); 222 MonitorNetworkConnection, MonitorNetworkCallback, void*);
220 // DisconnectMonitorNetwork is deprecated: use DisconnectPropertyChangeMonitor 223 // DisconnectMonitorNetwork is deprecated: use DisconnectPropertyChangeMonitor
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 INIT_FUNC(IsBootDevicePath); 553 INIT_FUNC(IsBootDevicePath);
551 554
552 // Networking 555 // Networking
553 INIT_FUNC(GetSystemInfo); 556 INIT_FUNC(GetSystemInfo);
554 INIT_FUNC(RequestScan); 557 INIT_FUNC(RequestScan);
555 INIT_FUNC(GetWifiService); 558 INIT_FUNC(GetWifiService);
556 INIT_FUNC(ActivateCellularModem); 559 INIT_FUNC(ActivateCellularModem);
557 INIT_FUNC(ConfigureWifiService); 560 INIT_FUNC(ConfigureWifiService);
558 INIT_FUNC(SetNetworkServiceProperty); 561 INIT_FUNC(SetNetworkServiceProperty);
559 INIT_FUNC(ClearNetworkServiceProperty); 562 INIT_FUNC(ClearNetworkServiceProperty);
563 INIT_FUNC(SetNetworkDeviceProperty);
564 INIT_FUNC(ClearNetworkDeviceProperty);
560 INIT_FUNC(ConnectToNetwork); 565 INIT_FUNC(ConnectToNetwork);
561 INIT_FUNC(ConnectToNetworkWithCertInfo); 566 INIT_FUNC(ConnectToNetworkWithCertInfo);
562 INIT_FUNC(DisconnectFromNetwork); 567 INIT_FUNC(DisconnectFromNetwork);
563 INIT_FUNC(DeleteRememberedService); 568 INIT_FUNC(DeleteRememberedService);
564 INIT_FUNC(FreeSystemInfo); 569 INIT_FUNC(FreeSystemInfo);
565 INIT_FUNC(FreeServiceInfo); 570 INIT_FUNC(FreeServiceInfo);
566 // MonitorNetwork is deprecated: use MonitorNetworkManager 571 // MonitorNetwork is deprecated: use MonitorNetworkManager
567 INIT_FUNC(MonitorNetwork); 572 INIT_FUNC(MonitorNetwork);
568 // DisconnectMonitorNetwork is deprecated: 573 // DisconnectMonitorNetwork is deprecated:
569 // use DisconnectPropertyChangeMonitor 574 // use DisconnectPropertyChangeMonitor
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 INIT_FUNC(NotifyNetworkProxyResolved); 754 INIT_FUNC(NotifyNetworkProxyResolved);
750 755
751 return error_string.empty(); 756 return error_string.empty();
752 } 757 }
753 758
754 void SetLibcrosTimeHistogramFunction(LibcrosTimeHistogramFunc func) { 759 void SetLibcrosTimeHistogramFunction(LibcrosTimeHistogramFunc func) {
755 addHistogram = func; 760 addHistogram = func;
756 } 761 }
757 762
758 } // namespace chromeos 763 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos_network.cc ('k') | network_property_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698