| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 const PluginDelegate::NotifyCloseFileCallback& callback); | 88 const PluginDelegate::NotifyCloseFileCallback& callback); |
| 89 void ExecutePlatformQueryCallback(ReplyMessageContext reply_context, | 89 void ExecutePlatformQueryCallback(ReplyMessageContext reply_context, |
| 90 base::PlatformFileError error_code, | 90 base::PlatformFileError error_code, |
| 91 const base::PlatformFileInfo& file_info); | 91 const base::PlatformFileInfo& file_info); |
| 92 void ExecutePlatformReadCallback(ReplyMessageContext reply_context, | 92 void ExecutePlatformReadCallback(ReplyMessageContext reply_context, |
| 93 base::PlatformFileError error_code, | 93 base::PlatformFileError error_code, |
| 94 const char* data, int bytes_read); | 94 const char* data, int bytes_read); |
| 95 void ExecutePlatformWriteCallback(ReplyMessageContext reply_context, | 95 void ExecutePlatformWriteCallback(ReplyMessageContext reply_context, |
| 96 base::PlatformFileError error_code, | 96 base::PlatformFileError error_code, |
| 97 int bytes_written); | 97 int bytes_written); |
| 98 void ExecutePlatformWillWriteCallback(ReplyMessageContext reply_context, | |
| 99 base::PlatformFileError error_code, | |
| 100 int bytes_written); | |
| 101 | 98 |
| 102 // TODO(victorhsieh): eliminate plugin_delegate_ as it's no longer needed. | 99 // TODO(victorhsieh): eliminate plugin_delegate_ as it's no longer needed. |
| 103 webkit::ppapi::PluginDelegate* plugin_delegate_; // Not owned. | 100 webkit::ppapi::PluginDelegate* plugin_delegate_; // Not owned. |
| 104 | 101 |
| 105 base::PlatformFile file_; | 102 base::PlatformFile file_; |
| 106 | 103 |
| 107 // The file system type specified in the Open() call. This will be | 104 // The file system type specified in the Open() call. This will be |
| 108 // PP_FILESYSTEMTYPE_INVALID before open was called. This value does not | 105 // PP_FILESYSTEMTYPE_INVALID before open was called. This value does not |
| 109 // indicate that the open command actually succeeded. | 106 // indicate that the open command actually succeeded. |
| 110 PP_FileSystemType file_system_type_; | 107 PP_FileSystemType file_system_type_; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 127 base::WeakPtrFactory<PepperFileIOHost> weak_factory_; | 124 base::WeakPtrFactory<PepperFileIOHost> weak_factory_; |
| 128 | 125 |
| 129 ppapi::FileIOStateManager state_manager_; | 126 ppapi::FileIOStateManager state_manager_; |
| 130 | 127 |
| 131 DISALLOW_COPY_AND_ASSIGN(PepperFileIOHost); | 128 DISALLOW_COPY_AND_ASSIGN(PepperFileIOHost); |
| 132 }; | 129 }; |
| 133 | 130 |
| 134 } // namespace content | 131 } // namespace content |
| 135 | 132 |
| 136 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_ | 133 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_ |
| OLD | NEW |