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/scoped_ptr.h" |
10 #include "ppapi/c/private/pp_file_handle.h" | 11 #include "ppapi/c/private/pp_file_handle.h" |
11 #include "ppapi/proxy/connection.h" | 12 #include "ppapi/proxy/connection.h" |
12 #include "ppapi/proxy/plugin_resource.h" | 13 #include "ppapi/proxy/plugin_resource.h" |
13 #include "ppapi/proxy/ppapi_proxy_export.h" | 14 #include "ppapi/proxy/ppapi_proxy_export.h" |
14 #include "ppapi/shared_impl/file_io_state_manager.h" | 15 #include "ppapi/shared_impl/file_io_state_manager.h" |
| 16 #include "ppapi/shared_impl/resource.h" |
15 #include "ppapi/thunk/ppb_file_io_api.h" | 17 #include "ppapi/thunk/ppb_file_io_api.h" |
16 | 18 |
17 namespace ppapi { | 19 namespace ppapi { |
18 | 20 |
19 class TrackedCallback; | 21 class TrackedCallback; |
20 | 22 |
21 namespace proxy { | 23 namespace proxy { |
22 | 24 |
23 class PPAPI_PROXY_EXPORT FileIOResource | 25 class PPAPI_PROXY_EXPORT FileIOResource |
24 : public PluginResource, | 26 : public PluginResource, |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 const ResourceMessageReplyParams& params); | 132 const ResourceMessageReplyParams& params); |
131 void OnPluginMsgRequestOSFileHandleComplete( | 133 void OnPluginMsgRequestOSFileHandleComplete( |
132 scoped_refptr<TrackedCallback> callback, | 134 scoped_refptr<TrackedCallback> callback, |
133 PP_FileHandle* output_handle, | 135 PP_FileHandle* output_handle, |
134 const ResourceMessageReplyParams& params); | 136 const ResourceMessageReplyParams& params); |
135 | 137 |
136 PP_FileHandle file_handle_; | 138 PP_FileHandle file_handle_; |
137 PP_FileSystemType file_system_type_; | 139 PP_FileSystemType file_system_type_; |
138 FileIOStateManager state_manager_; | 140 FileIOStateManager state_manager_; |
139 | 141 |
| 142 scoped_refptr<Resource> file_ref_; |
| 143 |
140 DISALLOW_COPY_AND_ASSIGN(FileIOResource); | 144 DISALLOW_COPY_AND_ASSIGN(FileIOResource); |
141 }; | 145 }; |
142 | 146 |
143 } // namespace proxy | 147 } // namespace proxy |
144 } // namespace ppapi | 148 } // namespace ppapi |
145 | 149 |
146 #endif // PPAPI_PROXY_FILE_IO_RESOURCE_H_ | 150 #endif // PPAPI_PROXY_FILE_IO_RESOURCE_H_ |
OLD | NEW |