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 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 Loading... |
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 Loading... |
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_ |
OLD | NEW |