OLD | NEW |
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_COMMON_FILEAPI_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_ | 5 #ifndef CONTENT_COMMON_FILEAPI_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_ |
6 #define CONTENT_COMMON_FILEAPI_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_ | 6 #define CONTENT_COMMON_FILEAPI_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" |
(...skipping 10 matching lines...) Expand all Loading... |
21 : public fileapi::FileSystemCallbackDispatcher { | 21 : public fileapi::FileSystemCallbackDispatcher { |
22 public: | 22 public: |
23 explicit WebFileSystemCallbackDispatcher( | 23 explicit WebFileSystemCallbackDispatcher( |
24 WebKit::WebFileSystemCallbacks* callbacks); | 24 WebKit::WebFileSystemCallbacks* callbacks); |
25 | 25 |
26 // FileSystemCallbackDispatcher implementation | 26 // FileSystemCallbackDispatcher implementation |
27 virtual void DidSucceed() OVERRIDE; | 27 virtual void DidSucceed() OVERRIDE; |
28 virtual void DidReadMetadata( | 28 virtual void DidReadMetadata( |
29 const base::PlatformFileInfo& file_info, | 29 const base::PlatformFileInfo& file_info, |
30 const base::FilePath& platform_path) OVERRIDE; | 30 const base::FilePath& platform_path) OVERRIDE; |
| 31 virtual void DidCreateSnapshotFile( |
| 32 const base::PlatformFileInfo& file_info, |
| 33 const base::FilePath& platform_path) OVERRIDE; |
31 virtual void DidReadDirectory( | 34 virtual void DidReadDirectory( |
32 const std::vector<base::FileUtilProxy::Entry>& entries, | 35 const std::vector<base::FileUtilProxy::Entry>& entries, |
33 bool has_more) OVERRIDE; | 36 bool has_more) OVERRIDE; |
34 virtual void DidOpenFileSystem(const std::string&, | 37 virtual void DidOpenFileSystem(const std::string&, |
35 const GURL&) OVERRIDE; | 38 const GURL&) OVERRIDE; |
36 virtual void DidFail(base::PlatformFileError) OVERRIDE; | 39 virtual void DidFail(base::PlatformFileError) OVERRIDE; |
37 virtual void DidWrite(int64 bytes, bool complete) OVERRIDE; | 40 virtual void DidWrite(int64 bytes, bool complete) OVERRIDE; |
38 | 41 |
39 private: | 42 private: |
40 WebKit::WebFileSystemCallbacks* callbacks_; | 43 WebKit::WebFileSystemCallbacks* callbacks_; |
41 }; | 44 }; |
42 | 45 |
43 } // namespace content | 46 } // namespace content |
44 | 47 |
45 #endif // CONTENT_COMMON_FILEAPI_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_ | 48 #endif // CONTENT_COMMON_FILEAPI_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_ |
OLD | NEW |