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