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

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

Issue 3599011: Add truncate and cancel for FileWriter; write and tests will come in later CL... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_CALLBACK_DISPATCHER_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_util_proxy.h" 10 #include "base/file_util_proxy.h"
(...skipping 23 matching lines...) Expand all
34 const std::vector<base::file_util_proxy::Entry>& entries, 34 const std::vector<base::file_util_proxy::Entry>& entries,
35 bool has_more) = 0; 35 bool has_more) = 0;
36 36
37 // Callback for opening a file system. Called with a name and root path for 37 // Callback for opening a file system. Called with a name and root path for
38 // the FileSystem when the request is accepted. Used by WebFileSystem API. 38 // the FileSystem when the request is accepted. Used by WebFileSystem API.
39 virtual void DidOpenFileSystem(const std::string& name, 39 virtual void DidOpenFileSystem(const std::string& name,
40 const FilePath& root_path) = 0; 40 const FilePath& root_path) = 0;
41 41
42 // Called with an error code when a requested operation has failed. 42 // Called with an error code when a requested operation has failed.
43 virtual void DidFail(base::PlatformFileError error_code) = 0; 43 virtual void DidFail(base::PlatformFileError error_code) = 0;
44
45 // Callback for FileWriter's write() call.
46 virtual void DidWrite(int64 bytes, bool complete) = 0;
44 }; 47 };
45 48
46 } // namespace fileapi 49 } // namespace fileapi
47 50
48 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_ 51 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
OLDNEW
« no previous file with comments | « chrome/common/file_system/webfilesystem_callback_dispatcher.cc ('k') | webkit/fileapi/file_system_operation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698