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

Side by Side Diff: ppapi/c/dev/ppb_directory_reader_dev.h

Issue 6041001: Integrate NaCl Head - Revert 69309 to restore 64b handles in PPAPI... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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/c/dev/ppb_cursor_control_dev.h ('k') | ppapi/c/dev/ppb_file_chooser_dev.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef PPAPI_C_DEV_PPB_DIRECTORY_READER_DEV_H_ 5 #ifndef PPAPI_C_DEV_PPB_DIRECTORY_READER_DEV_H_
6 #define PPAPI_C_DEV_PPB_DIRECTORY_READER_DEV_H_ 6 #define PPAPI_C_DEV_PPB_DIRECTORY_READER_DEV_H_
7 7
8 #include "ppapi/c/dev/pp_file_info_dev.h" 8 #include "ppapi/c/dev/pp_file_info_dev.h"
9 #include "ppapi/c/pp_bool.h" 9 #include "ppapi/c/pp_bool.h"
10 #include "ppapi/c/pp_macros.h" 10 #include "ppapi/c/pp_macros.h"
11 #include "ppapi/c/pp_module.h" 11 #include "ppapi/c/pp_module.h"
12 #include "ppapi/c/pp_resource.h" 12 #include "ppapi/c/pp_resource.h"
13 13
14 struct PP_CompletionCallback; 14 struct PP_CompletionCallback;
15 15
16 struct PP_DirectoryEntry_Dev { 16 struct PP_DirectoryEntry_Dev {
17 PP_Resource file_ref; 17 PP_Resource file_ref;
18 PP_FileType_Dev file_type; 18 PP_FileType_Dev file_type;
19
20 /** Ensure that this struct is 16-bytes wide by padding the end. Because
21 * PP_Resource is an 8-byte type, some compilers align this struct on 8-byte
22 * boundaries and pad it to 16 bytes even without @a padding. This makes its
23 * size consistent across compilers.
24 */
25 int32_t padding;
19 }; 26 };
20 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_DirectoryEntry_Dev, 8); 27 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_DirectoryEntry_Dev, 16);
21 28
22 #define PPB_DIRECTORYREADER_DEV_INTERFACE "PPB_DirectoryReader(Dev);0.4" 29 #define PPB_DIRECTORYREADER_DEV_INTERFACE "PPB_DirectoryReader(Dev);0.3"
23 30
24 struct PPB_DirectoryReader_Dev { 31 struct PPB_DirectoryReader_Dev {
25 // Creates a DirectoryReader for the given directory. Upon success, the 32 // Creates a DirectoryReader for the given directory. Upon success, the
26 // corresponding directory is classified as "in use" by the resulting 33 // corresponding directory is classified as "in use" by the resulting
27 // DirectoryReader object until such time as the DirectoryReader object is 34 // DirectoryReader object until such time as the DirectoryReader object is
28 // destroyed. 35 // destroyed.
29 PP_Resource (*Create)(PP_Resource directory_ref); 36 PP_Resource (*Create)(PP_Resource directory_ref);
30 37
31 // Returns PP_TRUE if the given resource is a DirectoryReader. Returns 38 // Returns PP_TRUE if the given resource is a DirectoryReader. Returns
32 // PP_FALSE if the resource is invalid or some type other than a 39 // PP_FALSE if the resource is invalid or some type other than a
(...skipping 15 matching lines...) Expand all
48 // ProcessDirectoryEntry(entry); 55 // ProcessDirectoryEntry(entry);
49 // } 56 // }
50 // core_funcs->ReleaseResource(reader); 57 // core_funcs->ReleaseResource(reader);
51 // 58 //
52 int32_t (*GetNextEntry)(PP_Resource directory_reader, 59 int32_t (*GetNextEntry)(PP_Resource directory_reader,
53 struct PP_DirectoryEntry_Dev* entry, 60 struct PP_DirectoryEntry_Dev* entry,
54 struct PP_CompletionCallback callback); 61 struct PP_CompletionCallback callback);
55 }; 62 };
56 63
57 #endif // PPAPI_C_DEV_PPB_DIRECTORY_READER_DEV_H_ 64 #endif // PPAPI_C_DEV_PPB_DIRECTORY_READER_DEV_H_
OLDNEW
« no previous file with comments | « ppapi/c/dev/ppb_cursor_control_dev.h ('k') | ppapi/c/dev/ppb_file_chooser_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698