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

Side by Side Diff: ppapi/c/ppb_url_request_info.h

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 | « ppapi/api/ppb_url_request_info.idl ('k') | ppapi/cpp/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 /* From ppb_url_request_info.idl modified Mon Nov 14 10:36:01 2011. */ 6 /* From ppb_url_request_info.idl modified Tue Jul 10 09:05:59 2012. */
7 7
8 #ifndef PPAPI_C_PPB_URL_REQUEST_INFO_H_ 8 #ifndef PPAPI_C_PPB_URL_REQUEST_INFO_H_
9 #define PPAPI_C_PPB_URL_REQUEST_INFO_H_ 9 #define PPAPI_C_PPB_URL_REQUEST_INFO_H_
10 10
11 #include "ppapi/c/pp_bool.h" 11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_instance.h" 12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_macros.h" 13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_resource.h" 14 #include "ppapi/c/pp_resource.h"
15 #include "ppapi/c/pp_stdint.h" 15 #include "ppapi/c/pp_stdint.h"
16 #include "ppapi/c/pp_time.h" 16 #include "ppapi/c/pp_time.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 * not defined and is set by the browser to a value appropriate for the 138 * not defined and is set by the browser to a value appropriate for the
139 * default <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD</code>. 139 * default <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD</code>.
140 * Set it to an integer to set a lower threshold for the prefetched buffer 140 * Set it to an integer to set a lower threshold for the prefetched buffer
141 * of an asynchronous load. When reached, the browser will resume loading if 141 * of an asynchronous load. When reached, the browser will resume loading if
142 * If <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERERTHRESHOLD</code> had 142 * If <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERERTHRESHOLD</code> had
143 * previously been reached. 143 * previously been reached.
144 * When setting this property, 144 * When setting this property,
145 * <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD</code> must also 145 * <code>PP_URLREQUESTPROPERTY_PREFETCHBUFFERUPPERTHRESHOLD</code> must also
146 * be set. Behavior is undefined if the former is >= the latter. 146 * be set. Behavior is undefined if the former is >= the latter.
147 */ 147 */
148 PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERTHRESHOLD = 12 148 PP_URLREQUESTPROPERTY_PREFETCHBUFFERLOWERTHRESHOLD = 12,
149 /**
150 * This corresponds to a string (<code>PP_VARTYPE_STRING</code>) or may be
151 * undefined (<code>PP_VARTYPE_UNDEFINED</code>; default). Set it to a string
152 * to set a custom user-agent header (if empty, that header will be omitted),
153 * or to undefined to use the default. Only loaders with universal access
154 * (only available on trusted implementations) will accept
155 * <code>URLRequestInfo</code> objects that try to set a custom user agent; if
156 * given to a loader without universal access, <code>PP_ERROR_NOACCESS</code>
157 * will result.
158 */
159 PP_URLREQUESTPROPERTY_CUSTOMUSERAGENT = 13
149 } PP_URLRequestProperty; 160 } PP_URLRequestProperty;
150 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLRequestProperty, 4); 161 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLRequestProperty, 4);
151 /** 162 /**
152 * @} 163 * @}
153 */ 164 */
154 165
155 /** 166 /**
156 * @addtogroup Interfaces 167 * @addtogroup Interfaces
157 * @{ 168 * @{
158 */ 169 */
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 PP_Time expected_last_modified_time); 259 PP_Time expected_last_modified_time);
249 }; 260 };
250 261
251 typedef struct PPB_URLRequestInfo_1_0 PPB_URLRequestInfo; 262 typedef struct PPB_URLRequestInfo_1_0 PPB_URLRequestInfo;
252 /** 263 /**
253 * @} 264 * @}
254 */ 265 */
255 266
256 #endif /* PPAPI_C_PPB_URL_REQUEST_INFO_H_ */ 267 #endif /* PPAPI_C_PPB_URL_REQUEST_INFO_H_ */
257 268
OLDNEW
« no previous file with comments | « ppapi/api/ppb_url_request_info.idl ('k') | ppapi/cpp/url_request_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698