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

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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 /** 99 /**
100 * @return Returns current state of the network interface with the 100 * @return Returns current state of the network interface with the
101 * specified <code>index</code>. 101 * specified <code>index</code>.
102 */ 102 */
103 [on_failure=PP_NETWORKLIST_DOWN] 103 [on_failure=PP_NETWORKLIST_DOWN]
104 PP_NetworkListState_Private GetState([in] PP_Resource resource, 104 PP_NetworkListState_Private GetState([in] PP_Resource resource,
105 [in] uint32_t index); 105 [in] uint32_t index);
106 106
107 /** 107 /**
108 * Gets list of IP addresses for the network interface with the 108 * 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 * 109 *
114 * @return Returns total number of IP addresses assigned to the 110 * @param[in] resource A <code>PP_Resource</code> corresponding to a
yzshen1 2013/09/03 17:47:32 It would be nice to convert all other comments to
Sergey Ulanov 2013/09/03 23:42:54 Done.
115 * network interface or a negative error code. 111 * network list.
112 * @param[in] index Index of the network interface.
113 * @param[in] output An output array which will receive
114 * <code>PPB_NetAddress</code> resources on success. Please note that the
115 * ref count of those resources has already been increased byr the
yzshen1 2013/09/03 17:47:32 byr -> for.
Sergey Ulanov 2013/09/03 23:42:54 Done.
116 * caller.
117 *
118 * @return An error code from <code>pp_errors.h</code>.
116 */ 119 */
117 int32_t GetIpAddresses( 120 int32_t GetIpAddresses([in] PP_Resource resource,
118 [in] PP_Resource resource, 121 [in] uint32_t index,
119 [in] uint32_t index, 122 [in] PP_ArrayOutput output);
120 [inout, size_is(count)] PP_NetAddress_Private[] addresses,
121 [in] uint32_t count);
122 123
123 /** 124 /**
124 * @return Returns display name for the network interface with the 125 * @return Returns display name for the network interface with the
125 * specified <code>index</code>. 126 * specified <code>index</code>.
126 */ 127 */
127 PP_Var GetDisplayName([in] PP_Resource resource, 128 PP_Var GetDisplayName([in] PP_Resource resource,
128 [in] uint32_t index); 129 [in] uint32_t index);
129 130
130 /** 131 /**
131 * @return Returns MTU for the network interface with the specified 132 * @return Returns MTU for the network interface with the specified
132 * <code>index</code> or 0 if MTU is unknown. 133 * <code>index</code> or 0 if MTU is unknown.
133 */ 134 */
134 uint32_t GetMTU([in] PP_Resource resource, 135 uint32_t GetMTU([in] PP_Resource resource,
135 [in] uint32_t index); 136 [in] uint32_t index);
136 137
137 }; 138 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698