OLD | NEW |
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 Tue Jul 10 09:05:59 2012. */ | 6 /* From ppb_url_request_info.idl modified Thu Mar 28 10:19:35 2013. */ |
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 24 matching lines...) Expand all Loading... |
41 * POST or GET. Refer to the | 41 * POST or GET. Refer to the |
42 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html">HTTP | 42 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html">HTTP |
43 * Methods</a> documentation for further information. | 43 * Methods</a> documentation for further information. |
44 * | 44 * |
45 */ | 45 */ |
46 PP_URLREQUESTPROPERTY_METHOD = 1, | 46 PP_URLREQUESTPROPERTY_METHOD = 1, |
47 /** | 47 /** |
48 * This corresponds to a string (<code>PP_VARTYPE_STRING</code>); \n | 48 * This corresponds to a string (<code>PP_VARTYPE_STRING</code>); \n |
49 * delimited. Refer to the | 49 * delimited. Refer to the |
50 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html"Header | 50 * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html"Header |
51 * Field Definitions</a> documentaiton for further information. | 51 * Field Definitions</a> documentation for further information. |
52 */ | 52 */ |
53 PP_URLREQUESTPROPERTY_HEADERS = 2, | 53 PP_URLREQUESTPROPERTY_HEADERS = 2, |
54 /** | 54 /** |
55 * This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>; | 55 * This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>; |
56 * default=<code>PP_FALSE</code>). | 56 * default=<code>PP_FALSE</code>). |
57 * Set this value to <code>PP_TRUE</code> if you want to download the data | 57 * Set this value to <code>PP_TRUE</code> if you want to download the data |
58 * to a file. Use PPB_URLLoader.FinishStreamingToFile() to complete the | 58 * to a file. Use PPB_URLLoader.FinishStreamingToFile() to complete the |
59 * download. | 59 * download. |
60 */ | 60 */ |
61 PP_URLREQUESTPROPERTY_STREAMTOFILE = 3, | 61 PP_URLREQUESTPROPERTY_STREAMTOFILE = 3, |
62 /** | 62 /** |
63 * This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>; | 63 * This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>; |
64 * default=<code>PP_TRUE</code>). | 64 * default=<code>PP_TRUE</code>). |
65 * Set this value to <code>PP_FALSE</code> if you want to use | 65 * Set this value to <code>PP_FALSE</code> if you want to use |
66 * PPB_URLLoader.FollowRedirects() to follow the redirects only after | 66 * PPB_URLLoader.FollowRedirects() to follow the redirects only after |
67 * examining redirect headers. | 67 * examining redirect headers. |
68 */ | 68 */ |
69 PP_URLREQUESTPROPERTY_FOLLOWREDIRECTS = 4, | 69 PP_URLREQUESTPROPERTY_FOLLOWREDIRECTS = 4, |
70 /** | 70 /** |
71 * This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>; | 71 * This corresponds to a <code>PP_Bool</code> (<code>PP_VARTYPE_BOOL</code>; |
72 * default=<code>PP_FALSE</code>). | 72 * default=<code>PP_FALSE</code>). |
73 * Set this value to <code>PP_TRUE</code> if you want to be able to poll the | 73 * Set this value to <code>PP_TRUE</code> if you want to be able to poll the |
74 * download progress using PPB_URLLoader.GetDownloadProgress(). | 74 * download progress using PPB_URLLoader.GetDownloadProgress(). |
75 */ | 75 */ |
76 PP_URLREQUESTPROPERTY_RECORDDOWNLOADPROGRESS = 5, | 76 PP_URLREQUESTPROPERTY_RECORDDOWNLOADPROGRESS = 5, |
77 /** | 77 /** |
78 * This corresponds to a <code>PP_Bool</code> | 78 * This corresponds to a <code>PP_Bool</code> |
79 * (default=<code>PP_FALSE</code>). Set this value to <code>PP_TRUE</code> if | 79 * (default=<code>PP_FALSE</code>). Set this value to <code>PP_TRUE</code> if |
80 * you want to be able to poll the upload progress using | 80 * you want to be able to poll the upload progress using |
81 * PPB_URLLoader.GetUplaodProgress(). | 81 * PPB_URLLoader.GetUploadProgress(). |
82 */ | 82 */ |
83 PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS = 6, | 83 PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS = 6, |
84 /** | 84 /** |
85 * This corresponds to a string (<code>PP_VARTYPE_STRING)</code> or may be | 85 * This corresponds to a string (<code>PP_VARTYPE_STRING)</code> or may be |
86 * undefined (<code>PP_VARTYPE_UNDEFINED</code>; default). | 86 * undefined (<code>PP_VARTYPE_UNDEFINED</code>; default). |
87 * Set it to a string to set a custom referrer (if empty, the referrer header | 87 * Set it to a string to set a custom referrer (if empty, the referrer header |
88 * will be omitted), or to undefined to use the default referrer. Only loaders | 88 * will be omitted), or to undefined to use the default referrer. Only loaders |
89 * with universal access (only available on trusted implementations) will | 89 * with universal access (only available on trusted implementations) will |
90 * accept <code>URLRequestInfo</code> objects that try to set a custom | 90 * accept <code>URLRequestInfo</code> objects that try to set a custom |
91 * referrer; if given to a loader without universal access, | 91 * referrer; if given to a loader without universal access, |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 PP_Time expected_last_modified_time); | 259 PP_Time expected_last_modified_time); |
260 }; | 260 }; |
261 | 261 |
262 typedef struct PPB_URLRequestInfo_1_0 PPB_URLRequestInfo; | 262 typedef struct PPB_URLRequestInfo_1_0 PPB_URLRequestInfo; |
263 /** | 263 /** |
264 * @} | 264 * @} |
265 */ | 265 */ |
266 | 266 |
267 #endif /* PPAPI_C_PPB_URL_REQUEST_INFO_H_ */ | 267 #endif /* PPAPI_C_PPB_URL_REQUEST_INFO_H_ */ |
268 | 268 |
OLD | NEW |