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

Side by Side Diff: ppapi/api/ppb_url_loader.idl

Issue 14007010: Pepper: Autogenerate thunk for PPB_URL_Loader. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix sizeof statements Created 7 years, 8 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
« no previous file with comments | « ppapi/api/ppb_gamepad.idl ('k') | ppapi/api/trusted/ppb_url_loader_trusted.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <strong>PPB_URLLoader</strong> interface for loading 7 * This file defines the <strong>PPB_URLLoader</strong> interface for loading
8 * URLs. 8 * URLs.
9 */ 9 */
10 10
11 [generate_thunk]
12
11 label Chrome { 13 label Chrome {
12 M14 = 1.0 14 M14 = 1.0
13 }; 15 };
14 16
15 /** 17 /**
16 * The <strong>PPB_URLLoader</strong> interface contains pointers to functions 18 * The <strong>PPB_URLLoader</strong> interface contains pointers to functions
17 * for loading URLs. The typical steps for loading a URL are: 19 * for loading URLs. The typical steps for loading a URL are:
18 * 20 *
19 * -# Call Create() to create a URLLoader object. 21 * -# Call Create() to create a URLLoader object.
20 * -# Create a <code>URLRequestInfo</code> object and set properties on it. 22 * -# Create a <code>URLRequestInfo</code> object and set properties on it.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 * property set to PP_TRUE. 111 * property set to PP_TRUE.
110 * 112 *
111 * @param[in] loader A <code>PP_Resource</code> corresponding to a 113 * @param[in] loader A <code>PP_Resource</code> corresponding to a
112 * <code>URLLoader</code>. 114 * <code>URLLoader</code>.
113 * @param[in] bytes_sent The number of bytes sent thus far. 115 * @param[in] bytes_sent The number of bytes sent thus far.
114 * @param[in] total_bytes_to_be_sent The total number of bytes to be sent. 116 * @param[in] total_bytes_to_be_sent The total number of bytes to be sent.
115 * 117 *
116 * @return <code>PP_TRUE</code> if the upload progress is available, 118 * @return <code>PP_TRUE</code> if the upload progress is available,
117 * <code>PP_FALSE</code> if it is not available. 119 * <code>PP_FALSE</code> if it is not available.
118 */ 120 */
121 [always_set_output_parameters]
119 PP_Bool GetUploadProgress( 122 PP_Bool GetUploadProgress(
120 [in] PP_Resource loader, 123 [in] PP_Resource loader,
121 [out] int64_t bytes_sent, 124 [out] int64_t bytes_sent,
122 [out] int64_t total_bytes_to_be_sent); 125 [out] int64_t total_bytes_to_be_sent);
123 126
124 /** 127 /**
125 * GetDownloadProgress() returns the current download progress, which is 128 * GetDownloadProgress() returns the current download progress, which is
126 * meaningful after Open() has been called. Progress only refers to the 129 * meaningful after Open() has been called. Progress only refers to the
127 * response body and does not include the headers. 130 * response body and does not include the headers.
128 * 131 *
129 * This data is only available if the <code>URLRequestInfo</code> passed to 132 * This data is only available if the <code>URLRequestInfo</code> passed to
130 * Open() had the <code>PP_URLREQUESTPROPERTY_REPORTDOWNLOADPROGRESS</code> 133 * Open() had the <code>PP_URLREQUESTPROPERTY_REPORTDOWNLOADPROGRESS</code>
131 * property set to <code>PP_TRUE</code>. 134 * property set to <code>PP_TRUE</code>.
132 * 135 *
133 * @param[in] loader A <code>PP_Resource</code> corresponding to a 136 * @param[in] loader A <code>PP_Resource</code> corresponding to a
134 * <code>URLLoader</code>. 137 * <code>URLLoader</code>.
135 * @param[in] bytes_received The number of bytes received thus far. 138 * @param[in] bytes_received The number of bytes received thus far.
136 * @param[in] total_bytes_to_be_received The total number of bytes to be 139 * @param[in] total_bytes_to_be_received The total number of bytes to be
137 * received. The total bytes to be received may be unknown, in which case 140 * received. The total bytes to be received may be unknown, in which case
138 * <code>total_bytes_to_be_received</code> will be set to -1. 141 * <code>total_bytes_to_be_received</code> will be set to -1.
139 * 142 *
140 * @return <code>PP_TRUE</code> if the download progress is available, 143 * @return <code>PP_TRUE</code> if the download progress is available,
141 * <code>PP_FALSE</code> if it is not available. 144 * <code>PP_FALSE</code> if it is not available.
142 */ 145 */
146 [always_set_output_parameters]
143 PP_Bool GetDownloadProgress( 147 PP_Bool GetDownloadProgress(
144 [in] PP_Resource loader, 148 [in] PP_Resource loader,
145 [out] int64_t bytes_received, 149 [out] int64_t bytes_received,
146 [out] int64_t total_bytes_to_be_received); 150 [out] int64_t total_bytes_to_be_received);
147 151
148 /** 152 /**
149 * GetResponseInfo() returns the current <code>URLResponseInfo</code> object. 153 * GetResponseInfo() returns the current <code>URLResponseInfo</code> object.
150 * 154 *
151 * @param[in] instance A <code>PP_Resource</code> corresponding to a 155 * @param[in] instance A <code>PP_Resource</code> corresponding to a
152 * <code>URLLoader</code>. 156 * <code>URLLoader</code>.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 * while it is still open, then it will be implicitly closed so you are not 216 * while it is still open, then it will be implicitly closed so you are not
213 * required to call Close(). 217 * required to call Close().
214 * 218 *
215 * @param[in] loader A <code>PP_Resource</code> corresponding to a 219 * @param[in] loader A <code>PP_Resource</code> corresponding to a
216 * <code>URLLoader</code>. 220 * <code>URLLoader</code>.
217 */ 221 */
218 void Close( 222 void Close(
219 [in] PP_Resource loader); 223 [in] PP_Resource loader);
220 }; 224 };
221 225
OLDNEW
« no previous file with comments | « ppapi/api/ppb_gamepad.idl ('k') | ppapi/api/trusted/ppb_url_loader_trusted.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698