OLD | NEW |
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 CONTENT_COMMON_FILE_SYSTEM_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_ | 5 #ifndef CONTENT_COMMON_FILE_SYSTEM_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_ |
6 #define CONTENT_COMMON_FILE_SYSTEM_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_ | 6 #define CONTENT_COMMON_FILE_SYSTEM_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
10 #include "webkit/fileapi/file_system_callback_dispatcher.h" | 10 #include "webkit/fileapi/file_system_callback_dispatcher.h" |
11 | 11 |
| 12 class GURL; |
| 13 |
12 namespace WebKit { | 14 namespace WebKit { |
13 class WebFileSystemCallbacks; | 15 class WebFileSystemCallbacks; |
14 } | 16 } |
15 | 17 |
16 class WebFileSystemCallbackDispatcher | 18 class WebFileSystemCallbackDispatcher |
17 : public fileapi::FileSystemCallbackDispatcher { | 19 : public fileapi::FileSystemCallbackDispatcher { |
18 public: | 20 public: |
19 explicit WebFileSystemCallbackDispatcher( | 21 explicit WebFileSystemCallbackDispatcher( |
20 WebKit::WebFileSystemCallbacks* callbacks); | 22 WebKit::WebFileSystemCallbacks* callbacks); |
21 | 23 |
22 // FileSystemCallbackDispatcher implementation | 24 // FileSystemCallbackDispatcher implementation |
23 virtual void DidSucceed(); | 25 virtual void DidSucceed(); |
24 virtual void DidReadMetadata( | 26 virtual void DidReadMetadata( |
25 const base::PlatformFileInfo& file_info, | 27 const base::PlatformFileInfo& file_info, |
26 const FilePath& platform_path); | 28 const FilePath& platform_path); |
27 virtual void DidReadDirectory( | 29 virtual void DidReadDirectory( |
28 const std::vector<base::FileUtilProxy::Entry>& entries, | 30 const std::vector<base::FileUtilProxy::Entry>& entries, |
29 bool has_more); | 31 bool has_more); |
30 virtual void DidOpenFileSystem(const std::string&, | 32 virtual void DidOpenFileSystem(const std::string&, |
31 const FilePath&); | 33 const GURL&); |
32 virtual void DidFail(base::PlatformFileError); | 34 virtual void DidFail(base::PlatformFileError); |
33 virtual void DidWrite(int64 bytes, bool complete); | 35 virtual void DidWrite(int64 bytes, bool complete); |
34 | 36 |
35 private: | 37 private: |
36 WebKit::WebFileSystemCallbacks* callbacks_; | 38 WebKit::WebFileSystemCallbacks* callbacks_; |
37 }; | 39 }; |
38 | 40 |
39 #endif // CONTENT_COMMON_FILE_SYSTEM_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_ | 41 #endif // CONTENT_COMMON_FILE_SYSTEM_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_ |
OLD | NEW |