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