Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Side by Side Diff: ppapi/c/ppb_network_monitor.h

Issue 23450012: Make NetworkList and NetworkMonitor APIs public (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 ppb_network_monitor.idl modified Thu Sep 5 12:10:00 2013. */
7 * modified Wed Sep 4 14:16:07 2013.
8 */
9 7
10 #ifndef PPAPI_C_PRIVATE_PPB_NETWORK_MONITOR_PRIVATE_H_ 8 #ifndef PPAPI_C_PPB_NETWORK_MONITOR_H_
11 #define PPAPI_C_PRIVATE_PPB_NETWORK_MONITOR_PRIVATE_H_ 9 #define PPAPI_C_PPB_NETWORK_MONITOR_H_
12 10
13 #include "ppapi/c/pp_bool.h" 11 #include "ppapi/c/pp_bool.h"
14 #include "ppapi/c/pp_completion_callback.h" 12 #include "ppapi/c/pp_completion_callback.h"
15 #include "ppapi/c/pp_instance.h" 13 #include "ppapi/c/pp_instance.h"
16 #include "ppapi/c/pp_macros.h" 14 #include "ppapi/c/pp_macros.h"
17 #include "ppapi/c/pp_resource.h" 15 #include "ppapi/c/pp_resource.h"
18 #include "ppapi/c/pp_stdint.h" 16 #include "ppapi/c/pp_stdint.h"
19 17
20 #define PPB_NETWORKMONITOR_PRIVATE_INTERFACE_0_3 \ 18 #define PPB_NETWORKMONITOR_INTERFACE_1_0 "PPB_NetworkMonitor;1.0"
21 "PPB_NetworkMonitor_Private;0.3" 19 #define PPB_NETWORKMONITOR_INTERFACE PPB_NETWORKMONITOR_INTERFACE_1_0
22 #define PPB_NETWORKMONITOR_PRIVATE_INTERFACE \
23 PPB_NETWORKMONITOR_PRIVATE_INTERFACE_0_3
24 20
25 /** 21 /**
26 * @file 22 * @file
27 * This file defines the <code>PPB_NetworkMonitor_Private</code> interface. 23 * This file defines the <code>PPB_NetworkMonitor</code> interface.
28 */ 24 */
29 25
30 26
31 /** 27 /**
32 * @addtogroup Interfaces 28 * @addtogroup Interfaces
33 * @{ 29 * @{
34 */ 30 */
35 /** 31 /**
36 * The <code>PPB_NetworkMonitor_Private</code> provides access to 32 * The <code>PPB_NetworkMonitor</code> allows to get network interfaces
37 * notifications of network configuration changes. 33 * configuration and monitor network configuration changes.
38 */ 34 */
39 struct PPB_NetworkMonitor_Private_0_3 { 35 struct PPB_NetworkMonitor_1_0 {
40 /** 36 /**
41 * Creates a Network Monitor resource. 37 * Creates a Network Monitor resource.
42 * 38 *
43 * @param[in] instance A <code>PP_Instance</code> identifying one instance of 39 * @param[in] instance A <code>PP_Instance</code> identifying one instance of
44 * a module. 40 * a module.
45 * 41 *
46 * @return A <code>PP_Resource</code> corresponding to a network monitor or 0 42 * @return A <code>PP_Resource</code> corresponding to a network monitor or 0
47 * on failure. 43 * on failure.
48 */ 44 */
49 PP_Resource (*Create)(PP_Instance instance); 45 PP_Resource (*Create)(PP_Instance instance);
(...skipping 17 matching lines...) Expand all
67 int32_t (*UpdateNetworkList)(PP_Resource network_monitor, 63 int32_t (*UpdateNetworkList)(PP_Resource network_monitor,
68 PP_Resource* network_list, 64 PP_Resource* network_list,
69 struct PP_CompletionCallback callback); 65 struct PP_CompletionCallback callback);
70 /** 66 /**
71 * Determines if the specified <code>resource</code> is a 67 * Determines if the specified <code>resource</code> is a
72 * <code>NetworkMonitor</code> object. 68 * <code>NetworkMonitor</code> object.
73 * 69 *
74 * @param[in] resource A <code>PP_Resource</code> resource. 70 * @param[in] resource A <code>PP_Resource</code> resource.
75 * 71 *
76 * @return Returns <code>PP_TRUE</code> if <code>resource</code> is 72 * @return Returns <code>PP_TRUE</code> if <code>resource</code> is
77 * a <code>PPB_NetworkMonitor_Private</code>, <code>PP_FALSE</code> 73 * a <code>PPB_NetworkMonitor</code>, <code>PP_FALSE</code>
78 * otherwise. 74 * otherwise.
79 */ 75 */
80 PP_Bool (*IsNetworkMonitor)(PP_Resource resource); 76 PP_Bool (*IsNetworkMonitor)(PP_Resource resource);
81 }; 77 };
82 78
83 typedef struct PPB_NetworkMonitor_Private_0_3 PPB_NetworkMonitor_Private; 79 typedef struct PPB_NetworkMonitor_1_0 PPB_NetworkMonitor;
84 /** 80 /**
85 * @} 81 * @}
86 */ 82 */
87 83
88 #endif /* PPAPI_C_PRIVATE_PPB_NETWORK_MONITOR_PRIVATE_H_ */ 84 #endif /* PPAPI_C_PPB_NETWORK_MONITOR_H_ */
89 85
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698