Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: content/renderer/pepper/null_file_system_callback_dispatcher.h

Issue 13726024: Refactor FileSystem (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NON_EXPORTED_BASE Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 quota::QuotaLimitType quota_policy) OVERRIDE;
46 virtual void DidFail(base::PlatformFileError platform_error) OVERRIDE;
47
48 private:
49 DISALLOW_COPY_AND_ASSIGN(NullFileSystemCallbackDispatcher);
50 };
51
52 } // namespace content
53
54 #endif // CONTENT_RENDERER_PEPPER_NULL_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698