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 /** | 6 /** |
7 * This file defines the <code>PPB_NetworkMonitor_Private</code> interface. | 7 * This file defines the <code>PPB_NetworkMonitor_Private</code> interface. |
8 */ | 8 */ |
9 | 9 |
10 label Chrome { | 10 label Chrome { |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 /** | 25 /** |
26 * The <code>PPB_NetworkMonitor_Private</code> provides access to | 26 * The <code>PPB_NetworkMonitor_Private</code> provides access to |
27 * notifications of network configuration changes. | 27 * notifications of network configuration changes. |
28 */ | 28 */ |
29 interface PPB_NetworkMonitor_Private { | 29 interface PPB_NetworkMonitor_Private { |
30 /** | 30 /** |
31 * Starts network change monitoring. The specified | 31 * Starts network change monitoring. The specified |
32 * <code>callback</code> will be called on the main thread once | 32 * <code>callback</code> will be called on the main thread once |
33 * after this method is called (to supply the initial network | 33 * after this method is called (to supply the initial network |
34 * configuarion) and then later every time network configuration | 34 * configuration) and then later every time network configuration |
35 * changes. Notifications are stopped when the returned resource is | 35 * changes. Notifications are stopped when the returned resource is |
36 * destroyed. If the plugin doesn't have access to the network list | 36 * destroyed. If the plugin doesn't have access to the network list |
37 * then the callback will be called once with the | 37 * then the callback will be called once with the |
38 * <code>network_list</code> parameter is set to 0. | 38 * <code>network_list</code> parameter is set to 0. |
39 * | 39 * |
40 * @param[in] callback The callback that will be called every time | 40 * @param[in] callback The callback that will be called every time |
41 * network configuration changes or NULL to stop network monitoring. | 41 * network configuration changes or NULL to stop network monitoring. |
42 * | 42 * |
43 * @param[inout] user_data The data to be passed to the callback on | 43 * @param[inout] user_data The data to be passed to the callback on |
44 * each call. | 44 * each call. |
(...skipping 10 matching lines...) Expand all Loading... |
55 * <code>NetworkMonitor</code> object. | 55 * <code>NetworkMonitor</code> object. |
56 * | 56 * |
57 * @param[in] resource A <code>PP_Resource</code> resource. | 57 * @param[in] resource A <code>PP_Resource</code> resource. |
58 * | 58 * |
59 * @return Returns <code>PP_TRUE</code> if <code>resource</code> is | 59 * @return Returns <code>PP_TRUE</code> if <code>resource</code> is |
60 * a <code>PPB_NetworkMonitor_Private</code>, <code>PP_FALSE</code> | 60 * a <code>PPB_NetworkMonitor_Private</code>, <code>PP_FALSE</code> |
61 * otherwise. | 61 * otherwise. |
62 */ | 62 */ |
63 PP_Bool IsNetworkMonitor([in] PP_Resource resource); | 63 PP_Bool IsNetworkMonitor([in] PP_Resource resource); |
64 }; | 64 }; |
OLD | NEW |