Chromium Code Reviews| 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</code> interface. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 [generate_thunk] | 10 [generate_thunk] |
| 11 | 11 |
| 12 label Chrome { | 12 label Chrome { |
| 13 M31 = 0.3 | 13 M31 = 1.0 |
| 14 }; | 14 }; |
| 15 | 15 |
| 16 | |
| 16 /** | 17 /** |
| 17 * The <code>PPB_NetworkMonitor_Private</code> provides access to | 18 * The <code>PPB_NetworkMonitor</code> allows to get network interfaces |
| 18 * notifications of network configuration changes. | 19 * configuration and monitor network configuration changes. |
|
yzshen1
2013/09/19 07:56:12
Please talk about permission. As an example, you c
Sergey Ulanov
2013/09/20 01:17:56
Done.
| |
| 19 */ | 20 */ |
| 20 interface PPB_NetworkMonitor_Private { | 21 interface PPB_NetworkMonitor { |
| 21 /** | 22 /** |
| 22 * Creates a Network Monitor resource. | 23 * Creates a Network Monitor resource. |
| 23 * | 24 * |
| 24 * @param[in] instance A <code>PP_Instance</code> identifying one instance of | 25 * @param[in] instance A <code>PP_Instance</code> identifying one instance of |
| 25 * a module. | 26 * a module. |
| 26 * | 27 * |
| 27 * @return A <code>PP_Resource</code> corresponding to a network monitor or 0 | 28 * @return A <code>PP_Resource</code> corresponding to a network monitor or 0 |
| 28 * on failure. | 29 * on failure. |
| 29 */ | 30 */ |
| 30 PP_Resource Create([in] PP_Instance instance); | 31 PP_Resource Create([in] PP_Instance instance); |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 51 [out] PP_Resource network_list, | 52 [out] PP_Resource network_list, |
| 52 [in] PP_CompletionCallback callback); | 53 [in] PP_CompletionCallback callback); |
| 53 | 54 |
| 54 /** | 55 /** |
| 55 * Determines if the specified <code>resource</code> is a | 56 * Determines if the specified <code>resource</code> is a |
| 56 * <code>NetworkMonitor</code> object. | 57 * <code>NetworkMonitor</code> object. |
| 57 * | 58 * |
| 58 * @param[in] resource A <code>PP_Resource</code> resource. | 59 * @param[in] resource A <code>PP_Resource</code> resource. |
| 59 * | 60 * |
| 60 * @return Returns <code>PP_TRUE</code> if <code>resource</code> is | 61 * @return Returns <code>PP_TRUE</code> if <code>resource</code> is |
| 61 * a <code>PPB_NetworkMonitor_Private</code>, <code>PP_FALSE</code> | 62 * a <code>PPB_NetworkMonitor</code>, <code>PP_FALSE</code> |
| 62 * otherwise. | 63 * otherwise. |
|
yzshen1
2013/09/19 07:56:12
nit: merge to the previous line?
Sergey Ulanov
2013/09/20 01:17:56
Done.
| |
| 63 */ | 64 */ |
| 64 PP_Bool IsNetworkMonitor([in] PP_Resource resource); | 65 PP_Bool IsNetworkMonitor([in] PP_Resource resource); |
| 65 }; | 66 }; |
| OLD | NEW |