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 CHROME_BROWSER_CHROMEOS_CROS_CROS_NETWORK_FUNCTIONS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_CROS_NETWORK_FUNCTIONS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_CROS_CROS_NETWORK_FUNCTIONS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_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 // All calls to functions in chromeos_network.h should be made through | 10 // All calls to functions in chromeos_network.h should be made through |
(...skipping 10 matching lines...) Expand all Loading... | |
21 | 21 |
22 } // namespace base | 22 } // namespace base |
23 | 23 |
24 namespace chromeos { | 24 namespace chromeos { |
25 | 25 |
26 // Callback for asynchronous getters. | 26 // Callback for asynchronous getters. |
27 typedef base::Callback<void( | 27 typedef base::Callback<void( |
28 const char* path, | 28 const char* path, |
29 const base::DictionaryValue* properties)> NetworkPropertiesCallback; | 29 const base::DictionaryValue* properties)> NetworkPropertiesCallback; |
30 | 30 |
31 // Enables the new implementation to stop using Libcros. | |
32 void EnableNonLibcrosNetworkFunctions(bool enabled); | |
stevenjb
2012/04/12 17:34:36
"EnableNon" is extremely confusing, should be SetL
hashimoto
2012/04/13 05:27:22
Done.
| |
33 | |
31 // Activates the cellular modem specified by |service_path| with carrier | 34 // Activates the cellular modem specified by |service_path| with carrier |
32 // specified by |carrier|. | 35 // specified by |carrier|. |
33 // |carrier| is NULL or an empty string, this will activate with the currently | 36 // |carrier| is NULL or an empty string, this will activate with the currently |
34 // active carrier. | 37 // active carrier. |
35 // Returns false on failure and true on success. | 38 // Returns false on failure and true on success. |
36 bool CrosActivateCellularModem(const char* service_path, const char* carrier); | 39 bool CrosActivateCellularModem(const char* service_path, const char* carrier); |
37 | 40 |
38 | 41 |
39 // Sets a property of a service to the provided value. | 42 // Sets a property of a service to the provided value. |
40 // Success is indicated by the receipt of a matching PropertyChanged signal. | 43 // Success is indicated by the receipt of a matching PropertyChanged signal. |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
245 // specified by the calling code; it is ignored by libcros and flimflam, | 248 // specified by the calling code; it is ignored by libcros and flimflam, |
246 // except to pass it back in |callback| as |path|. | 249 // except to pass it back in |callback| as |path|. |
247 void CrosConfigureService(const char* identifier, | 250 void CrosConfigureService(const char* identifier, |
248 const base::DictionaryValue& properties, | 251 const base::DictionaryValue& properties, |
249 NetworkActionCallback callback, | 252 NetworkActionCallback callback, |
250 void* object); | 253 void* object); |
251 | 254 |
252 } // namespace chromeos | 255 } // namespace chromeos |
253 | 256 |
254 #endif // CHROME_BROWSER_CHROMEOS_CROS_CROS_NETWORK_FUNCTIONS_H_ | 257 #endif // CHROME_BROWSER_CHROMEOS_CROS_CROS_NETWORK_FUNCTIONS_H_ |
OLD | NEW |