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

Side by Side Diff: ppapi/thunk/ppb_url_request_info_thunk.cc

Issue 1778683003: Ran ppapi/generators/generator.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « ppapi/thunk/ppb_url_loader_trusted_thunk.cc ('k') | ppapi/thunk/ppb_url_response_info_thunk.cc » ('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 // From ppb_url_request_info.idl modified Mon May 6 10:11:29 2013. 5 // From ppb_url_request_info.idl modified Tue Mar 25 14:43:09 2014.
6
7 #include <stdint.h>
8 6
9 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/c/ppb_url_request_info.h" 8 #include "ppapi/c/ppb_url_request_info.h"
11 #include "ppapi/shared_impl/tracked_callback.h" 9 #include "ppapi/shared_impl/tracked_callback.h"
12 #include "ppapi/thunk/enter.h" 10 #include "ppapi/thunk/enter.h"
13 #include "ppapi/thunk/ppapi_thunk_export.h" 11 #include "ppapi/thunk/ppapi_thunk_export.h"
14 #include "ppapi/thunk/ppb_url_request_info_api.h" 12 #include "ppapi/thunk/ppb_url_request_info_api.h"
15 13
16 namespace ppapi { 14 namespace ppapi {
17 namespace thunk { 15 namespace thunk {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 PP_Time expected_last_modified_time) { 55 PP_Time expected_last_modified_time) {
58 VLOG(4) << "PPB_URLRequestInfo::AppendFileToBody()"; 56 VLOG(4) << "PPB_URLRequestInfo::AppendFileToBody()";
59 EnterResource<PPB_URLRequestInfo_API> enter(request, true); 57 EnterResource<PPB_URLRequestInfo_API> enter(request, true);
60 if (enter.failed()) 58 if (enter.failed())
61 return PP_FALSE; 59 return PP_FALSE;
62 return enter.object()->AppendFileToBody( 60 return enter.object()->AppendFileToBody(
63 file_ref, start_offset, number_of_bytes, expected_last_modified_time); 61 file_ref, start_offset, number_of_bytes, expected_last_modified_time);
64 } 62 }
65 63
66 const PPB_URLRequestInfo_1_0 g_ppb_urlrequestinfo_thunk_1_0 = { 64 const PPB_URLRequestInfo_1_0 g_ppb_urlrequestinfo_thunk_1_0 = {
67 &Create, 65 &Create, &IsURLRequestInfo, &SetProperty, &AppendDataToBody,
68 &IsURLRequestInfo,
69 &SetProperty,
70 &AppendDataToBody,
71 &AppendFileToBody}; 66 &AppendFileToBody};
72 67
73 } // namespace 68 } // namespace
74 69
75 PPAPI_THUNK_EXPORT const PPB_URLRequestInfo_1_0* 70 PPAPI_THUNK_EXPORT const PPB_URLRequestInfo_1_0*
76 GetPPB_URLRequestInfo_1_0_Thunk() { 71 GetPPB_URLRequestInfo_1_0_Thunk() {
77 return &g_ppb_urlrequestinfo_thunk_1_0; 72 return &g_ppb_urlrequestinfo_thunk_1_0;
78 } 73 }
79 74
80 } // namespace thunk 75 } // namespace thunk
81 } // namespace ppapi 76 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_url_loader_trusted_thunk.cc ('k') | ppapi/thunk/ppb_url_response_info_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698