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

Unified Diff: webkit/fileapi/file_system_dir_url_request_job.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 side-by-side diff with in-line comments
Download patch
Index: webkit/fileapi/file_system_dir_url_request_job.h
===================================================================
--- webkit/fileapi/file_system_dir_url_request_job.h (revision 82028)
+++ webkit/fileapi/file_system_dir_url_request_job.h (working copy)
@@ -16,15 +16,17 @@
#include "base/platform_file.h"
#include "base/task.h"
#include "net/url_request/url_request_job.h"
+#include "webkit/fileapi/file_system_url_request_job_base.h"
namespace fileapi {
-class FileSystemPathManager;
+class FileSystemContext;
+class FileSystemOperation;
// A request job that handles reading filesystem: URLs for directories.
-class FileSystemDirURLRequestJob : public net::URLRequestJob {
+class FileSystemDirURLRequestJob : public FileSystemURLRequestJobBase {
public:
FileSystemDirURLRequestJob(
- net::URLRequest* request, FileSystemPathManager* path_manager,
+ net::URLRequest* request, FileSystemContext* file_system_context,
scoped_refptr<base::MessageLoopProxy> file_thread_proxy);
// URLRequestJob methods:
@@ -38,25 +40,19 @@
// TODO(adamk): Implement GetResponseInfo and GetResponseCode to simulate
// an HTTP response.
- private:
+ protected:
+ // FileSystemURLRequestJobBase methods.
+ virtual void DidGetLocalPath(const FilePath& local_path);
+
virtual ~FileSystemDirURLRequestJob();
- void StartAsync();
- void DidGetRootPath(bool success, const FilePath& root_path,
- const std::string& name);
void DidReadDirectory(base::PlatformFileError error_code,
const std::vector<base::FileUtilProxy::Entry>& entries);
+ fileapi::FileSystemOperation* GetNewOperation();
- void NotifyFailed(int rv);
-
std::string data_;
- FilePath relative_dir_path_;
- FilePath absolute_dir_path_;
- FileSystemPathManager* const path_manager_;
-
ScopedRunnableMethodFactory<FileSystemDirURLRequestJob> method_factory_;
base::ScopedCallbackFactory<FileSystemDirURLRequestJob> callback_factory_;
- scoped_refptr<base::MessageLoopProxy> file_thread_proxy_;
DISALLOW_COPY_AND_ASSIGN(FileSystemDirURLRequestJob);
};

Powered by Google App Engine
This is Rietveld 408576698