OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_CROS_NETWORK_FUNCTIONS_H_ | 5 #ifndef CHROMEOS_NETWORK_CROS_NETWORK_FUNCTIONS_H_ |
6 #define CHROMEOS_NETWORK_CROS_NETWORK_FUNCTIONS_H_ | 6 #define CHROMEOS_NETWORK_CROS_NETWORK_FUNCTIONS_H_ |
7 | 7 |
8 // This header is introduced to make it easy to switch from chromeos_network.cc | 8 // This header is introduced to make it easy to switch from chromeos_network.cc |
9 // to Chrome's own DBus code. crosbug.com/16557 | 9 // to Chrome's own DBus code. crosbug.com/16557 |
10 // | 10 // |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 }; | 55 }; |
56 | 56 |
57 // Activates the cellular modem specified by |service_path| with carrier | 57 // Activates the cellular modem specified by |service_path| with carrier |
58 // specified by |carrier|. | 58 // specified by |carrier|. |
59 // |carrier| is NULL or an empty string, this will activate with the currently | 59 // |carrier| is NULL or an empty string, this will activate with the currently |
60 // active carrier. | 60 // active carrier. |
61 // Returns false on failure and true on success. | 61 // Returns false on failure and true on success. |
62 CHROMEOS_EXPORT bool CrosActivateCellularModem(const std::string& service_path, | 62 CHROMEOS_EXPORT bool CrosActivateCellularModem(const std::string& service_path, |
63 const std::string& carrier); | 63 const std::string& carrier); |
64 | 64 |
| 65 // Completes the activation for the cellular modem specified by |service_path|. |
| 66 CHROMEOS_EXPORT void CrosCompleteCellularActivation( |
| 67 const std::string& service_path); |
65 | 68 |
66 // Sets a property of a service to the provided value. | 69 // Sets a property of a service to the provided value. |
67 // Success is indicated by the receipt of a matching PropertyChanged signal. | 70 // Success is indicated by the receipt of a matching PropertyChanged signal. |
68 CHROMEOS_EXPORT void CrosSetNetworkServiceProperty( | 71 CHROMEOS_EXPORT void CrosSetNetworkServiceProperty( |
69 const std::string& service_path, | 72 const std::string& service_path, |
70 const std::string& property, | 73 const std::string& property, |
71 const base::Value& value); | 74 const base::Value& value); |
72 | 75 |
73 // Clears a property of a service. | 76 // Clears a property of a service. |
74 CHROMEOS_EXPORT void CrosClearNetworkServiceProperty( | 77 CHROMEOS_EXPORT void CrosClearNetworkServiceProperty( |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 CHROMEOS_EXPORT void CrosSetCarrier(const std::string& device_path, | 264 CHROMEOS_EXPORT void CrosSetCarrier(const std::string& device_path, |
262 const std::string& carrier, | 265 const std::string& carrier, |
263 const NetworkOperationCallback& callback); | 266 const NetworkOperationCallback& callback); |
264 | 267 |
265 // Resets the device. | 268 // Resets the device. |
266 CHROMEOS_EXPORT void CrosReset(const std::string& device_path); | 269 CHROMEOS_EXPORT void CrosReset(const std::string& device_path); |
267 | 270 |
268 } // namespace chromeos | 271 } // namespace chromeos |
269 | 272 |
270 #endif // CHROMEOS_NETWORK_CROS_NETWORK_FUNCTIONS_H_ | 273 #endif // CHROMEOS_NETWORK_CROS_NETWORK_FUNCTIONS_H_ |
OLD | NEW |