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

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

Issue 137353003: Pepper: Reduce includes in generated thunks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/thunk/ppb_udp_socket_thunk.cc ('k') | ppapi/thunk/ppb_url_loader_trusted_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_loader.idl modified Wed Apr 17 11:16:00 2013. 5 // From ppb_url_loader.idl modified Tue Aug 20 08:13:36 2013.
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "ppapi/c/pp_completion_callback.h" 9 #include "ppapi/c/pp_completion_callback.h"
10 #include "ppapi/c/pp_errors.h" 10 #include "ppapi/c/pp_errors.h"
11 #include "ppapi/c/ppb_url_loader.h" 11 #include "ppapi/c/ppb_url_loader.h"
12 #include "ppapi/shared_impl/tracked_callback.h" 12 #include "ppapi/shared_impl/tracked_callback.h"
13 #include "ppapi/thunk/enter.h" 13 #include "ppapi/thunk/enter.h"
14 #include "ppapi/thunk/ppb_instance_api.h" 14 #include "ppapi/thunk/ppapi_thunk_export.h"
15 #include "ppapi/thunk/ppb_url_loader_api.h" 15 #include "ppapi/thunk/ppb_url_loader_api.h"
16 #include "ppapi/thunk/resource_creation_api.h"
17 #include "ppapi/thunk/thunk.h"
18 16
19 namespace ppapi { 17 namespace ppapi {
20 namespace thunk { 18 namespace thunk {
21 19
22 namespace { 20 namespace {
23 21
24 PP_Resource Create(PP_Instance instance) { 22 PP_Resource Create(PP_Instance instance) {
25 VLOG(4) << "PPB_URLLoader::Create()"; 23 VLOG(4) << "PPB_URLLoader::Create()";
26 EnterResourceCreation enter(instance); 24 EnterResourceCreation enter(instance);
27 if (enter.failed()) 25 if (enter.failed())
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 &GetUploadProgress, 126 &GetUploadProgress,
129 &GetDownloadProgress, 127 &GetDownloadProgress,
130 &GetResponseInfo, 128 &GetResponseInfo,
131 &ReadResponseBody, 129 &ReadResponseBody,
132 &FinishStreamingToFile, 130 &FinishStreamingToFile,
133 &Close 131 &Close
134 }; 132 };
135 133
136 } // namespace 134 } // namespace
137 135
138 const PPB_URLLoader_1_0* GetPPB_URLLoader_1_0_Thunk() { 136 PPAPI_THUNK_EXPORT const PPB_URLLoader_1_0* GetPPB_URLLoader_1_0_Thunk() {
139 return &g_ppb_urlloader_thunk_1_0; 137 return &g_ppb_urlloader_thunk_1_0;
140 } 138 }
141 139
142 } // namespace thunk 140 } // namespace thunk
143 } // namespace ppapi 141 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_udp_socket_thunk.cc ('k') | ppapi/thunk/ppb_url_loader_trusted_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698