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

Side by Side Diff: content/common/fileapi/webfilesystem_callback_dispatcher.h

Issue 14796018: Cleanup: Deprecate FileSystemCallbackDispatcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 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_COMMON_FILEAPI_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_
6 #define CONTENT_COMMON_FILEAPI_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_
7
8 #include "base/basictypes.h"
9 #include "base/platform_file.h"
10 #include "webkit/fileapi/file_system_callback_dispatcher.h"
11
12 class GURL;
13
14 namespace WebKit {
15 class WebFileSystemCallbacks;
16 }
17
18 namespace content {
19
20 class WebFileSystemCallbackDispatcher
21 : public fileapi::FileSystemCallbackDispatcher {
22 public:
23 explicit WebFileSystemCallbackDispatcher(
24 WebKit::WebFileSystemCallbacks* callbacks);
25
26 // FileSystemCallbackDispatcher implementation
27 virtual void DidSucceed() OVERRIDE;
28 virtual void DidReadMetadata(
29 const base::PlatformFileInfo& file_info,
30 const base::FilePath& platform_path) OVERRIDE;
31 virtual void DidCreateSnapshotFile(
32 const base::PlatformFileInfo& file_info,
33 const base::FilePath& platform_path) OVERRIDE;
34 virtual void DidReadDirectory(
35 const std::vector<base::FileUtilProxy::Entry>& entries,
36 bool has_more) OVERRIDE;
37 virtual void DidOpenFileSystem(const std::string&,
38 const GURL&) OVERRIDE;
39 virtual void DidFail(base::PlatformFileError) OVERRIDE;
40 virtual void DidWrite(int64 bytes, bool complete) OVERRIDE;
41
42 private:
43 WebKit::WebFileSystemCallbacks* callbacks_;
44 };
45
46 } // namespace content
47
48 #endif // CONTENT_COMMON_FILEAPI_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/common/fileapi/webfilesystem_callback_adapters.cc ('k') | content/common/fileapi/webfilesystem_callback_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698