Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

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: 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
14 class GURL;
15
16 namespace base {
17 class FilePath;
18 class FileUtilProxy;
19 struct PlatformFileInfo;
20 } // namespace base
21
22 namespace content {
23
24 class NullFileSystemCallbackDispatcher
25 : public fileapi::FileSystemCallbackDispatcher {
26 public:
27 NullFileSystemCallbackDispatcher() {}
28
29 virtual ~NullFileSystemCallbackDispatcher(){}
30
31 virtual void DidSucceed() OVERRIDE;
32 virtual void DidReadMetadata(const base::PlatformFileInfo& file_info,
33 const base::FilePath& platform_path) OVERRIDE;
34 virtual void DidCreateSnapshotFile(
35 const base::PlatformFileInfo& file_info,
36 const base::FilePath& platform_path) OVERRIDE;
37 virtual void DidReadDirectory(
38 const std::vector<base::FileUtilProxy::Entry>& entries,
39 bool has_more) OVERRIDE;
40 virtual void DidOpenFileSystem(const std::string& name,
41 const GURL& root) OVERRIDE;
42 virtual void DidWrite(int64 bytes, bool complete) OVERRIDE;
43 virtual void DidOpenFile(base::PlatformFile file) OVERRIDE;
44
45 private:
46 virtual void DidFail(base::PlatformFileError platform_error) OVERRIDE;
yzshen1 2013/04/11 17:04:57 Move this out of private?
victorhsieh 2013/04/11 18:24:38 Done.
47
48 DISALLOW_COPY_AND_ASSIGN(NullFileSystemCallbackDispatcher);
49 };
50
51 } // namespace content
52
53 #endif // CONTENT_RENDERER_PEPPER_NULL_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698