| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 WEBKIT_PLUGINS_PPAPI_PPB_FILE_IO_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FILE_IO_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_IO_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_IO_IMPL_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 class PluginModule; | 30 class PluginModule; |
| 31 class PPB_FileRef_Impl; | 31 class PPB_FileRef_Impl; |
| 32 class QuotaFileIO; | 32 class QuotaFileIO; |
| 33 | 33 |
| 34 class PPB_FileIO_Impl : public Resource, | 34 class PPB_FileIO_Impl : public Resource, |
| 35 public ::ppapi::thunk::PPB_FileIO_API { | 35 public ::ppapi::thunk::PPB_FileIO_API { |
| 36 public: | 36 public: |
| 37 explicit PPB_FileIO_Impl(PluginInstance* instance); | 37 explicit PPB_FileIO_Impl(PluginInstance* instance); |
| 38 virtual ~PPB_FileIO_Impl(); | 38 virtual ~PPB_FileIO_Impl(); |
| 39 | 39 |
| 40 // ResourceObjectBase overrides. | 40 // Resource overrides. |
| 41 virtual ::ppapi::thunk::PPB_FileIO_API* AsPPB_FileIO_API() OVERRIDE; | 41 virtual ::ppapi::thunk::PPB_FileIO_API* AsPPB_FileIO_API() OVERRIDE; |
| 42 | 42 |
| 43 // PPB_FileIO_API implementation. | 43 // PPB_FileIO_API implementation. |
| 44 virtual int32_t Open(PP_Resource file_ref, | 44 virtual int32_t Open(PP_Resource file_ref, |
| 45 int32_t open_flags, | 45 int32_t open_flags, |
| 46 PP_CompletionCallback callback) OVERRIDE; | 46 PP_CompletionCallback callback) OVERRIDE; |
| 47 virtual int32_t Query(PP_FileInfo* info, | 47 virtual int32_t Query(PP_FileInfo* info, |
| 48 PP_CompletionCallback callback) OVERRIDE; | 48 PP_CompletionCallback callback) OVERRIDE; |
| 49 virtual int32_t Touch(PP_Time last_access_time, | 49 virtual int32_t Touch(PP_Time last_access_time, |
| 50 PP_Time last_modified_time, | 50 PP_Time last_modified_time, |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // of type PP_FILESYSTEMTYPE_LOCAL{PERSISTENT,TEMPORARY} is opened. | 143 // of type PP_FILESYSTEMTYPE_LOCAL{PERSISTENT,TEMPORARY} is opened. |
| 144 scoped_ptr<QuotaFileIO> quota_file_io_; | 144 scoped_ptr<QuotaFileIO> quota_file_io_; |
| 145 | 145 |
| 146 DISALLOW_COPY_AND_ASSIGN(PPB_FileIO_Impl); | 146 DISALLOW_COPY_AND_ASSIGN(PPB_FileIO_Impl); |
| 147 }; | 147 }; |
| 148 | 148 |
| 149 } // namespace ppapi | 149 } // namespace ppapi |
| 150 } // namespace webkit | 150 } // namespace webkit |
| 151 | 151 |
| 152 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_IO_IMPL_H_ | 152 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_IO_IMPL_H_ |
| OLD | NEW |