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

Unified Diff: ppapi/cpp/dev/file_io_dev.h

Issue 7387011: Clean up the file dev interfaces. The combination of some dev and some non (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/cpp/dev/file_io_dev.h
===================================================================
--- ppapi/cpp/dev/file_io_dev.h (revision 92658)
+++ ppapi/cpp/dev/file_io_dev.h (working copy)
@@ -5,48 +5,12 @@
#ifndef PPAPI_CPP_DEV_FILE_IO_DEV_H_
#define PPAPI_CPP_DEV_FILE_IO_DEV_H_
-#include "ppapi/c/pp_time.h"
-#include "ppapi/cpp/resource.h"
+#include "ppapi/cpp/file_io.h"
-struct PP_FileInfo_Dev;
-
namespace pp {
-class CompletionCallback;
-class FileRef_Dev;
-class Instance;
+typedef FileIO FileIO_Dev;
-class FileIO_Dev : public Resource {
- public:
- // Constructs an is_null resource.
- FileIO_Dev();
-
- FileIO_Dev(Instance* instance);
- FileIO_Dev(const FileIO_Dev& other);
-
- // PPB_FileIO methods:
- int32_t Open(const FileRef_Dev& file_ref,
- int32_t open_flags,
- const CompletionCallback& cc);
- int32_t Query(PP_FileInfo_Dev* result_buf,
- const CompletionCallback& cc);
- int32_t Touch(PP_Time last_access_time,
- PP_Time last_modified_time,
- const CompletionCallback& cc);
- int32_t Read(int64_t offset,
- char* buffer,
- int32_t bytes_to_read,
- const CompletionCallback& cc);
- int32_t Write(int64_t offset,
- const char* buffer,
- int32_t bytes_to_write,
- const CompletionCallback& cc);
- int32_t SetLength(int64_t length,
- const CompletionCallback& cc);
- int32_t Flush(const CompletionCallback& cc);
- void Close();
-};
-
} // namespace pp
#endif // PPAPI_CPP_DEV_FILE_IO_DEV_H_

Powered by Google App Engine
This is Rietveld 408576698