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

Side by Side Diff: webkit/fileapi/file_system_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 WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_util_proxy.h" 10 #include "base/file_util_proxy.h"
11 #include "base/platform_file.h" 11 #include "base/platform_file.h"
12 #include "base/process.h" 12 #include "base/process.h"
13 13
14 class GURL; 14 class GURL;
15 15
16 namespace fileapi { 16 namespace fileapi {
17 17
18 // This class mirrors the callbacks in 18 // This class mirrors the callbacks in
19 // third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallbacks.h, 19 // third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallbacks.h,
20 // but uses chromium types. 20 // but uses chromium types.
21 class FileSystemCallbackDispatcher { 21 class FileSystemCallbackDispatcher {
22 public: 22 public:
23 virtual ~FileSystemCallbackDispatcher(); 23 virtual ~FileSystemCallbackDispatcher();
24 24
25 // Callback for various operations that don't require return values. 25 // Callback for various operations that don't require return values.
26 virtual void DidSucceed() = 0; 26 virtual void DidSucceed() = 0;
27 27
28 // Callback to report information for a file. 28 // Callback to report information for a file.
29 virtual void DidGetLocalPath(const FilePath& local_path) = 0;
ericu 2011/04/19 20:30:49 Move this down below DidOpenFile, as it's not one
zel 2011/04/19 23:14:00 Done.
30
31 // Callback to report information for a file.
29 virtual void DidReadMetadata( 32 virtual void DidReadMetadata(
30 const base::PlatformFileInfo& file_info, 33 const base::PlatformFileInfo& file_info,
31 const FilePath& platform_path) = 0; 34 const FilePath& platform_path) = 0;
32 35
33 // Callback to report the contents of a directory. If the contents of 36 // Callback to report the contents of a directory. If the contents of
34 // the given directory are reported in one batch, then |entries| will have 37 // the given directory are reported in one batch, then |entries| will have
35 // the list of all files/directories in the given directory, |has_more| will 38 // the list of all files/directories in the given directory, |has_more| will
36 // be false, and this callback will be called only once. If the contents of 39 // be false, and this callback will be called only once. If the contents of
37 // the given directory are reported in multiple chunks, then this callback 40 // the given directory are reported in multiple chunks, then this callback
38 // will be called multiple times, |entries| will have only a subset of 41 // will be called multiple times, |entries| will have only a subset of
(...skipping 17 matching lines...) Expand all
56 // Callback for OpenFile. This isn't in WebFileSystemCallbacks, as it's just 59 // Callback for OpenFile. This isn't in WebFileSystemCallbacks, as it's just
57 // for Pepper. 60 // for Pepper.
58 virtual void DidOpenFile( 61 virtual void DidOpenFile(
59 base::PlatformFile file, 62 base::PlatformFile file,
60 base::ProcessHandle peer_handle); 63 base::ProcessHandle peer_handle);
61 }; 64 };
62 65
63 } // namespace fileapi 66 } // namespace fileapi
64 67
65 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_ 68 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698