Disable ContentSettingBubbleModelTest.RPHAllow which is flaky.
[chromium-blink-merge.git] / content / renderer / pepper / null_file_system_callback_dispatcher.h
blob103194821f2298a0058abdc842ff85188c74d01b
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_
8 #include <vector>
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"
15 class GURL;
17 namespace base {
18 class FilePath;
19 class FileUtilProxy;
20 struct PlatformFileInfo;
21 } // namespace base
23 namespace content {
25 class NullFileSystemCallbackDispatcher
26 : public fileapi::FileSystemCallbackDispatcher {
27 public:
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,
45 int file_open_id,
46 quota::QuotaLimitType quota_policy) OVERRIDE;
47 virtual void DidFail(base::PlatformFileError platform_error) OVERRIDE;
49 private:
50 DISALLOW_COPY_AND_ASSIGN(NullFileSystemCallbackDispatcher);
53 } // namespace content
55 #endif // CONTENT_RENDERER_PEPPER_NULL_FILE_SYSTEM_CALLBACK_DISPATCHER_H_