| OLD | NEW |
| 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_CPP_DEV_FILE_IO_DEV_H_ | 5 #ifndef PPAPI_CPP_DEV_FILE_IO_DEV_H_ |
| 6 #define PPAPI_CPP_DEV_FILE_IO_DEV_H_ | 6 #define PPAPI_CPP_DEV_FILE_IO_DEV_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_time.h" | 8 #include "ppapi/c/pp_time.h" |
| 9 #include "ppapi/cpp/resource.h" | 9 #include "ppapi/cpp/resource.h" |
| 10 | 10 |
| 11 struct PP_FileInfo_Dev; | 11 struct PP_FileInfo_Dev; |
| 12 | 12 |
| 13 namespace pp { | 13 namespace pp { |
| 14 | 14 |
| 15 class CompletionCallback; | 15 class CompletionCallback; |
| 16 class FileRef_Dev; | 16 class FileRef_Dev; |
| 17 | 17 |
| 18 class FileIO_Dev : public Resource { | 18 class FileIO_Dev : public Resource { |
| 19 public: | 19 public: |
| 20 FileIO_Dev(); | 20 FileIO_Dev(); |
| 21 FileIO_Dev(const FileIO_Dev& other); | 21 FileIO_Dev(const FileIO_Dev& other); |
| 22 | 22 |
| 23 FileIO_Dev& operator=(const FileIO_Dev& other); | 23 FileIO_Dev& operator=(const FileIO_Dev& other); |
| 24 void swap(FileIO_Dev& other); | |
| 25 | 24 |
| 26 // PPB_FileIO methods: | 25 // PPB_FileIO methods: |
| 27 int32_t Open(const FileRef_Dev& file_ref, | 26 int32_t Open(const FileRef_Dev& file_ref, |
| 28 int32_t open_flags, | 27 int32_t open_flags, |
| 29 const CompletionCallback& cc); | 28 const CompletionCallback& cc); |
| 30 int32_t Query(PP_FileInfo_Dev* result_buf, | 29 int32_t Query(PP_FileInfo_Dev* result_buf, |
| 31 const CompletionCallback& cc); | 30 const CompletionCallback& cc); |
| 32 int32_t Touch(PP_Time last_access_time, | 31 int32_t Touch(PP_Time last_access_time, |
| 33 PP_Time last_modified_time, | 32 PP_Time last_modified_time, |
| 34 const CompletionCallback& cc); | 33 const CompletionCallback& cc); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 52 int32_t WillWrite(int64_t offset, | 51 int32_t WillWrite(int64_t offset, |
| 53 int32_t bytes_to_write, | 52 int32_t bytes_to_write, |
| 54 const CompletionCallback& cc); | 53 const CompletionCallback& cc); |
| 55 int32_t WillSetLength(int64_t length, | 54 int32_t WillSetLength(int64_t length, |
| 56 const CompletionCallback& cc); | 55 const CompletionCallback& cc); |
| 57 }; | 56 }; |
| 58 | 57 |
| 59 } // namespace pp | 58 } // namespace pp |
| 60 | 59 |
| 61 #endif // PPAPI_CPP_DEV_FILE_IO_DEV_H_ | 60 #endif // PPAPI_CPP_DEV_FILE_IO_DEV_H_ |
| OLD | NEW |