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

Side by Side Diff: chrome/common/file_system/webfilesystem_callback_dispatcher.h

Issue 3394003: Add Worker support for FileSystem API. (Closed)
Patch Set: '' Created 10 years, 2 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) 2010 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 CHROME_COMMON_FILE_SYSTEM_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_
6 #define CHROME_COMMON_FILE_SYSTEM_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 namespace base {
13 namespace file_util_proxy {
14 struct Entry;
15 }
16 }
17
18 namespace WebKit {
19 class WebFileSystemCallbacks;
20 }
21
22 class WebFileSystemCallbackDispatcher
23 : public fileapi::FileSystemCallbackDispatcher {
24 public:
25 explicit WebFileSystemCallbackDispatcher(
26 WebKit::WebFileSystemCallbacks* callbacks);
27
28 // FileSystemCallbackDispatcher implementation
29 virtual void DidSucceed();
30 virtual void DidReadMetadata(const base::PlatformFileInfo& file_info);
31 virtual void DidReadDirectory(
32 const std::vector<base::file_util_proxy::Entry>& entries,
33 bool has_more);
34 virtual void DidOpenFileSystem(const std::string&,
35 const FilePath&);
36 virtual void DidFail(base::PlatformFileError);
37
38 private:
39 WebKit::WebFileSystemCallbacks* callbacks_;
40 };
41
42 #endif // CHROME_COMMON_FILE_SYSTEM_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_
OLDNEW
« no previous file with comments | « chrome/common/file_system/file_system_dispatcher.cc ('k') | chrome/common/file_system/webfilesystem_callback_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698