OLD | NEW |
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 #include "webkit/fileapi/file_system_dir_url_request_job.h" | 5 #include "webkit/fileapi/file_system_dir_url_request_job.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/file_util_proxy.h" | 11 #include "base/file_util_proxy.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/platform_file.h" | 13 #include "base/platform_file.h" |
14 #include "base/sys_string_conversions.h" | 14 #include "base/sys_string_conversions.h" |
15 #include "base/time.h" | 15 #include "base/time.h" |
16 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
18 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
19 #include "net/base/io_buffer.h" | 19 #include "net/base/io_buffer.h" |
20 #include "net/base/net_errors.h" | 20 #include "net/base/net_errors.h" |
21 #include "net/base/net_util.h" | 21 #include "net/base/net_util.h" |
22 #include "net/url_request/url_request.h" | 22 #include "net/url_request/url_request.h" |
23 #include "webkit/fileapi/file_system_callback_dispatcher.h" | 23 #include "webkit/fileapi/file_system_callback_dispatcher.h" |
24 #include "webkit/fileapi/file_system_operation.h" | 24 #include "webkit/fileapi/file_system_operation.h" |
25 #include "webkit/fileapi/file_system_path_manager.h" | |
26 #include "webkit/fileapi/file_system_util.h" | 25 #include "webkit/fileapi/file_system_util.h" |
27 | 26 |
28 using net::URLRequest; | 27 using net::URLRequest; |
29 using net::URLRequestJob; | 28 using net::URLRequestJob; |
30 using net::URLRequestStatus; | 29 using net::URLRequestStatus; |
31 | 30 |
32 namespace fileapi { | 31 namespace fileapi { |
33 | 32 |
34 static FilePath GetRelativePath(const GURL& url) { | 33 static FilePath GetRelativePath(const GURL& url) { |
35 FilePath relative_path; | 34 FilePath relative_path; |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 } | 174 } |
176 } | 175 } |
177 | 176 |
178 FileSystemOperation* FileSystemDirURLRequestJob::GetNewOperation() { | 177 FileSystemOperation* FileSystemDirURLRequestJob::GetNewOperation() { |
179 return new FileSystemOperation(new CallbackDispatcher(this), | 178 return new FileSystemOperation(new CallbackDispatcher(this), |
180 file_thread_proxy_, | 179 file_thread_proxy_, |
181 file_system_context_); | 180 file_system_context_); |
182 } | 181 } |
183 | 182 |
184 } // namespace fileapi | 183 } // namespace fileapi |
OLD | NEW |