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

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

Issue 6543028: Implement the filesystem proxy. This allows the FileRef tests to pass in the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 | « no previous file | ppapi/c/dev/ppb_file_ref_dev.h » ('j') | ppapi/proxy/ppb_file_system_proxy.cc » ('J')
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_PP_FILE_INFO_DEV_H_ 5 #ifndef PPAPI_C_DEV_PP_FILE_INFO_DEV_H_
6 #define PPAPI_C_DEV_PP_FILE_INFO_DEV_H_ 6 #define PPAPI_C_DEV_PP_FILE_INFO_DEV_H_
7 7
8 #include "ppapi/c/pp_macros.h" 8 #include "ppapi/c/pp_macros.h"
9 #include "ppapi/c/pp_stdint.h" 9 #include "ppapi/c/pp_stdint.h"
10 #include "ppapi/c/pp_time.h" 10 #include "ppapi/c/pp_time.h"
11 11
12 typedef enum { 12 typedef enum {
13 PP_FILETYPE_REGULAR, 13 PP_FILETYPE_REGULAR,
14 PP_FILETYPE_DIRECTORY, 14 PP_FILETYPE_DIRECTORY,
15 PP_FILETYPE_OTHER /* A catch-all for unidentified types. */ 15 PP_FILETYPE_OTHER /* A catch-all for unidentified types. */
16 } PP_FileType_Dev; 16 } PP_FileType_Dev;
17 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FileType_Dev, 4); 17 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FileType_Dev, 4);
18 18
19 typedef enum { 19 typedef enum {
20 PP_FILESYSTEMTYPE_NONE = 0, /* For identifying invalid return values. */
20 PP_FILESYSTEMTYPE_EXTERNAL, 21 PP_FILESYSTEMTYPE_EXTERNAL,
21 PP_FILESYSTEMTYPE_LOCALPERSISTENT, 22 PP_FILESYSTEMTYPE_LOCALPERSISTENT,
22 PP_FILESYSTEMTYPE_LOCALTEMPORARY 23 PP_FILESYSTEMTYPE_LOCALTEMPORARY
23 } PP_FileSystemType_Dev; 24 } PP_FileSystemType_Dev;
24 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FileSystemType_Dev, 4); 25 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FileSystemType_Dev, 4);
25 26
26 struct PP_FileInfo_Dev { 27 struct PP_FileInfo_Dev {
27 int64_t size; /* Measured in bytes */ 28 int64_t size; /* Measured in bytes */
28 PP_FileType_Dev type; 29 PP_FileType_Dev type;
29 PP_FileSystemType_Dev system_type; 30 PP_FileSystemType_Dev system_type;
30 PP_Time creation_time; 31 PP_Time creation_time;
31 PP_Time last_access_time; 32 PP_Time last_access_time;
32 PP_Time last_modified_time; 33 PP_Time last_modified_time;
33 }; 34 };
34 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_FileInfo_Dev, 40); 35 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_FileInfo_Dev, 40);
35 36
36 #endif /* PPAPI_C_DEV_PP_FILE_INFO_DEV_H_ */ 37 #endif /* PPAPI_C_DEV_PP_FILE_INFO_DEV_H_ */
37 38
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/dev/ppb_file_ref_dev.h » ('j') | ppapi/proxy/ppb_file_system_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698