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

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

Issue 9585033: Revert 124797 - 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 Thu Mar 1 16:24:33 2012. 7 * modified Fri Feb 24 10:14:10 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 /**
42 * Wired Ethernet network. 38 * Wired Ethernet network.
43 */ 39 */
44 PP_NETWORKLIST_ETHERNET = 1, 40 PP_NETWORKLIST_ETHERNET = 0,
45 /** 41 /**
46 * Wireless Wi-Fi network. 42 * Wireless Wi-Fi network.
47 */ 43 */
48 PP_NETWORKLIST_WIFI = 2, 44 PP_NETWORKLIST_WIFI = 1,
49 /** 45 /**
50 * Cellular network (e.g. LTE). 46 * Cellular network (e.g. LTE).
51 */ 47 */
52 PP_NETWORKLIST_CELLULAR = 3 48 PP_NETWORKLIST_CELLULAR = 2
53 } PP_NetworkListType_Private; 49 } PP_NetworkListType_Private;
54 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_NetworkListType_Private, 4); 50 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_NetworkListType_Private, 4);
55 51
56 /** 52 /**
57 * State of a network interface. 53 * State of a network interface.
58 */ 54 */
59 typedef enum { 55 typedef enum {
60 /** 56 /**
61 * Network interface is down. 57 * Network interface is down.
62 */ 58 */
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 * specified <code>index</code> and stores them in 115 * specified <code>index</code> and stores them in
120 * <code>addresses</code>. If the caller didn't allocate sufficient 116 * <code>addresses</code>. If the caller didn't allocate sufficient
121 * space to store all addresses, then only the first 117 * space to store all addresses, then only the first
122 * <code>count</code> addresses are filled in. 118 * <code>count</code> addresses are filled in.
123 * 119 *
124 * @return Returns total number of IP addresses assigned to the 120 * @return Returns total number of IP addresses assigned to the
125 * network interface or a negative error code. 121 * network interface or a negative error code.
126 */ 122 */
127 int32_t (*GetIpAddresses)(PP_Resource resource, 123 int32_t (*GetIpAddresses)(PP_Resource resource,
128 uint32_t index, 124 uint32_t index,
129 struct PP_NetAddress_Private addresses[], 125 struct PP_NetAddress_Private* addresses[],
130 uint32_t count); 126 int32_t count);
131 /** 127 /**
132 * @return Returns display name for the network interface with the 128 * @return Returns display name for the network interface with the
133 * specified <code>index</code>. 129 * specified <code>index</code>.
134 */ 130 */
135 struct PP_Var (*GetDisplayName)(PP_Resource resource, uint32_t index); 131 struct PP_Var (*GetDisplayName)(PP_Resource resource, uint32_t index);
136 /** 132 /**
137 * @return Returns MTU for the network interface with the specified 133 * @return Returns MTU for the network interface with the specified
138 * <code>index</code> or 0 if MTU is unknown. 134 * <code>index</code>.
139 */ 135 */
140 uint32_t (*GetMTU)(PP_Resource resource, uint32_t index); 136 uint32_t (*GetMTU)(PP_Resource resource, uint32_t index);
141 }; 137 };
142 138
143 typedef struct PPB_NetworkList_Private_0_2 PPB_NetworkList_Private; 139 typedef struct PPB_NetworkList_Private_0_2 PPB_NetworkList_Private;
144 /** 140 /**
145 * @} 141 * @}
146 */ 142 */
147 143
148 #endif /* PPAPI_C_PRIVATE_PPB_NETWORK_LIST_PRIVATE_H_ */ 144 #endif /* PPAPI_C_PRIVATE_PPB_NETWORK_LIST_PRIVATE_H_ */
149 145
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