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

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

Issue 6471019: Stackable file_util for FileAPIs. Sample code for discussion. Incomplete. Cannot be compiled. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed the Patch Set 3 before reflecting the comments. -UtilBase can be built and works. Created 9 years, 10 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
« no previous file with comments | « no previous file | webkit/fileapi/file_system_dir_url_request_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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_DIR_URL_REQUEST_JOB_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/file_util_proxy.h" 13 #include "base/file_util_proxy.h"
14 #include "base/message_loop_proxy.h" 14 #include "base/message_loop_proxy.h"
15 #include "base/platform_file.h" 15 #include "base/platform_file.h"
16 #include "base/scoped_callback_factory.h" 16 #include "base/scoped_callback_factory.h"
17 #include "base/task.h" 17 #include "base/task.h"
18 #include "net/url_request/url_request_job.h" 18 #include "net/url_request/url_request_job.h"
19 #include "webkit/fileapi/file_system_operation_context.h"
19 20
20 namespace fileapi { 21 namespace fileapi {
21 class FileSystemPathManager; 22 class FileSystemPathManager;
22 23
23 // A request job that handles reading filesystem: URLs for directories. 24 // A request job that handles reading filesystem: URLs for directories.
24 class FileSystemDirURLRequestJob : public net::URLRequestJob { 25 class FileSystemDirURLRequestJob : public net::URLRequestJob {
25 public: 26 public:
26 FileSystemDirURLRequestJob( 27 FileSystemDirURLRequestJob(
27 net::URLRequest* request, FileSystemPathManager* path_manager, 28 net::URLRequest* request, FileSystemPathManager* path_manager,
28 scoped_refptr<base::MessageLoopProxy> file_thread_proxy); 29 scoped_refptr<base::MessageLoopProxy> file_thread_proxy);
(...skipping 21 matching lines...) Expand all
50 void NotifyFailed(int rv); 51 void NotifyFailed(int rv);
51 52
52 std::string data_; 53 std::string data_;
53 FilePath relative_dir_path_; 54 FilePath relative_dir_path_;
54 FilePath absolute_dir_path_; 55 FilePath absolute_dir_path_;
55 FileSystemPathManager* const path_manager_; 56 FileSystemPathManager* const path_manager_;
56 57
57 ScopedRunnableMethodFactory<FileSystemDirURLRequestJob> method_factory_; 58 ScopedRunnableMethodFactory<FileSystemDirURLRequestJob> method_factory_;
58 base::ScopedCallbackFactory<FileSystemDirURLRequestJob> callback_factory_; 59 base::ScopedCallbackFactory<FileSystemDirURLRequestJob> callback_factory_;
59 scoped_refptr<base::MessageLoopProxy> file_thread_proxy_; 60 scoped_refptr<base::MessageLoopProxy> file_thread_proxy_;
61 scoped_ptr<FileSystemOperationContext> file_system_operation_context_;
60 62
61 DISALLOW_COPY_AND_ASSIGN(FileSystemDirURLRequestJob); 63 DISALLOW_COPY_AND_ASSIGN(FileSystemDirURLRequestJob);
62 }; 64 };
63 65
64 } // namespace fileapi 66 } // namespace fileapi
65 67
66 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_ 68 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_DIR_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/fileapi/file_system_dir_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698