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

Unified Diff: ppapi/c/ppb_file_io.h

Issue 7210027: Part I of many. Moving FileIO, FileRef, and FileSystem out of Dev. For now, just copying over s... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/c/ppb_file_io.h
===================================================================
--- ppapi/c/ppb_file_io.h (revision 89748)
+++ ppapi/c/ppb_file_io.h (working copy)
@@ -1,9 +1,9 @@
-/* Copyright (c) 2010 The Chromium Authors. All rights reserved.
+/* Copyright (c) 2011 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
-#ifndef PPAPI_C_DEV_PPB_FILE_IO_DEV_H_
-#define PPAPI_C_DEV_PPB_FILE_IO_DEV_H_
+#ifndef PPAPI_C_PPB_FILE_IO_H_
+#define PPAPI_C_PPB_FILE_IO_H_
#include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_instance.h"
@@ -13,7 +13,7 @@
#include "ppapi/c/pp_time.h"
struct PP_CompletionCallback;
-struct PP_FileInfo_Dev;
+struct PP_FileInfo;
typedef enum {
// Requests read access to a file.
@@ -36,14 +36,14 @@
// PP_FILEOPENFLAG_CREATE. If this flag is specified, and the file already
// exists, then the FileIO::Open call will fail.
PP_FILEOPENFLAG_EXCLUSIVE = 1 << 4
-} PP_FileOpenFlags_Dev;
-PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FileOpenFlags_Dev, 4);
+} PP_FileOpenFlags;
+PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FileOpenFlags, 4);
-#define PPB_FILEIO_DEV_INTERFACE_0_3 "PPB_FileIO(Dev);0.3"
-#define PPB_FILEIO_DEV_INTERFACE PPB_FILEIO_DEV_INTERFACE_0_3
+#define PPB_FILEIO_INTERFACE_1_0 "PPB_FileIO;1.0"
nfullagar 2011/06/21 20:15:23 When previous interfaces came out of Dev, it was r
Sang Ahn 2011/06/21 20:41:08 Done.
+#define PPB_FILEIO_INTERFACE PPB_FILEIO_INTERFACE_1_0
// Use this interface to operate on a regular file (PP_FileType_Regular).
-struct PPB_FileIO_Dev {
+struct PPB_FileIO {
// Creates a new FileIO object. Returns 0 if the module is invalid.
PP_Resource (*Create)(PP_Instance instance);
@@ -63,7 +63,7 @@
// Queries info about the file opened by this FileIO object. Fails if the
// FileIO object has not been opened.
int32_t (*Query)(PP_Resource file_io,
- struct PP_FileInfo_Dev* info,
+ struct PP_FileInfo* info,
struct PP_CompletionCallback callback);
// Updates timestamps for the file opened by this FileIO object. Fails if
@@ -116,5 +116,4 @@
void (*Close)(PP_Resource file_io);
};
-#endif /* PPAPI_C_DEV_PPB_FILE_IO_DEV_H_ */
-
+#endif /* PPAPI_C_PPB_FILE_IO_H_ */
« no previous file with comments | « ppapi/c/pp_file_info.h ('k') | ppapi/c/ppb_file_ref.h » ('j') | ppapi/c/ppb_file_ref.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698