| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 50 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 51 | 51 |
| 52 void OnAsyncFileOpened( | 52 void OnAsyncFileOpened( |
| 53 base::PlatformFileError error_code, | 53 base::PlatformFileError error_code, |
| 54 IPC::PlatformFileForTransit file_for_transit, | 54 IPC::PlatformFileForTransit file_for_transit, |
| 55 int message_id); | 55 int message_id); |
| 56 | 56 |
| 57 int32_t OnHostMsgOpen(ppapi::host::HostMessageContext* context, | 57 int32_t OnHostMsgOpen(ppapi::host::HostMessageContext* context, |
| 58 PP_Resource file_ref_resource, | 58 PP_Resource file_ref_resource, |
| 59 int32_t open_flags); | 59 int32_t open_flags); |
| 60 int32_t OnHostMsgQuery(ppapi::host::HostMessageContext* context); | |
| 61 int32_t OnHostMsgTouch(ppapi::host::HostMessageContext* context, | 60 int32_t OnHostMsgTouch(ppapi::host::HostMessageContext* context, |
| 62 PP_Time last_access_time, | 61 PP_Time last_access_time, |
| 63 PP_Time last_modified_time); | 62 PP_Time last_modified_time); |
| 64 int32_t OnHostMsgRead(ppapi::host::HostMessageContext* context, | |
| 65 int64_t offset, | |
| 66 int32_t bytes_to_read); | |
| 67 int32_t OnHostMsgWrite(ppapi::host::HostMessageContext* context, | 63 int32_t OnHostMsgWrite(ppapi::host::HostMessageContext* context, |
| 68 int64_t offset, | 64 int64_t offset, |
| 69 const std::string& buffer); | 65 const std::string& buffer); |
| 70 int32_t OnHostMsgSetLength(ppapi::host::HostMessageContext* context, | 66 int32_t OnHostMsgSetLength(ppapi::host::HostMessageContext* context, |
| 71 int64_t length); | 67 int64_t length); |
| 72 int32_t OnHostMsgClose(ppapi::host::HostMessageContext* context); | 68 int32_t OnHostMsgClose(ppapi::host::HostMessageContext* context); |
| 73 int32_t OnHostMsgFlush(ppapi::host::HostMessageContext* context); | 69 int32_t OnHostMsgFlush(ppapi::host::HostMessageContext* context); |
| 74 // Private API. | 70 // Private API. |
| 75 int32_t OnHostMsgRequestOSFileHandle( | 71 int32_t OnHostMsgRequestOSFileHandle( |
| 76 ppapi::host::HostMessageContext* context); | 72 ppapi::host::HostMessageContext* context); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 AsyncOpenFileCallback; | 140 AsyncOpenFileCallback; |
| 145 | 141 |
| 146 IDMap<AsyncOpenFileCallback> pending_async_open_files_; | 142 IDMap<AsyncOpenFileCallback> pending_async_open_files_; |
| 147 | 143 |
| 148 DISALLOW_COPY_AND_ASSIGN(PepperFileIOHost); | 144 DISALLOW_COPY_AND_ASSIGN(PepperFileIOHost); |
| 149 }; | 145 }; |
| 150 | 146 |
| 151 } // namespace content | 147 } // namespace content |
| 152 | 148 |
| 153 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_ | 149 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_ |
| OLD | NEW |