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

Side by Side Diff: webkit/fileapi/file_system_callback_dispatcher.h

Issue 6833007: More filesystem cleanup: convert URL-encoded-as-FilePath to actual URL, where (Closed) Base URL: svn://chrome-svn/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) 2010 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 11
12 class GURL;
13
12 namespace fileapi { 14 namespace fileapi {
13 15
14 // This class mirrors the callbacks in 16 // This class mirrors the callbacks in
15 // third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallbacks.h, 17 // third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallbacks.h,
16 // but uses chromium types. 18 // but uses chromium types.
17 class FileSystemCallbackDispatcher { 19 class FileSystemCallbackDispatcher {
18 public: 20 public:
19 virtual ~FileSystemCallbackDispatcher() {} 21 virtual ~FileSystemCallbackDispatcher() {}
20 22
21 // Callback for various operations that don't require return values. 23 // Callback for various operations that don't require return values.
(...skipping 12 matching lines...) Expand all
34 // will be called multiple times, |entries| will have only a subset of 36 // will be called multiple times, |entries| will have only a subset of
35 // all contents (the subsets reported in any two calls are disjoint), and 37 // all contents (the subsets reported in any two calls are disjoint), and
36 // |has_more| will be true, except for the last chunk. 38 // |has_more| will be true, except for the last chunk.
37 virtual void DidReadDirectory( 39 virtual void DidReadDirectory(
38 const std::vector<base::FileUtilProxy::Entry>& entries, 40 const std::vector<base::FileUtilProxy::Entry>& entries,
39 bool has_more) = 0; 41 bool has_more) = 0;
40 42
41 // Callback for opening a file system. Called with a name and root path for 43 // Callback for opening a file system. Called with a name and root path for
42 // the FileSystem when the request is accepted. Used by WebFileSystem API. 44 // the FileSystem when the request is accepted. Used by WebFileSystem API.
43 virtual void DidOpenFileSystem(const std::string& name, 45 virtual void DidOpenFileSystem(const std::string& name,
44 const FilePath& root_path) = 0; 46 const GURL& root) = 0;
45 47
46 // Called with an error code when a requested operation has failed. 48 // Called with an error code when a requested operation has failed.
47 virtual void DidFail(base::PlatformFileError error_code) = 0; 49 virtual void DidFail(base::PlatformFileError error_code) = 0;
48 50
49 // Callback for FileWriter's write() call. 51 // Callback for FileWriter's write() call.
50 virtual void DidWrite(int64 bytes, bool complete) = 0; 52 virtual void DidWrite(int64 bytes, bool complete) = 0;
51 }; 53 };
52 54
53 } // namespace fileapi 55 } // namespace fileapi
54 56
55 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_ 57 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper_plugin_delegate_impl.cc ('k') | webkit/fileapi/file_system_file_util_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698