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

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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_FILEAPI_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_ 5 #ifndef CONTENT_COMMON_FILEAPI_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_
6 #define CONTENT_COMMON_FILEAPI_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_ 6 #define CONTENT_COMMON_FILEAPI_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/files/file_util_proxy.h"
9 #include "base/platform_file.h" 10 #include "base/platform_file.h"
10 #include "webkit/fileapi/file_system_callback_dispatcher.h"
11 11
12 class GURL; 12 class GURL;
13 13
14 namespace WebKit { 14 namespace WebKit {
15 class WebFileSystemCallbacks; 15 class WebFileSystemCallbacks;
16 } 16 }
17 17
18 namespace content { 18 namespace content {
19 19
20 class WebFileSystemCallbackDispatcher 20 // Glue implementation between callbacks for FileSystemDispatcher and
21 : public fileapi::FileSystemCallbackDispatcher { 21 // WebKit::WebFileSystemCallbacks.
22 class WebFileSystemCallbackDispatcher {
22 public: 23 public:
23 explicit WebFileSystemCallbackDispatcher( 24 explicit WebFileSystemCallbackDispatcher(
24 WebKit::WebFileSystemCallbacks* callbacks); 25 WebKit::WebFileSystemCallbacks* callbacks);
25 26
26 // FileSystemCallbackDispatcher implementation 27 void DidFinish(base::PlatformFileError);
27 virtual void DidSucceed() OVERRIDE; 28 void DidReadMetadata(
28 virtual void DidReadMetadata( 29 base::PlatformFileError error,
29 const base::PlatformFileInfo& file_info, 30 const base::PlatformFileInfo& file_info,
30 const base::FilePath& platform_path) OVERRIDE; 31 const base::FilePath& platform_path);
31 virtual void DidCreateSnapshotFile( 32 void DidCreateSnapshotFile(
33 base::PlatformFileError error,
32 const base::PlatformFileInfo& file_info, 34 const base::PlatformFileInfo& file_info,
33 const base::FilePath& platform_path) OVERRIDE; 35 const base::FilePath& platform_path);
34 virtual void DidReadDirectory( 36 void DidReadDirectory(
37 base::PlatformFileError error,
35 const std::vector<base::FileUtilProxy::Entry>& entries, 38 const std::vector<base::FileUtilProxy::Entry>& entries,
36 bool has_more) OVERRIDE; 39 bool has_more);
37 virtual void DidOpenFileSystem(const std::string&, 40 void DidOpenFileSystem(
38 const GURL&) OVERRIDE; 41 base::PlatformFileError error,
39 virtual void DidFail(base::PlatformFileError) OVERRIDE; 42 const std::string& name,
40 virtual void DidWrite(int64 bytes, bool complete) OVERRIDE; 43 const GURL& root);
41 44
42 private: 45 private:
43 WebKit::WebFileSystemCallbacks* callbacks_; 46 WebKit::WebFileSystemCallbacks* callbacks_;
47
48 DISALLOW_COPY_AND_ASSIGN(WebFileSystemCallbackDispatcher);
44 }; 49 };
45 50
46 } // namespace content 51 } // namespace content
47 52
48 #endif // CONTENT_COMMON_FILEAPI_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_ 53 #endif // CONTENT_COMMON_FILEAPI_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698