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

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

Issue 10762017: PPAPI: Add an API for setting a custom user agent for URL requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: foo Created 8 years, 5 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 | « no previous file | ppapi/c/ppb_url_request_info.h » ('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 <code>PPB_URLRequestInfo</code> API for creating and 7 * This file defines the <code>PPB_URLRequestInfo</code> API for creating and
8 * manipulating URL requests. 8 * manipulating URL requests.
9 */ 9 */
10 10
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 * not defined and is set by the browser to a value appropriate for the 133 * not defined and is set by the browser to a value appropriate for the
134 * default <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD</code>. 134 * default <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD</code>.
135 * Set it to an integer to set a lower threshold for the prefetched buffer 135 * Set it to an integer to set a lower threshold for the prefetched buffer
136 * of an asynchronous load. When reached, the browser will resume loading if 136 * of an asynchronous load. When reached, the browser will resume loading if
137 * If <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERERTHRESHOLD</code> had 137 * If <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERERTHRESHOLD</code> had
138 * previously been reached. 138 * previously been reached.
139 * When setting this property, 139 * When setting this property,
140 * <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD</code> must also 140 * <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD</code> must also
141 * be set. Behavior is undefined if the former is >= the latter. 141 * be set. Behavior is undefined if the former is >= the latter.
142 */ 142 */
143 PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERTHRESHOLD = 12 143 PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERTHRESHOLD = 12,
144
145 /**
146 * This corresponds to a string (<code>PP_VARTYPE_STRING</code>) or may be
147 * undefined (<code>PP_VARTYPE_UNDEFINED</code>; default). Set it to a string
148 * to set a custom user-agent header (if empty, that header will be omitted),
149 * or to undefined to use the default. Only loaders with universal access
150 * (only available on trusted implementations) will accept
151 * <code>URLRequestInfo</code> objects that try to set a custom user agent; if
152 * given to a loader without universal access, <code>PP_ERROR_NOACCESS</code>
153 * will result.
154 */
155 PP_URLREQUESTPROPERTY_CUSTOMUSERAGENT = 13
144 }; 156 };
145 157
146 /** 158 /**
147 * The <code>PPB_URLRequestInfo</code> interface is used to create 159 * The <code>PPB_URLRequestInfo</code> interface is used to create
148 * and handle URL requests. This API is used in conjunction with 160 * and handle URL requests. This API is used in conjunction with
149 * <code>PPB_URLLoader</code>. Refer to <code>PPB_URLLoader</code> for further 161 * <code>PPB_URLLoader</code>. Refer to <code>PPB_URLLoader</code> for further
150 * information. 162 * information.
151 */ 163 */
152 interface PPB_URLRequestInfo { 164 interface PPB_URLRequestInfo {
153 /** 165 /**
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 * of the parameters are invalid. 249 * of the parameters are invalid.
238 */ 250 */
239 PP_Bool AppendFileToBody( 251 PP_Bool AppendFileToBody(
240 [in] PP_Resource request, 252 [in] PP_Resource request,
241 [in] PP_Resource file_ref, 253 [in] PP_Resource file_ref,
242 [in] int64_t start_offset, 254 [in] int64_t start_offset,
243 [in] int64_t number_of_bytes, 255 [in] int64_t number_of_bytes,
244 [in] PP_Time expected_last_modified_time); 256 [in] PP_Time expected_last_modified_time);
245 }; 257 };
246 258
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/ppb_url_request_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698