OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2010 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 #ifndef PPAPI_C_PPB_URL_RESPONSE_INFO_H_ | 5 #ifndef PPAPI_C_PPB_URL_RESPONSE_INFO_H_ |
6 #define PPAPI_C_PPB_URL_RESPONSE_INFO_H_ | 6 #define PPAPI_C_PPB_URL_RESPONSE_INFO_H_ |
7 | 7 |
8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
9 #include "ppapi/c/pp_macros.h" | 9 #include "ppapi/c/pp_macros.h" |
10 #include "ppapi/c/pp_resource.h" | 10 #include "ppapi/c/pp_resource.h" |
11 #include "ppapi/c/pp_var.h" | 11 #include "ppapi/c/pp_var.h" |
12 | 12 |
13 typedef enum { | 13 typedef enum { |
14 PP_URLRESPONSEPROPERTY_URL, // string | 14 PP_URLRESPONSEPROPERTY_URL, // string |
(...skipping 20 matching lines...) Expand all Loading... |
35 | 35 |
36 // Returns a FileRef pointing to the file containing the response body. This | 36 // Returns a FileRef pointing to the file containing the response body. This |
37 // is only valid if PP_URLREQUESTPROPERTY_STREAMTOFILE was set on the | 37 // is only valid if PP_URLREQUESTPROPERTY_STREAMTOFILE was set on the |
38 // URLRequestInfo used to produce this response. This file remains valid | 38 // URLRequestInfo used to produce this response. This file remains valid |
39 // until the URLLoader associated with this URLResponseInfo is closed or | 39 // until the URLLoader associated with this URLResponseInfo is closed or |
40 // destroyed. Returns 0 if PP_URLREQUESTPROPERTY_STREAMTOFILE was not | 40 // destroyed. Returns 0 if PP_URLREQUESTPROPERTY_STREAMTOFILE was not |
41 // requested or if the URLLoader has not been opened yet. | 41 // requested or if the URLLoader has not been opened yet. |
42 PP_Resource (*GetBodyAsFileRef)(PP_Resource response); | 42 PP_Resource (*GetBodyAsFileRef)(PP_Resource response); |
43 }; | 43 }; |
44 | 44 |
45 #endif // PPAPI_C_PPB_URL_RESPONSE_INFO_H_ | 45 #endif /* PPAPI_C_PPB_URL_RESPONSE_INFO_H_ */ |
| 46 |
OLD | NEW |