OLD | NEW |
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 Loading... |
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; | |
47 }; | 44 }; |
48 | 45 |
49 } // namespace fileapi | 46 } // namespace fileapi |
50 | 47 |
51 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_ | 48 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_ |
OLD | NEW |