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

Side by Side Diff: ppapi/c/private/ppb_network_list_private.h

Issue 9545010: Add NetworkList/NetworkMonitor hooks and C++ wrappers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 years, 9 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_list_private.idl, 6 /* From private/ppb_network_list_private.idl,
7 * modified Fri Feb 24 10:14:10 2012. 7 * modified Thu Mar 1 16:24:33 2012.
8 */ 8 */
9 9
10 #ifndef PPAPI_C_PRIVATE_PPB_NETWORK_LIST_PRIVATE_H_ 10 #ifndef PPAPI_C_PRIVATE_PPB_NETWORK_LIST_PRIVATE_H_
11 #define PPAPI_C_PRIVATE_PPB_NETWORK_LIST_PRIVATE_H_ 11 #define PPAPI_C_PRIVATE_PPB_NETWORK_LIST_PRIVATE_H_
12 12
13 #include "ppapi/c/pp_bool.h" 13 #include "ppapi/c/pp_bool.h"
14 #include "ppapi/c/pp_macros.h" 14 #include "ppapi/c/pp_macros.h"
15 #include "ppapi/c/pp_resource.h" 15 #include "ppapi/c/pp_resource.h"
16 #include "ppapi/c/pp_stdint.h" 16 #include "ppapi/c/pp_stdint.h"
17 #include "ppapi/c/pp_var.h" 17 #include "ppapi/c/pp_var.h"
(...skipping 10 matching lines...) Expand all
28 28
29 /** 29 /**
30 * @addtogroup Enums 30 * @addtogroup Enums
31 * @{ 31 * @{
32 */ 32 */
33 /** 33 /**
34 * Type of a network interface. 34 * Type of a network interface.
35 */ 35 */
36 typedef enum { 36 typedef enum {
37 /** 37 /**
38 * Type of the network interface is not known.
39 */
40 PP_NETWORKLIST_UNKNOWN = 0,
41 /**
38 * Wired Ethernet network. 42 * Wired Ethernet network.
39 */ 43 */
40 PP_NETWORKLIST_ETHERNET = 0, 44 PP_NETWORKLIST_ETHERNET = 1,
41 /** 45 /**
42 * Wireless Wi-Fi network. 46 * Wireless Wi-Fi network.
43 */ 47 */
44 PP_NETWORKLIST_WIFI = 1, 48 PP_NETWORKLIST_WIFI = 2,
45 /** 49 /**
46 * Cellular network (e.g. LTE). 50 * Cellular network (e.g. LTE).
47 */ 51 */
48 PP_NETWORKLIST_CELLULAR = 2 52 PP_NETWORKLIST_CELLULAR = 3
49 } PP_NetworkListType_Private; 53 } PP_NetworkListType_Private;
50 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_NetworkListType_Private, 4); 54 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_NetworkListType_Private, 4);
51 55
52 /** 56 /**
53 * State of a network interface. 57 * State of a network interface.
54 */ 58 */
55 typedef enum { 59 typedef enum {
56 /** 60 /**
57 * Network interface is down. 61 * Network interface is down.
58 */ 62 */
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 * specified <code>index</code> and stores them in 119 * specified <code>index</code> and stores them in
116 * <code>addresses</code>. If the caller didn't allocate sufficient 120 * <code>addresses</code>. If the caller didn't allocate sufficient
117 * space to store all addresses, then only the first 121 * space to store all addresses, then only the first
118 * <code>count</code> addresses are filled in. 122 * <code>count</code> addresses are filled in.
119 * 123 *
120 * @return Returns total number of IP addresses assigned to the 124 * @return Returns total number of IP addresses assigned to the
121 * network interface or a negative error code. 125 * network interface or a negative error code.
122 */ 126 */
123 int32_t (*GetIpAddresses)(PP_Resource resource, 127 int32_t (*GetIpAddresses)(PP_Resource resource,
124 uint32_t index, 128 uint32_t index,
125 struct PP_NetAddress_Private* addresses[], 129 struct PP_NetAddress_Private addresses[],
126 int32_t count); 130 uint32_t count);
127 /** 131 /**
128 * @return Returns display name for the network interface with the 132 * @return Returns display name for the network interface with the
129 * specified <code>index</code>. 133 * specified <code>index</code>.
130 */ 134 */
131 struct PP_Var (*GetDisplayName)(PP_Resource resource, uint32_t index); 135 struct PP_Var (*GetDisplayName)(PP_Resource resource, uint32_t index);
132 /** 136 /**
133 * @return Returns MTU for the network interface with the specified 137 * @return Returns MTU for the network interface with the specified
134 * <code>index</code>. 138 * <code>index</code> or 0 if MTU is unknown.
135 */ 139 */
136 uint32_t (*GetMTU)(PP_Resource resource, uint32_t index); 140 uint32_t (*GetMTU)(PP_Resource resource, uint32_t index);
137 }; 141 };
138 142
139 typedef struct PPB_NetworkList_Private_0_2 PPB_NetworkList_Private; 143 typedef struct PPB_NetworkList_Private_0_2 PPB_NetworkList_Private;
140 /** 144 /**
141 * @} 145 * @}
142 */ 146 */
143 147
144 #endif /* PPAPI_C_PRIVATE_PPB_NETWORK_LIST_PRIVATE_H_ */ 148 #endif /* PPAPI_C_PRIVATE_PPB_NETWORK_LIST_PRIVATE_H_ */
145 149
OLDNEW
« no previous file with comments | « ppapi/api/private/ppb_network_list_private.idl ('k') | ppapi/cpp/private/network_list_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698