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.
5 #ifndef CONTENT_RENDERER_PEPPER_NULL_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
6 #define CONTENT_RENDERER_PEPPER_NULL_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
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"
20 struct PlatformFileInfo
;
25 class NullFileSystemCallbackDispatcher
26 : public fileapi::FileSystemCallbackDispatcher
{
28 NullFileSystemCallbackDispatcher() {}
30 virtual ~NullFileSystemCallbackDispatcher(){}
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
,
46 quota::QuotaLimitType quota_policy
) OVERRIDE
;
47 virtual void DidFail(base::PlatformFileError platform_error
) OVERRIDE
;
50 DISALLOW_COPY_AND_ASSIGN(NullFileSystemCallbackDispatcher
);
53 } // namespace content
55 #endif // CONTENT_RENDERER_PEPPER_NULL_FILE_SYSTEM_CALLBACK_DISPATCHER_H_