Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: ppapi/proxy/file_io_resource.h

Issue 121973003: Merge 242646 "Pepper: FileIO holds FileSystem ref with scoped_re..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1750/src/
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_file_io_host.cc ('k') | ppapi/proxy/file_io_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698