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

Side by Side Diff: ppapi/api/private/ppb_network_list_private.idl

Issue 23806003: Use PP_ArrayOutput and PPB_NetAddress in PPB_NetworkList_Private.. (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 /** 6 /**
7 * This file defines the <code>PPB_NetworkList_Private</code> interface. 7 * This file defines the <code>PPB_NetworkList_Private</code> interface.
8 */ 8 */
9 9
10 [generate_thunk] 10 [generate_thunk]
11 11
12 label Chrome { 12 label Chrome {
13 M19 = 0.2 13 M31 = 0.3
14 }; 14 };
15 15
16 /** 16 /**
17 * Type of a network interface. 17 * Type of a network interface.
18 */ 18 */
19 [assert_size(4)] 19 [assert_size(4)]
20 enum PP_NetworkListType_Private { 20 enum PP_NetworkListType_Private {
21 /** 21 /**
22 * Type of the network interface is not known. 22 * Type of the network interface is not known.
23 */ 23 */
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 * 69 *
70 * @param[in] resource A <code>PP_Resource</code> resource. 70 * @param[in] resource A <code>PP_Resource</code> resource.
71 * 71 *
72 * @return Returns <code>PP_TRUE</code> if <code>resource</code> is 72 * @return Returns <code>PP_TRUE</code> if <code>resource</code> is
73 * a <code>PPB_NetworkList_Private</code>, <code>PP_FALSE</code> 73 * a <code>PPB_NetworkList_Private</code>, <code>PP_FALSE</code>
74 * otherwise. 74 * otherwise.
75 */ 75 */
76 PP_Bool IsNetworkList([in] PP_Resource resource); 76 PP_Bool IsNetworkList([in] PP_Resource resource);
77 77
78 /** 78 /**
79 * Gets number of interfaces in the list.
80 *
81 * @param[in] resource A <code>PP_Resource</code> corresponding to a
82 * network list.
83 *
79 * @return Returns number of available network interfaces or 0 if 84 * @return Returns number of available network interfaces or 0 if
80 * the list has never been updated. 85 * the list has never been updated.
81 */ 86 */
82 uint32_t GetCount([in] PP_Resource resource); 87 uint32_t GetCount([in] PP_Resource resource);
83 88
84 /** 89 /**
90 * Gets name of a network interface.
91 *
92 * @param[in] resource A <code>PP_Resource</code> corresponding to a
93 * network list.
94 * @param[in] index Index of the network interface.
95 *
85 * @return Returns name for the network interface with the specified 96 * @return Returns name for the network interface with the specified
86 * <code>index</code>. 97 * <code>index</code>.
87 */ 98 */
88 PP_Var GetName([in] PP_Resource resource, 99 PP_Var GetName([in] PP_Resource resource,
89 [in] uint32_t index); 100 [in] uint32_t index);
90 101
91 /** 102 /**
103 * Gets type of a network interface.
104 *
105 * @param[in] resource A <code>PP_Resource</code> corresponding to a
106 * network list.
107 * @param[in] index Index of the network interface.
108 *
92 * @return Returns type of the network interface with the specified 109 * @return Returns type of the network interface with the specified
93 * <code>index</code>. 110 * <code>index</code>.
94 */ 111 */
95 [on_failure=PP_NETWORKLIST_UNKNOWN] 112 [on_failure=PP_NETWORKLIST_UNKNOWN]
96 PP_NetworkListType_Private GetType([in] PP_Resource resource, 113 PP_NetworkListType_Private GetType([in] PP_Resource resource,
97 [in] uint32_t index); 114 [in] uint32_t index);
98 115
99 /** 116 /**
117 * Gets state of a network interface.
118 *
119 * @param[in] resource A <code>PP_Resource</code> corresponding to a
120 * network list.
121 * @param[in] index Index of the network interface.
122 *
100 * @return Returns current state of the network interface with the 123 * @return Returns current state of the network interface with the
101 * specified <code>index</code>. 124 * specified <code>index</code>.
102 */ 125 */
103 [on_failure=PP_NETWORKLIST_DOWN] 126 [on_failure=PP_NETWORKLIST_DOWN]
104 PP_NetworkListState_Private GetState([in] PP_Resource resource, 127 PP_NetworkListState_Private GetState([in] PP_Resource resource,
105 [in] uint32_t index); 128 [in] uint32_t index);
106 129
107 /** 130 /**
108 * Gets list of IP addresses for the network interface with the 131 * Gets list of IP addresses for a network interface.
109 * specified <code>index</code> and stores them in
110 * <code>addresses</code>. If the caller didn't allocate sufficient
111 * space to store all addresses, then only the first
112 * <code>count</code> addresses are filled in.
113 * 132 *
114 * @return Returns total number of IP addresses assigned to the 133 * @param[in] resource A <code>PP_Resource</code> corresponding to a
115 * network interface or a negative error code. 134 * network list.
135 * @param[in] index Index of the network interface.
136 * @param[in] output An output array which will receive
137 * <code>PPB_NetAddress</code> resources on success. Please note that the
138 * ref count of those resources has already been increased by 1 for the
139 * caller.
140 *
141 * @return An error code from <code>pp_errors.h</code>.
116 */ 142 */
117 int32_t GetIpAddresses( 143 int32_t GetIpAddresses([in] PP_Resource resource,
118 [in] PP_Resource resource, 144 [in] uint32_t index,
119 [in] uint32_t index, 145 [in] PP_ArrayOutput output);
120 [inout, size_is(count)] PP_NetAddress_Private[] addresses,
121 [in] uint32_t count);
122 146
123 /** 147 /**
148 * Gets display name of a network interface.
149 *
150 * @param[in] resource A <code>PP_Resource</code> corresponding to a
151 * network list.
152 * @param[in] index Index of the network interface.
153 *
124 * @return Returns display name for the network interface with the 154 * @return Returns display name for the network interface with the
125 * specified <code>index</code>. 155 * specified <code>index</code>.
126 */ 156 */
127 PP_Var GetDisplayName([in] PP_Resource resource, 157 PP_Var GetDisplayName([in] PP_Resource resource,
128 [in] uint32_t index); 158 [in] uint32_t index);
129 159
130 /** 160 /**
161 * Gets MTU (Maximum Transmission Unit) of a network interface.
162 *
163 * @param[in] resource A <code>PP_Resource</code> corresponding to a
164 * network list.
165 * @param[in] index Index of the network interface.
166 *
131 * @return Returns MTU for the network interface with the specified 167 * @return Returns MTU for the network interface with the specified
132 * <code>index</code> or 0 if MTU is unknown. 168 * <code>index</code> or 0 if MTU is unknown.
133 */ 169 */
134 uint32_t GetMTU([in] PP_Resource resource, 170 uint32_t GetMTU([in] PP_Resource resource,
135 [in] uint32_t index); 171 [in] uint32_t index);
136 172
137 }; 173 };
OLDNEW
« no previous file with comments | « content/renderer/pepper/resource_creation_impl.cc ('k') | ppapi/c/private/ppb_network_list_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698