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

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

Issue 6864040: Fixed file/directory url resolution for external mount point provider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | 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 class GURL; 12 class GURL;
13 13
14 namespace WebKit { 14 namespace WebKit {
15 class WebFileSystemCallbacks; 15 class WebFileSystemCallbacks;
16 } 16 }
17 17
18 class WebFileSystemCallbackDispatcher 18 class WebFileSystemCallbackDispatcher
19 : public fileapi::FileSystemCallbackDispatcher { 19 : public fileapi::FileSystemCallbackDispatcher {
20 public: 20 public:
21 explicit WebFileSystemCallbackDispatcher( 21 explicit WebFileSystemCallbackDispatcher(
22 WebKit::WebFileSystemCallbacks* callbacks); 22 WebKit::WebFileSystemCallbacks* callbacks);
23 23
24 // FileSystemCallbackDispatcher implementation 24 // FileSystemCallbackDispatcher implementation
25 virtual void DidSucceed(); 25 virtual void DidSucceed();
26 virtual void DidGetLocalPath(const FilePath& local_path);
26 virtual void DidReadMetadata( 27 virtual void DidReadMetadata(
27 const base::PlatformFileInfo& file_info, 28 const base::PlatformFileInfo& file_info,
28 const FilePath& platform_path); 29 const FilePath& platform_path);
29 virtual void DidReadDirectory( 30 virtual void DidReadDirectory(
30 const std::vector<base::FileUtilProxy::Entry>& entries, 31 const std::vector<base::FileUtilProxy::Entry>& entries,
31 bool has_more); 32 bool has_more);
32 virtual void DidOpenFileSystem(const std::string&, 33 virtual void DidOpenFileSystem(const std::string&,
33 const GURL&); 34 const GURL&);
34 virtual void DidFail(base::PlatformFileError); 35 virtual void DidFail(base::PlatformFileError);
35 virtual void DidWrite(int64 bytes, bool complete); 36 virtual void DidWrite(int64 bytes, bool complete);
36 37
37 private: 38 private:
38 WebKit::WebFileSystemCallbacks* callbacks_; 39 WebKit::WebFileSystemCallbacks* callbacks_;
39 }; 40 };
40 41
41 #endif // CONTENT_COMMON_FILE_SYSTEM_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_ 42 #endif // CONTENT_COMMON_FILE_SYSTEM_WEBFILESYSTEM_CALLBACK_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698