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

Side by Side Diff: content/browser/renderer_host/pepper/pepper_file_io_host.h

Issue 291513003: Remove PlatformFile from fileapi::FileSystemOperation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 ppapi::host::ReplyMessageContext reply_context, 72 ppapi::host::ReplyMessageContext reply_context,
73 bool plugin_allowed); 73 bool plugin_allowed);
74 74
75 // Callback handlers. These mostly convert the File::Error to the 75 // Callback handlers. These mostly convert the File::Error to the
76 // PP_Error code and send back the reply. Note that the argument 76 // PP_Error code and send back the reply. Note that the argument
77 // ReplyMessageContext is copied so that we have a closure containing all 77 // ReplyMessageContext is copied so that we have a closure containing all
78 // necessary information to reply. 78 // necessary information to reply.
79 void ExecutePlatformGeneralCallback( 79 void ExecutePlatformGeneralCallback(
80 ppapi::host::ReplyMessageContext reply_context, 80 ppapi::host::ReplyMessageContext reply_context,
81 base::File::Error error_code); 81 base::File::Error error_code);
82 void ExecutePlatformOpenFileCallback(
83 ppapi::host::ReplyMessageContext reply_context,
84 base::File::Error error_code,
85 base::PassPlatformFile file,
86 bool unused_created);
87 82
88 void OnOpenProxyCallback(ppapi::host::ReplyMessageContext reply_context, 83 void OnOpenProxyCallback(ppapi::host::ReplyMessageContext reply_context,
89 base::File::Error error_code); 84 base::File::Error error_code);
90 85
91 void GotUIThreadStuffForInternalFileSystems( 86 void GotUIThreadStuffForInternalFileSystems(
92 ppapi::host::ReplyMessageContext reply_context, 87 ppapi::host::ReplyMessageContext reply_context,
93 int platform_file_flags, 88 int platform_file_flags,
94 UIThreadStuff ui_thread_stuff); 89 UIThreadStuff ui_thread_stuff);
95 void DidOpenInternalFile(ppapi::host::ReplyMessageContext reply_context, 90 void DidOpenInternalFile(ppapi::host::ReplyMessageContext reply_context,
96 base::File::Error result, 91 base::File file,
97 base::PlatformFile file,
98 const base::Closure& on_close_callback); 92 const base::Closure& on_close_callback);
99 void GotResolvedRenderProcessId( 93 void GotResolvedRenderProcessId(
100 ppapi::host::ReplyMessageContext reply_context, 94 ppapi::host::ReplyMessageContext reply_context,
101 base::FilePath path, 95 base::FilePath path,
102 int file_flags, 96 int file_flags,
103 base::ProcessId resolved_render_process_id); 97 base::ProcessId resolved_render_process_id);
104 98
105 void DidOpenQuotaFile(ppapi::host::ReplyMessageContext reply_context, 99 void DidOpenQuotaFile(ppapi::host::ReplyMessageContext reply_context,
106 base::PlatformFile file, 100 base::File file,
107 int64_t max_written_offset); 101 int64_t max_written_offset);
108 bool CallSetLength(ppapi::host::ReplyMessageContext reply_context, 102 bool CallSetLength(ppapi::host::ReplyMessageContext reply_context,
109 int64_t length); 103 int64_t length);
110 104
111 void DidCloseFile(base::File::Error error); 105 void DidCloseFile(base::File::Error error);
112 106
113 void SendOpenErrorReply(ppapi::host::ReplyMessageContext reply_context); 107 void SendOpenErrorReply(ppapi::host::ReplyMessageContext reply_context);
114 108
115 // Adds file_ to |reply_context| with the specified |open_flags|. 109 // Adds file_ to |reply_context| with the specified |open_flags|.
116 bool AddFileToReplyContext( 110 bool AddFileToReplyContext(
(...skipping 25 matching lines...) Expand all
142 ppapi::FileIOStateManager state_manager_; 136 ppapi::FileIOStateManager state_manager_;
143 137
144 base::WeakPtrFactory<PepperFileIOHost> weak_factory_; 138 base::WeakPtrFactory<PepperFileIOHost> weak_factory_;
145 139
146 DISALLOW_COPY_AND_ASSIGN(PepperFileIOHost); 140 DISALLOW_COPY_AND_ASSIGN(PepperFileIOHost);
147 }; 141 };
148 142
149 } // namespace content 143 } // namespace content
150 144
151 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_ 145 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698