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

Side by Side Diff: ppapi/thunk/ppb_isolated_file_system_private_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_instance_thunk.cc ('k') | ppapi/thunk/ppb_media_stream_video_track_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 private/ppb_isolated_file_system_private.idl, 5 // From private/ppb_isolated_file_system_private.idl,
6 // modified Fri Nov 8 02:21:15 2013. 6 // modified Mon Nov 25 11:17:07 2013.
7 7
8 #include "ppapi/c/pp_completion_callback.h" 8 #include "ppapi/c/pp_completion_callback.h"
9 #include "ppapi/c/pp_errors.h" 9 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/c/private/ppb_isolated_file_system_private.h" 10 #include "ppapi/c/private/ppb_isolated_file_system_private.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/ppb_instance_api.h" 13 #include "ppapi/thunk/ppapi_thunk_export.h"
14 #include "ppapi/thunk/ppb_isolated_file_system_private_api.h" 14 #include "ppapi/thunk/ppb_isolated_file_system_private_api.h"
15 #include "ppapi/thunk/resource_creation_api.h"
16 #include "ppapi/thunk/thunk.h"
17 15
18 namespace ppapi { 16 namespace ppapi {
19 namespace thunk { 17 namespace thunk {
20 18
21 namespace { 19 namespace {
22 20
23 int32_t Open(PP_Instance instance, 21 int32_t Open(PP_Instance instance,
24 PP_IsolatedFileSystemType_Private type, 22 PP_IsolatedFileSystemType_Private type,
25 PP_Resource* file_system, 23 PP_Resource* file_system,
26 struct PP_CompletionCallback callback) { 24 struct PP_CompletionCallback callback) {
27 VLOG(4) << "PPB_IsolatedFileSystem_Private::Open()"; 25 VLOG(4) << "PPB_IsolatedFileSystem_Private::Open()";
28 EnterInstanceAPI<PPB_IsolatedFileSystem_Private_API> enter(instance, 26 EnterInstanceAPI<PPB_IsolatedFileSystem_Private_API> enter(instance,
29 callback); 27 callback);
30 if (enter.failed()) 28 if (enter.failed())
31 return enter.retval(); 29 return enter.retval();
32 return enter.SetResult(enter.functions()->Open(instance, 30 return enter.SetResult(enter.functions()->Open(instance,
33 type, 31 type,
34 file_system, 32 file_system,
35 enter.callback())); 33 enter.callback()));
36 } 34 }
37 35
38 const PPB_IsolatedFileSystem_Private_0_2 36 const PPB_IsolatedFileSystem_Private_0_2
39 g_ppb_isolatedfilesystem_private_thunk_0_2 = { 37 g_ppb_isolatedfilesystem_private_thunk_0_2 = {
40 &Open 38 &Open
41 }; 39 };
42 40
43 } // namespace 41 } // namespace
44 42
45 const PPB_IsolatedFileSystem_Private_0_2* 43 PPAPI_THUNK_EXPORT const PPB_IsolatedFileSystem_Private_0_2*
46 GetPPB_IsolatedFileSystem_Private_0_2_Thunk() { 44 GetPPB_IsolatedFileSystem_Private_0_2_Thunk() {
47 return &g_ppb_isolatedfilesystem_private_thunk_0_2; 45 return &g_ppb_isolatedfilesystem_private_thunk_0_2;
48 } 46 }
49 47
50 } // namespace thunk 48 } // namespace thunk
51 } // namespace ppapi 49 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_instance_thunk.cc ('k') | ppapi/thunk/ppb_media_stream_video_track_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698