| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PROXY_FILE_IO_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_FILE_IO_RESOURCE_H_ |
| 6 #define PPAPI_PROXY_FILE_IO_RESOURCE_H_ | 6 #define PPAPI_PROXY_FILE_IO_RESOURCE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 const ResourceMessageReplyParams& params); | 157 const ResourceMessageReplyParams& params); |
| 158 void OnPluginMsgOpenFileComplete(scoped_refptr<TrackedCallback> callback, | 158 void OnPluginMsgOpenFileComplete(scoped_refptr<TrackedCallback> callback, |
| 159 const ResourceMessageReplyParams& params); | 159 const ResourceMessageReplyParams& params); |
| 160 void OnPluginMsgRequestOSFileHandleComplete( | 160 void OnPluginMsgRequestOSFileHandleComplete( |
| 161 scoped_refptr<TrackedCallback> callback, | 161 scoped_refptr<TrackedCallback> callback, |
| 162 PP_FileHandle* output_handle, | 162 PP_FileHandle* output_handle, |
| 163 const ResourceMessageReplyParams& params); | 163 const ResourceMessageReplyParams& params); |
| 164 | 164 |
| 165 scoped_refptr<FileHandleHolder> file_handle_; | 165 scoped_refptr<FileHandleHolder> file_handle_; |
| 166 PP_FileSystemType file_system_type_; | 166 PP_FileSystemType file_system_type_; |
| 167 ScopedPPResource file_system_resource_; | 167 scoped_refptr<Resource> file_system_resource_; |
| 168 bool called_close_; |
| 168 FileIOStateManager state_manager_; | 169 FileIOStateManager state_manager_; |
| 169 | 170 |
| 170 scoped_refptr<Resource> file_ref_; | 171 scoped_refptr<Resource> file_ref_; |
| 171 | 172 |
| 172 DISALLOW_COPY_AND_ASSIGN(FileIOResource); | 173 DISALLOW_COPY_AND_ASSIGN(FileIOResource); |
| 173 }; | 174 }; |
| 174 | 175 |
| 175 } // namespace proxy | 176 } // namespace proxy |
| 176 } // namespace ppapi | 177 } // namespace ppapi |
| 177 | 178 |
| 178 #endif // PPAPI_PROXY_FILE_IO_RESOURCE_H_ | 179 #endif // PPAPI_PROXY_FILE_IO_RESOURCE_H_ |
| OLD | NEW |