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

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

Issue 6731033: Remove the path from PlatformFileInfo; it's cleaner just to pass it along as a (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_FILE_SYSTEM_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_ 5 #ifndef CONTENT_COMMON_FILE_SYSTEM_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_
6 #define CONTENT_COMMON_FILE_SYSTEM_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_ 6 #define CONTENT_COMMON_FILE_SYSTEM_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/platform_file.h" 9 #include "base/platform_file.h"
10 #include "webkit/fileapi/file_system_callback_dispatcher.h" 10 #include "webkit/fileapi/file_system_callback_dispatcher.h"
11 11
12 namespace WebKit { 12 namespace WebKit {
13 class WebFileSystemCallbacks; 13 class WebFileSystemCallbacks;
14 } 14 }
15 15
16 class WebFileSystemCallbackDispatcher 16 class WebFileSystemCallbackDispatcher
17 : public fileapi::FileSystemCallbackDispatcher { 17 : public fileapi::FileSystemCallbackDispatcher {
18 public: 18 public:
19 explicit WebFileSystemCallbackDispatcher( 19 explicit WebFileSystemCallbackDispatcher(
20 WebKit::WebFileSystemCallbacks* callbacks); 20 WebKit::WebFileSystemCallbacks* callbacks);
21 21
22 // FileSystemCallbackDispatcher implementation 22 // FileSystemCallbackDispatcher implementation
23 virtual void DidSucceed(); 23 virtual void DidSucceed();
24 virtual void DidReadMetadata(const base::PlatformFileInfo& file_info); 24 virtual void DidReadMetadata(
25 const base::PlatformFileInfo& file_info,
26 const FilePath& platform_path);
25 virtual void DidReadDirectory( 27 virtual void DidReadDirectory(
26 const std::vector<base::FileUtilProxy::Entry>& entries, 28 const std::vector<base::FileUtilProxy::Entry>& entries,
27 bool has_more); 29 bool has_more);
28 virtual void DidOpenFileSystem(const std::string&, 30 virtual void DidOpenFileSystem(const std::string&,
29 const FilePath&); 31 const FilePath&);
30 virtual void DidFail(base::PlatformFileError); 32 virtual void DidFail(base::PlatformFileError);
31 virtual void DidWrite(int64 bytes, bool complete); 33 virtual void DidWrite(int64 bytes, bool complete);
32 34
33 private: 35 private:
34 WebKit::WebFileSystemCallbacks* callbacks_; 36 WebKit::WebFileSystemCallbacks* callbacks_;
35 }; 37 };
36 38
37 #endif // CONTENT_COMMON_FILE_SYSTEM_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_ 39 #endif // CONTENT_COMMON_FILE_SYSTEM_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/common/file_system/file_system_dispatcher.cc ('k') | content/common/file_system/webfilesystem_callback_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698