| 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 | 5 |
| 6 /* From private/ppb_network_monitor_private.idl, | 6 /* From private/ppb_network_monitor_private.idl, |
| 7 * modified Fri Feb 24 10:51:22 2012. | 7 * modified Thu Mar 28 10:30:11 2013. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 #ifndef PPAPI_C_PRIVATE_PPB_NETWORK_MONITOR_PRIVATE_H_ | 10 #ifndef PPAPI_C_PRIVATE_PPB_NETWORK_MONITOR_PRIVATE_H_ |
| 11 #define PPAPI_C_PRIVATE_PPB_NETWORK_MONITOR_PRIVATE_H_ | 11 #define PPAPI_C_PRIVATE_PPB_NETWORK_MONITOR_PRIVATE_H_ |
| 12 | 12 |
| 13 #include "ppapi/c/pp_bool.h" | 13 #include "ppapi/c/pp_bool.h" |
| 14 #include "ppapi/c/pp_instance.h" | 14 #include "ppapi/c/pp_instance.h" |
| 15 #include "ppapi/c/pp_macros.h" | 15 #include "ppapi/c/pp_macros.h" |
| 16 #include "ppapi/c/pp_resource.h" | 16 #include "ppapi/c/pp_resource.h" |
| 17 #include "ppapi/c/pp_stdint.h" | 17 #include "ppapi/c/pp_stdint.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 */ | 50 */ |
| 51 /** | 51 /** |
| 52 * The <code>PPB_NetworkMonitor_Private</code> provides access to | 52 * The <code>PPB_NetworkMonitor_Private</code> provides access to |
| 53 * notifications of network configuration changes. | 53 * notifications of network configuration changes. |
| 54 */ | 54 */ |
| 55 struct PPB_NetworkMonitor_Private_0_2 { | 55 struct PPB_NetworkMonitor_Private_0_2 { |
| 56 /** | 56 /** |
| 57 * Starts network change monitoring. The specified | 57 * Starts network change monitoring. The specified |
| 58 * <code>callback</code> will be called on the main thread once | 58 * <code>callback</code> will be called on the main thread once |
| 59 * after this method is called (to supply the initial network | 59 * after this method is called (to supply the initial network |
| 60 * configuarion) and then later every time network configuration | 60 * configuration) and then later every time network configuration |
| 61 * changes. Notifications are stopped when the returned resource is | 61 * changes. Notifications are stopped when the returned resource is |
| 62 * destroyed. If the plugin doesn't have access to the network list | 62 * destroyed. If the plugin doesn't have access to the network list |
| 63 * then the callback will be called once with the | 63 * then the callback will be called once with the |
| 64 * <code>network_list</code> parameter is set to 0. | 64 * <code>network_list</code> parameter is set to 0. |
| 65 * | 65 * |
| 66 * @param[in] callback The callback that will be called every time | 66 * @param[in] callback The callback that will be called every time |
| 67 * network configuration changes or NULL to stop network monitoring. | 67 * network configuration changes or NULL to stop network monitoring. |
| 68 * | 68 * |
| 69 * @param[inout] user_data The data to be passed to the callback on | 69 * @param[inout] user_data The data to be passed to the callback on |
| 70 * each call. | 70 * each call. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 88 PP_Bool (*IsNetworkMonitor)(PP_Resource resource); | 88 PP_Bool (*IsNetworkMonitor)(PP_Resource resource); |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 typedef struct PPB_NetworkMonitor_Private_0_2 PPB_NetworkMonitor_Private; | 91 typedef struct PPB_NetworkMonitor_Private_0_2 PPB_NetworkMonitor_Private; |
| 92 /** | 92 /** |
| 93 * @} | 93 * @} |
| 94 */ | 94 */ |
| 95 | 95 |
| 96 #endif /* PPAPI_C_PRIVATE_PPB_NETWORK_MONITOR_PRIVATE_H_ */ | 96 #endif /* PPAPI_C_PRIVATE_PPB_NETWORK_MONITOR_PRIVATE_H_ */ |
| 97 | 97 |
| OLD | NEW |