Index: chrome/browser/chromeos/cros/cros_network_functions.cc |
diff --git a/chrome/browser/chromeos/cros/cros_network_functions.cc b/chrome/browser/chromeos/cros/cros_network_functions.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e6a4dec433f0ed7f8a1416993ce6d3d42404f3c4 |
--- /dev/null |
+++ b/chrome/browser/chromeos/cros/cros_network_functions.cc |
@@ -0,0 +1,243 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/browser/chromeos/cros/cros_network_functions.h" |
+ |
+namespace chromeos { |
+ |
+bool CrosActivateCellularModem(const char* service_path, const char* carrier) { |
+ 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.
|
+} |
+ |
+void CrosSetNetworkServicePropertyGValue(const char* service_path, |
+ const char* property, |
+ const GValue* gvalue) { |
+ SetNetworkServicePropertyGValue(service_path, property, gvalue); |
+} |
+ |
+void CrosClearNetworkServiceProperty(const char* service_path, |
+ const char* property) { |
+ ClearNetworkServiceProperty(service_path, property); |
+} |
+ |
+void CrosSetNetworkDevicePropertyGValue(const char* device_path, |
+ const char* property, |
+ const GValue* gvalue) { |
+ SetNetworkDevicePropertyGValue(device_path, property, gvalue); |
+} |
+ |
+void CrosSetNetworkIPConfigPropertyGValue(const char* ipconfig_path, |
+ const char* property, |
+ const GValue* gvalue) { |
+ SetNetworkIPConfigPropertyGValue(ipconfig_path, property, gvalue); |
+} |
+ |
+void CrosDeleteServiceFromProfile(const char* profile_path, |
+ const char* service_path) { |
+ DeleteServiceFromProfile(profile_path, service_path); |
+} |
+ |
+void CrosRequestCellularDataPlanUpdate(const char* modem_service_path) { |
+ RequestCellularDataPlanUpdate(modem_service_path); |
+} |
+ |
+NetworkPropertiesMonitor CrosMonitorNetworkManagerProperties( |
+ MonitorPropertyGValueCallback callback, |
+ void* object) { |
+ return MonitorNetworkManagerProperties(callback, object); |
+} |
+ |
+NetworkPropertiesMonitor CrosMonitorNetworkServiceProperties( |
+ MonitorPropertyGValueCallback callback, |
+ const char* service_path, |
+ void* object) { |
+ return MonitorNetworkServiceProperties(callback, service_path, object); |
+} |
+ |
+NetworkPropertiesMonitor CrosMonitorNetworkDeviceProperties( |
+ MonitorPropertyGValueCallback callback, |
+ const char* device_path, |
+ void* object) { |
+ return MonitorNetworkDeviceProperties(callback, device_path, object); |
+} |
+ |
+void CrosDisconnectNetworkPropertiesMonitor( |
+ NetworkPropertiesMonitor monitor) { |
+ DisconnectNetworkPropertiesMonitor(monitor); |
+} |
+ |
+DataPlanUpdateMonitor CrosMonitorCellularDataPlan( |
+ MonitorDataPlanCallback callback, |
+ void* object) { |
+ return MonitorCellularDataPlan(callback, object); |
+} |
+ |
+void CrosDisconnectDataPlanUpdateMonitor(DataPlanUpdateMonitor monitor) { |
+ DisconnectDataPlanUpdateMonitor(monitor); |
+} |
+ |
+SMSMonitor CrosMonitorSMS(const char* modem_device_path, |
+ MonitorSMSCallback callback, |
+ void* object) { |
+ return CrosMonitorSMS(modem_device_path, callback, object); |
+} |
+ |
+void CrosDisconnectSMSMonitor(SMSMonitor monitor) { |
+ DisconnectSMSMonitor(monitor); |
+} |
+ |
+void CrosRequestNetworkServiceConnect(const char* service_path, |
+ NetworkActionCallback callback, |
+ void* object) { |
+ RequestNetworkServiceConnect(service_path, callback, object); |
+} |
+ |
+void CrosRequestNetworkManagerProperties( |
+ NetworkPropertiesGValueCallback callback, |
+ void* object) { |
+ RequestNetworkManagerProperties(callback, object); |
+} |
+ |
+void CrosRequestNetworkServiceProperties( |
+ const char* service_path, |
+ NetworkPropertiesGValueCallback callback, |
+ void* object) { |
+ RequestNetworkServiceProperties(service_path, callback, object); |
+} |
+ |
+void CrosRequestNetworkDeviceProperties( |
+ const char* device_path, |
+ NetworkPropertiesGValueCallback callback, |
+ void* object) { |
+ RequestNetworkDeviceProperties(device_path, callback, object); |
+} |
+ |
+void CrosRequestNetworkProfileProperties( |
+ const char* profile_path, |
+ NetworkPropertiesGValueCallback callback, |
+ void* object) { |
+ RequestNetworkProfileProperties(profile_path, callback, object); |
+} |
+ |
+void CrosRequestNetworkProfileEntryProperties( |
+ const char* profile_path, |
+ const char* profile_entry_path, |
+ NetworkPropertiesGValueCallback callback, |
+ void* object) { |
+ RequestNetworkProfileEntryProperties(profile_path, profile_entry_path, |
+ callback, object); |
+} |
+ |
+void CrosRequestHiddenWifiNetworkProperties( |
+ const char* ssid, |
+ const char* security, |
+ NetworkPropertiesGValueCallback callback, |
+ void* object) { |
+ RequestHiddenWifiNetworkProperties(ssid, security, callback, object); |
+} |
+ |
+void CrosRequestVirtualNetworkProperties( |
+ const char* service_name, |
+ const char* server_hostname, |
+ const char* provider_type, |
+ NetworkPropertiesGValueCallback callback, |
+ void* object) { |
+ RequestVirtualNetworkProperties(service_name, server_hostname, provider_type, |
+ callback, object); |
+} |
+ |
+void CrosRequestNetworkServiceDisconnect(const char* service_path) { |
+ RequestNetworkServiceDisconnect(service_path); |
+} |
+ |
+void CrosRequestRemoveNetworkService(const char* service_path) { |
+ RequestRemoveNetworkService(service_path); |
+} |
+ |
+void CrosRequestNetworkScan(const char* network_type) { |
+ RequestNetworkScan(network_type); |
+} |
+ |
+void CrosRequestNetworkDeviceEnable(const char* network_type, bool enable) { |
+ RequestNetworkDeviceEnable(network_type, enable); |
+} |
+ |
+void CrosRequestRequirePin(const char* device_path, |
+ const char* pin, |
+ bool enable, |
+ NetworkActionCallback callback, |
+ void* object) { |
+ RequestRequirePin(device_path, pin, enable, callback, object); |
+} |
+ |
+void CrosRequestEnterPin(const char* device_path, |
+ const char* pin, |
+ NetworkActionCallback callback, |
+ void* object) { |
+ RequestEnterPin(device_path, pin, callback, object); |
+} |
+ |
+void CrosRequestUnblockPin(const char* device_path, |
+ const char* unblock_code, |
+ const char* pin, |
+ NetworkActionCallback callback, |
+ void* object) { |
+ RequestUnblockPin(device_path, unblock_code, pin, callback, object); |
+} |
+ |
+void CrosRequestChangePin(const char* device_path, |
+ const char* old_pin, |
+ const char* new_pin, |
+ NetworkActionCallback callback, |
+ void* object) { |
+ RequestChangePin(device_path, old_pin, new_pin, callback, object); |
+} |
+ |
+void CrosProposeScan(const char* device_path) { |
+ ProposeScan(device_path); |
+} |
+ |
+void CrosRequestCellularRegister(const char* device_path, |
+ const char* network_id, |
+ NetworkActionCallback callback, |
+ void* object) { |
+ RequestCellularRegister(device_path, network_id, callback, object); |
+} |
+ |
+bool CrosSetOfflineMode(bool offline) { |
+ return SetOfflineMode(offline); |
+} |
+ |
+IPConfigStatus* CrosListIPConfigs(const char* device_path) { |
+ return ListIPConfigs(device_path); |
+} |
+ |
+bool CrosAddIPConfig(const char* device_path, IPConfigType type) { |
+ return AddIPConfig(device_path, type); |
+} |
+ |
+bool CrosRemoveIPConfig(IPConfig* config) { |
+ return RemoveIPConfig(config); |
+} |
+ |
+void CrosFreeIPConfigStatus(IPConfigStatus* status) { |
+ FreeIPConfigStatus(status); |
+} |
+ |
+DeviceNetworkList* CrosGetDeviceNetworkList() { |
+ return GetDeviceNetworkList(); |
+} |
+ |
+void CrosFreeDeviceNetworkList(DeviceNetworkList* network_list) { |
+ FreeDeviceNetworkList(network_list); |
+} |
+ |
+void CrosConfigureService(const char* identifier, |
+ const GHashTable* properties, |
+ NetworkActionCallback callback, |
+ void* object) { |
+ ConfigureService(identifier, properties, callback, object); |
+} |
+ |
+} // namespace chromeos |