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

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

Issue 1820873005: Run 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_file_io_thunk.cc ('k') | ppapi/thunk/ppb_find_private_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_file_system.idl modified Wed May 15 13:57:07 2013. 5 // From ppb_file_system.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_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_file_system.h" 11 #include "ppapi/c/ppb_file_system.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/ppapi_thunk_export.h" 14 #include "ppapi/thunk/ppapi_thunk_export.h"
15 #include "ppapi/thunk/ppb_file_system_api.h" 15 #include "ppapi/thunk/ppb_file_system_api.h"
(...skipping 28 matching lines...) Expand all
44 } 44 }
45 45
46 PP_FileSystemType GetType(PP_Resource file_system) { 46 PP_FileSystemType GetType(PP_Resource file_system) {
47 VLOG(4) << "PPB_FileSystem::GetType()"; 47 VLOG(4) << "PPB_FileSystem::GetType()";
48 EnterResource<PPB_FileSystem_API> enter(file_system, true); 48 EnterResource<PPB_FileSystem_API> enter(file_system, true);
49 if (enter.failed()) 49 if (enter.failed())
50 return PP_FILESYSTEMTYPE_INVALID; 50 return PP_FILESYSTEMTYPE_INVALID;
51 return enter.object()->GetType(); 51 return enter.object()->GetType();
52 } 52 }
53 53
54 const PPB_FileSystem_1_0 g_ppb_filesystem_thunk_1_0 = {&Create, 54 const PPB_FileSystem_1_0 g_ppb_filesystem_thunk_1_0 = {&Create, &IsFileSystem,
55 &IsFileSystem, 55 &Open, &GetType};
56 &Open,
57 &GetType};
58 56
59 } // namespace 57 } // namespace
60 58
61 PPAPI_THUNK_EXPORT const PPB_FileSystem_1_0* GetPPB_FileSystem_1_0_Thunk() { 59 PPAPI_THUNK_EXPORT const PPB_FileSystem_1_0* GetPPB_FileSystem_1_0_Thunk() {
62 return &g_ppb_filesystem_thunk_1_0; 60 return &g_ppb_filesystem_thunk_1_0;
63 } 61 }
64 62
65 } // namespace thunk 63 } // namespace thunk
66 } // namespace ppapi 64 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_file_io_thunk.cc ('k') | ppapi/thunk/ppb_find_private_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698