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