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

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

Issue 22646005: Do PPB_FileIO Query and Read in the plugin process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to final patch. 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
« no previous file with comments | « no previous file | content/renderer/pepper/pepper_file_io_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 52 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
53 53
54 void OnAsyncFileOpened( 54 void OnAsyncFileOpened(
55 base::PlatformFileError error_code, 55 base::PlatformFileError error_code,
56 IPC::PlatformFileForTransit file_for_transit, 56 IPC::PlatformFileForTransit file_for_transit,
57 int message_id); 57 int message_id);
58 58
59 int32_t OnHostMsgOpen(ppapi::host::HostMessageContext* context, 59 int32_t OnHostMsgOpen(ppapi::host::HostMessageContext* context,
60 PP_Resource file_ref_resource, 60 PP_Resource file_ref_resource,
61 int32_t open_flags); 61 int32_t open_flags);
62 int32_t OnHostMsgQuery(ppapi::host::HostMessageContext* context);
63 int32_t OnHostMsgTouch(ppapi::host::HostMessageContext* context, 62 int32_t OnHostMsgTouch(ppapi::host::HostMessageContext* context,
64 PP_Time last_access_time, 63 PP_Time last_access_time,
65 PP_Time last_modified_time); 64 PP_Time last_modified_time);
66 int32_t OnHostMsgRead(ppapi::host::HostMessageContext* context,
67 int64_t offset,
68 int32_t bytes_to_read);
69 int32_t OnHostMsgWrite(ppapi::host::HostMessageContext* context, 65 int32_t OnHostMsgWrite(ppapi::host::HostMessageContext* context,
70 int64_t offset, 66 int64_t offset,
71 const std::string& buffer); 67 const std::string& buffer);
72 int32_t OnHostMsgSetLength(ppapi::host::HostMessageContext* context, 68 int32_t OnHostMsgSetLength(ppapi::host::HostMessageContext* context,
73 int64_t length); 69 int64_t length);
74 int32_t OnHostMsgClose(ppapi::host::HostMessageContext* context); 70 int32_t OnHostMsgClose(ppapi::host::HostMessageContext* context);
75 int32_t OnHostMsgFlush(ppapi::host::HostMessageContext* context); 71 int32_t OnHostMsgFlush(ppapi::host::HostMessageContext* context);
76 // Private API. 72 // Private API.
77 int32_t OnHostMsgRequestOSFileHandle( 73 int32_t OnHostMsgRequestOSFileHandle(
78 ppapi::host::HostMessageContext* context); 74 ppapi::host::HostMessageContext* context);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 AsyncOpenFileCallback; 147 AsyncOpenFileCallback;
152 148
153 IDMap<AsyncOpenFileCallback> pending_async_open_files_; 149 IDMap<AsyncOpenFileCallback> pending_async_open_files_;
154 150
155 DISALLOW_COPY_AND_ASSIGN(PepperFileIOHost); 151 DISALLOW_COPY_AND_ASSIGN(PepperFileIOHost);
156 }; 152 };
157 153
158 } // namespace content 154 } // namespace content
159 155
160 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_ 156 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698