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

Side by Side Diff: webkit/fileapi/file_system_operation.h

Issue 6731033: Remove the path from PlatformFileInfo; it's cleaner just to pass it along as a (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 bool created); 105 bool created);
106 106
107 // Callback for CreateFile for |exclusive|=false cases. 107 // Callback for CreateFile for |exclusive|=false cases.
108 void DidEnsureFileExistsNonExclusive(base::PlatformFileError rv, 108 void DidEnsureFileExistsNonExclusive(base::PlatformFileError rv,
109 bool created); 109 bool created);
110 110
111 // Generic callback that translates platform errors to WebKit error codes. 111 // Generic callback that translates platform errors to WebKit error codes.
112 void DidFinishFileOperation(base::PlatformFileError rv); 112 void DidFinishFileOperation(base::PlatformFileError rv);
113 113
114 void DidDirectoryExists(base::PlatformFileError rv, 114 void DidDirectoryExists(base::PlatformFileError rv,
115 const base::PlatformFileInfo& file_info); 115 const base::PlatformFileInfo& file_info,
116 const FilePath&);
kinuko 2011/03/25 22:39:54 nit: in chromium I don't think we usually omit (un
kinuko 2011/03/25 22:44:43 Found that this wasn't really true, though I remem
ericu 2011/03/28 20:24:34 I added them back in as "unused".
116 void DidFileExists(base::PlatformFileError rv, 117 void DidFileExists(base::PlatformFileError rv,
117 const base::PlatformFileInfo& file_info); 118 const base::PlatformFileInfo& file_info,
119 const FilePath&);
118 void DidGetMetadata(base::PlatformFileError rv, 120 void DidGetMetadata(base::PlatformFileError rv,
119 const base::PlatformFileInfo& file_info); 121 const base::PlatformFileInfo& file_info,
122 const FilePath& platform_path);
120 void DidReadDirectory( 123 void DidReadDirectory(
121 base::PlatformFileError rv, 124 base::PlatformFileError rv,
122 const std::vector<base::FileUtilProxy::Entry>& entries); 125 const std::vector<base::FileUtilProxy::Entry>& entries);
123 void DidWrite( 126 void DidWrite(
124 base::PlatformFileError rv, 127 base::PlatformFileError rv,
125 int64 bytes, 128 int64 bytes,
126 bool complete); 129 bool complete);
127 void DidTouchFile(base::PlatformFileError rv); 130 void DidTouchFile(base::PlatformFileError rv);
128 131
129 // Helper for Write(). 132 // Helper for Write().
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 scoped_ptr<FileWriterDelegate> file_writer_delegate_; 204 scoped_ptr<FileWriterDelegate> file_writer_delegate_;
202 scoped_ptr<net::URLRequest> blob_request_; 205 scoped_ptr<net::URLRequest> blob_request_;
203 scoped_ptr<FileSystemOperation> cancel_operation_; 206 scoped_ptr<FileSystemOperation> cancel_operation_;
204 207
205 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); 208 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation);
206 }; 209 };
207 210
208 } // namespace fileapi 211 } // namespace fileapi
209 212
210 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ 213 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698