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

Side by Side Diff: content/renderer/pepper/pepper_file_io_host.h

Issue 18063005: Do PPB_FileIO Query and Read in the plugin process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rethink - Just optimize the blocking callback case. Created 7 years, 4 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 CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void ExecutePlatformQueryCallback(ReplyMessageContext reply_context, 101 void ExecutePlatformQueryCallback(ReplyMessageContext reply_context,
102 base::PlatformFileError error_code, 102 base::PlatformFileError error_code,
103 const base::PlatformFileInfo& file_info); 103 const base::PlatformFileInfo& file_info);
104 void ExecutePlatformReadCallback(ReplyMessageContext reply_context, 104 void ExecutePlatformReadCallback(ReplyMessageContext reply_context,
105 base::PlatformFileError error_code, 105 base::PlatformFileError error_code,
106 const char* data, int bytes_read); 106 const char* data, int bytes_read);
107 void ExecutePlatformWriteCallback(ReplyMessageContext reply_context, 107 void ExecutePlatformWriteCallback(ReplyMessageContext reply_context,
108 base::PlatformFileError error_code, 108 base::PlatformFileError error_code,
109 int bytes_written); 109 int bytes_written);
110 110
111 RendererPpapiHost* renderer_ppapi_host_;
112
111 base::PlatformFile file_; 113 base::PlatformFile file_;
112 114
113 // The file system type specified in the Open() call. This will be 115 // The file system type specified in the Open() call. This will be
114 // PP_FILESYSTEMTYPE_INVALID before open was called. This value does not 116 // PP_FILESYSTEMTYPE_INVALID before open was called. This value does not
115 // indicate that the open command actually succeeded. 117 // indicate that the open command actually succeeded.
116 PP_FileSystemType file_system_type_; 118 PP_FileSystemType file_system_type_;
117 119
118 // Valid only for PP_FILESYSTEMTYPE_LOCAL{PERSISTENT,TEMPORARY}. 120 // Valid only for PP_FILESYSTEMTYPE_LOCAL{PERSISTENT,TEMPORARY}.
119 GURL file_system_url_; 121 GURL file_system_url_;
120 122
(...skipping 21 matching lines...) Expand all
142 AsyncOpenFileCallback; 144 AsyncOpenFileCallback;
143 145
144 IDMap<AsyncOpenFileCallback> pending_async_open_files_; 146 IDMap<AsyncOpenFileCallback> pending_async_open_files_;
145 147
146 DISALLOW_COPY_AND_ASSIGN(PepperFileIOHost); 148 DISALLOW_COPY_AND_ASSIGN(PepperFileIOHost);
147 }; 149 };
148 150
149 } // namespace content 151 } // namespace content
150 152
151 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_ 153 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/pepper/pepper_file_io_host.cc » ('j') | ppapi/proxy/file_io_resource.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698