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

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

Issue 13726024: Refactor FileSystem (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, 97 // Similar to ExecutePlatformGeneralCallback, but takes a PP_Error.
98 base::PlatformFileError error_code, 98 void ExecuteGeneralCallback(ppapi::host::ReplyMessageContext reply_context,
99 int bytes_written); 99 int32_t pp_error);
100 100
101 // TODO(victorhsieh): eliminate plugin_delegate_ as it's no longer needed. 101 // TODO(victorhsieh): eliminate plugin_delegate_ as it's no longer needed.
102 webkit::ppapi::PluginDelegate* plugin_delegate_; // Not owned. 102 webkit::ppapi::PluginDelegate* plugin_delegate_; // Not owned.
103 103
104 base::PlatformFile file_; 104 base::PlatformFile file_;
105 105
106 // The file system type specified in the Open() call. This will be 106 // The file system type specified in the Open() call. This will be
107 // PP_FILESYSTEMTYPE_INVALID before open was called. This value does not 107 // PP_FILESYSTEMTYPE_INVALID before open was called. This value does not
108 // indicate that the open command actually succeeded. 108 // indicate that the open command actually succeeded.
109 PP_FileSystemType file_system_type_; 109 PP_FileSystemType file_system_type_;
(...skipping 13 matching lines...) Expand all
123 base::WeakPtrFactory<PepperFileIOHost> weak_factory_; 123 base::WeakPtrFactory<PepperFileIOHost> weak_factory_;
124 124
125 ppapi::FileIOStateManager state_manager_; 125 ppapi::FileIOStateManager state_manager_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(PepperFileIOHost); 127 DISALLOW_COPY_AND_ASSIGN(PepperFileIOHost);
128 }; 128 };
129 129
130 } // namespace content 130 } // namespace content
131 131
132 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_ 132 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698