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

Unified Diff: webkit/fileapi/file_system_url_request_job_base.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_url_request_job_base.h
===================================================================
--- webkit/fileapi/file_system_url_request_job_base.h (revision 0)
+++ webkit/fileapi/file_system_url_request_job_base.h (revision 0)
@@ -0,0 +1,48 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_BASE_H_
+#define WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_BASE_H_
+#pragma once
+
+#include "base/file_path.h"
+#include "base/message_loop_proxy.h"
+#include "net/url_request/url_request_job.h"
+#include "webkit/fileapi/file_system_callback_dispatcher.h"
+#include "webkit/fileapi/file_system_context.h"
+#include "webkit/fileapi/file_system_operation.h"
+
+namespace fileapi {
+
+// A base class for request jobs that handle reading filesystem: URLs for
+// files and directories.
+class FileSystemURLRequestJobBase : public net::URLRequestJob {
+ public:
+ FileSystemURLRequestJobBase(
+ net::URLRequest* request, FileSystemContext* file_system_context,
+ scoped_refptr<base::MessageLoopProxy> file_thread_proxy);
+
+ void StartAsync();
+
+ protected:
+ virtual void DidGetLocalPath(const FilePath& local_path) = 0 ;
+
+ void NotifyFailed(int rv);
+ void RespondFailedOnIOThread(int error_code);
+ FileSystemOperation* GetNewOperation();
+
+ FilePath relative_file_path_;
+ FilePath absolute_file_path_;
+ scoped_refptr<FileSystemContext> file_system_context_;
+ scoped_refptr<base::MessageLoopProxy> file_thread_proxy_;
+
+ private:
+ friend class LocalPathCallbackDispatcher;
+ void OnGetLocalPath(const FilePath& local_path);
+ DISALLOW_COPY_AND_ASSIGN(FileSystemURLRequestJobBase);
+};
+
+} // namespace fileapi
+
+#endif // WEBKIT_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_BASE_H_
Property changes on: webkit/fileapi/file_system_url_request_job_base.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698