Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #ifndef CHROMEOS_NETWORK_H_ | 5 #ifndef CHROMEOS_NETWORK_H_ |
| 6 #define CHROMEOS_NETWORK_H_ | 6 #define CHROMEOS_NETWORK_H_ |
| 7 | 7 |
| 8 #include <base/basictypes.h> | 8 #include <base/basictypes.h> |
| 9 #include <base/logging.h> | 9 #include <base/logging.h> |
| 10 #include <base/time.h> | 10 #include <base/time.h> |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 128 // | 128 // |
| 129 // Success is indicated by the receipt of a matching PropertyChanged signal. | 129 // Success is indicated by the receipt of a matching PropertyChanged signal. |
| 130 extern void (*SetNetworkServiceProperty)(const char* service_path, | 130 extern void (*SetNetworkServiceProperty)(const char* service_path, |
| 131 const char* property, | 131 const char* property, |
| 132 const ::Value* setting); | 132 const ::Value* setting); |
| 133 | 133 |
| 134 // Clear a property of a service | 134 // Clear a property of a service |
| 135 extern void (*ClearNetworkServiceProperty)(const char* service_path, | 135 extern void (*ClearNetworkServiceProperty)(const char* service_path, |
| 136 const char* property); | 136 const char* property); |
| 137 | 137 |
| 138 // Set a property of a device to the provided value | |
| 139 // | |
| 140 // Success is indicated by the receipt of a matching PropertyChanged signal. | |
| 141 extern void (*SetNetworkDeviceProperty)(const char* device, | |
|
Eric Shienbrood
2011/04/21 21:48:26
silly nit: we're calling this argument device_path
| |
| 142 const char* property, | |
| 143 const ::Value* setting); | |
| 144 | |
| 145 // Clear a property of a device | |
| 146 extern void (*ClearNetworkDeviceProperty)(const char* device_path, | |
| 147 const char* property); | |
| 148 | |
| 138 // Connects to the network with the |service_path|. | 149 // Connects to the network with the |service_path|. |
| 139 // | 150 // |
| 140 // Set |passphrase| to NULL if the network doesn't require authentication. | 151 // Set |passphrase| to NULL if the network doesn't require authentication. |
| 141 // Set |identity| and |certpath| to NULL if the network doesn't require | 152 // Set |identity| and |certpath| to NULL if the network doesn't require |
| 142 // certificate-based authentication. | 153 // certificate-based authentication. |
| 143 // | 154 // |
| 144 // returns false on failure and true on success. | 155 // returns false on failure and true on success. |
| 145 // | 156 // |
| 146 // Note, a successful call to this function only indicates that the | 157 // Note, a successful call to this function only indicates that the |
| 147 // connection process has started. You will have to query the connection state | 158 // connection process has started. You will have to query the connection state |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 434 extern DeviceNetworkList* (*GetDeviceNetworkList)(); | 445 extern DeviceNetworkList* (*GetDeviceNetworkList)(); |
| 435 | 446 |
| 436 // Deletes a DeviceNetworkList type that was allocated in the ChromeOS dll. We | 447 // Deletes a DeviceNetworkList type that was allocated in the ChromeOS dll. We |
| 437 // need to do this to safely pass data over the dll boundary between our .so | 448 // need to do this to safely pass data over the dll boundary between our .so |
| 438 // and Chrome. | 449 // and Chrome. |
| 439 extern void (*FreeDeviceNetworkList)(DeviceNetworkList* network_list); | 450 extern void (*FreeDeviceNetworkList)(DeviceNetworkList* network_list); |
| 440 | 451 |
| 441 } // namespace chromeos | 452 } // namespace chromeos |
| 442 | 453 |
| 443 #endif // CHROMEOS_NETWORK_H_ | 454 #endif // CHROMEOS_NETWORK_H_ |
| OLD | NEW |