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

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

Issue 238923007: PPAPI: Format ppapi/thunk using clang-format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 8 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
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 Tue Aug 20 08:13:36 2013. 5 // From ppb_file_system.idl modified Wed May 15 13:57:07 2013.
6 6
7 #include "ppapi/c/pp_completion_callback.h" 7 #include "ppapi/c/pp_completion_callback.h"
8 #include "ppapi/c/pp_errors.h" 8 #include "ppapi/c/pp_errors.h"
9 #include "ppapi/c/ppb_file_system.h" 9 #include "ppapi/c/ppb_file_system.h"
10 #include "ppapi/shared_impl/tracked_callback.h" 10 #include "ppapi/shared_impl/tracked_callback.h"
11 #include "ppapi/thunk/enter.h" 11 #include "ppapi/thunk/enter.h"
12 #include "ppapi/thunk/ppapi_thunk_export.h" 12 #include "ppapi/thunk/ppapi_thunk_export.h"
13 #include "ppapi/thunk/ppb_file_system_api.h" 13 #include "ppapi/thunk/ppb_file_system_api.h"
14 14
15 namespace ppapi { 15 namespace ppapi {
(...skipping 26 matching lines...) Expand all
42 } 42 }
43 43
44 PP_FileSystemType GetType(PP_Resource file_system) { 44 PP_FileSystemType GetType(PP_Resource file_system) {
45 VLOG(4) << "PPB_FileSystem::GetType()"; 45 VLOG(4) << "PPB_FileSystem::GetType()";
46 EnterResource<PPB_FileSystem_API> enter(file_system, true); 46 EnterResource<PPB_FileSystem_API> enter(file_system, true);
47 if (enter.failed()) 47 if (enter.failed())
48 return PP_FILESYSTEMTYPE_INVALID; 48 return PP_FILESYSTEMTYPE_INVALID;
49 return enter.object()->GetType(); 49 return enter.object()->GetType();
50 } 50 }
51 51
52 const PPB_FileSystem_1_0 g_ppb_filesystem_thunk_1_0 = { 52 const PPB_FileSystem_1_0 g_ppb_filesystem_thunk_1_0 = { //
53 &Create, 53 &Create, //
54 &IsFileSystem, 54 &IsFileSystem, //
55 &Open, 55 &Open, //
56 &GetType 56 &GetType //
57 }; 57 };
58 58
59 } // namespace 59 } // namespace
60 60
61 PPAPI_THUNK_EXPORT const PPB_FileSystem_1_0* GetPPB_FileSystem_1_0_Thunk() { 61 PPAPI_THUNK_EXPORT const PPB_FileSystem_1_0* GetPPB_FileSystem_1_0_Thunk() {
62 return &g_ppb_filesystem_thunk_1_0; 62 return &g_ppb_filesystem_thunk_1_0;
63 } 63 }
64 64
65 } // namespace thunk 65 } // namespace thunk
66 } // namespace ppapi 66 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698