| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_RENDERER_PEPPER_NULL_FILE_SYSTEM_CALLBACK_DISPATCHER_H_ | |
| 6 #define CONTENT_RENDERER_PEPPER_NULL_FILE_SYSTEM_CALLBACK_DISPATCHER_H_ | |
| 7 | |
| 8 #include <vector> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/platform_file.h" | |
| 12 #include "webkit/fileapi/file_system_callback_dispatcher.h" | |
| 13 #include "webkit/quota/quota_types.h" | |
| 14 | |
| 15 class GURL; | |
| 16 | |
| 17 namespace base { | |
| 18 class FilePath; | |
| 19 class FileUtilProxy; | |
| 20 struct PlatformFileInfo; | |
| 21 } // namespace base | |
| 22 | |
| 23 namespace content { | |
| 24 | |
| 25 class NullFileSystemCallbackDispatcher | |
| 26 : public fileapi::FileSystemCallbackDispatcher { | |
| 27 public: | |
| 28 NullFileSystemCallbackDispatcher() {} | |
| 29 | |
| 30 virtual ~NullFileSystemCallbackDispatcher(){} | |
| 31 | |
| 32 virtual void DidSucceed() OVERRIDE; | |
| 33 virtual void DidReadMetadata(const base::PlatformFileInfo& file_info, | |
| 34 const base::FilePath& platform_path) OVERRIDE; | |
| 35 virtual void DidCreateSnapshotFile( | |
| 36 const base::PlatformFileInfo& file_info, | |
| 37 const base::FilePath& platform_path) OVERRIDE; | |
| 38 virtual void DidReadDirectory( | |
| 39 const std::vector<base::FileUtilProxy::Entry>& entries, | |
| 40 bool has_more) OVERRIDE; | |
| 41 virtual void DidOpenFileSystem(const std::string& name, | |
| 42 const GURL& root) OVERRIDE; | |
| 43 virtual void DidWrite(int64 bytes, bool complete) OVERRIDE; | |
| 44 virtual void DidOpenFile(base::PlatformFile file, | |
| 45 int file_open_id, | |
| 46 quota::QuotaLimitType quota_policy) OVERRIDE; | |
| 47 virtual void DidFail(base::PlatformFileError platform_error) OVERRIDE; | |
| 48 | |
| 49 private: | |
| 50 DISALLOW_COPY_AND_ASSIGN(NullFileSystemCallbackDispatcher); | |
| 51 }; | |
| 52 | |
| 53 } // namespace content | |
| 54 | |
| 55 #endif // CONTENT_RENDERER_PEPPER_NULL_FILE_SYSTEM_CALLBACK_DISPATCHER_H_ | |
| OLD | NEW |