| 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 // From ppb_url_request_info.idl modified Mon May 6 10:11:29 2013. | 5 // From ppb_url_request_info.idl modified Wed Jan 27 17:10:16 2016. |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
| 10 #include "ppapi/c/ppb_url_request_info.h" | 10 #include "ppapi/c/ppb_url_request_info.h" |
| 11 #include "ppapi/shared_impl/tracked_callback.h" | 11 #include "ppapi/shared_impl/tracked_callback.h" |
| 12 #include "ppapi/thunk/enter.h" | 12 #include "ppapi/thunk/enter.h" |
| 13 #include "ppapi/thunk/ppapi_thunk_export.h" | 13 #include "ppapi/thunk/ppapi_thunk_export.h" |
| 14 #include "ppapi/thunk/ppb_url_request_info_api.h" | 14 #include "ppapi/thunk/ppb_url_request_info_api.h" |
| 15 | 15 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 PP_Time expected_last_modified_time) { | 57 PP_Time expected_last_modified_time) { |
| 58 VLOG(4) << "PPB_URLRequestInfo::AppendFileToBody()"; | 58 VLOG(4) << "PPB_URLRequestInfo::AppendFileToBody()"; |
| 59 EnterResource<PPB_URLRequestInfo_API> enter(request, true); | 59 EnterResource<PPB_URLRequestInfo_API> enter(request, true); |
| 60 if (enter.failed()) | 60 if (enter.failed()) |
| 61 return PP_FALSE; | 61 return PP_FALSE; |
| 62 return enter.object()->AppendFileToBody( | 62 return enter.object()->AppendFileToBody( |
| 63 file_ref, start_offset, number_of_bytes, expected_last_modified_time); | 63 file_ref, start_offset, number_of_bytes, expected_last_modified_time); |
| 64 } | 64 } |
| 65 | 65 |
| 66 const PPB_URLRequestInfo_1_0 g_ppb_urlrequestinfo_thunk_1_0 = { | 66 const PPB_URLRequestInfo_1_0 g_ppb_urlrequestinfo_thunk_1_0 = { |
| 67 &Create, | 67 &Create, &IsURLRequestInfo, &SetProperty, &AppendDataToBody, |
| 68 &IsURLRequestInfo, | |
| 69 &SetProperty, | |
| 70 &AppendDataToBody, | |
| 71 &AppendFileToBody}; | 68 &AppendFileToBody}; |
| 72 | 69 |
| 73 } // namespace | 70 } // namespace |
| 74 | 71 |
| 75 PPAPI_THUNK_EXPORT const PPB_URLRequestInfo_1_0* | 72 PPAPI_THUNK_EXPORT const PPB_URLRequestInfo_1_0* |
| 76 GetPPB_URLRequestInfo_1_0_Thunk() { | 73 GetPPB_URLRequestInfo_1_0_Thunk() { |
| 77 return &g_ppb_urlrequestinfo_thunk_1_0; | 74 return &g_ppb_urlrequestinfo_thunk_1_0; |
| 78 } | 75 } |
| 79 | 76 |
| 80 } // namespace thunk | 77 } // namespace thunk |
| 81 } // namespace ppapi | 78 } // namespace ppapi |
| OLD | NEW |