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_url_request_job.h" | 5 #include "webkit/fileapi/file_system_url_request_job.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/file_util_proxy.h" | 10 #include "base/file_util_proxy.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/platform_file.h" | 12 #include "base/platform_file.h" |
13 #include "base/threading/thread_restrictions.h" | 13 #include "base/threading/thread_restrictions.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
16 #include "net/base/file_stream.h" | 16 #include "net/base/file_stream.h" |
17 #include "net/base/io_buffer.h" | 17 #include "net/base/io_buffer.h" |
18 #include "net/base/mime_util.h" | 18 #include "net/base/mime_util.h" |
19 #include "net/base/net_errors.h" | 19 #include "net/base/net_errors.h" |
20 #include "net/base/net_util.h" | 20 #include "net/base/net_util.h" |
21 #include "net/http/http_response_headers.h" | 21 #include "net/http/http_response_headers.h" |
22 #include "net/http/http_response_info.h" | 22 #include "net/http/http_response_info.h" |
23 #include "net/http/http_util.h" | 23 #include "net/http/http_util.h" |
24 #include "net/url_request/url_request.h" | 24 #include "net/url_request/url_request.h" |
25 #include "webkit/fileapi/file_system_callback_dispatcher.h" | 25 #include "webkit/fileapi/file_system_callback_dispatcher.h" |
26 #include "webkit/fileapi/file_system_operation.h" | 26 #include "webkit/fileapi/file_system_operation.h" |
27 #include "webkit/fileapi/file_system_path_manager.h" | |
28 #include "webkit/fileapi/file_system_util.h" | 27 #include "webkit/fileapi/file_system_util.h" |
29 | 28 |
30 using net::URLRequest; | 29 using net::URLRequest; |
31 using net::URLRequestJob; | 30 using net::URLRequestJob; |
32 using net::URLRequestStatus; | 31 using net::URLRequestStatus; |
33 | 32 |
34 namespace fileapi { | 33 namespace fileapi { |
35 | 34 |
36 static const int kFileFlags = base::PLATFORM_FILE_OPEN | | 35 static const int kFileFlags = base::PLATFORM_FILE_OPEN | |
37 base::PLATFORM_FILE_READ | | 36 base::PLATFORM_FILE_READ | |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 } | 306 } |
308 | 307 |
309 return false; | 308 return false; |
310 } | 309 } |
311 | 310 |
312 void FileSystemURLRequestJob::NotifyFailed(int rv) { | 311 void FileSystemURLRequestJob::NotifyFailed(int rv) { |
313 NotifyDone(URLRequestStatus(URLRequestStatus::FAILED, rv)); | 312 NotifyDone(URLRequestStatus(URLRequestStatus::FAILED, rv)); |
314 } | 313 } |
315 | 314 |
316 } // namespace fileapi | 315 } // namespace fileapi |
OLD | NEW |