OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/fileapi/file_system_dir_url_request_job.h" | 5 #include "webkit/browser/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" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "webkit/browser/fileapi/file_system_operation_runner.h" | 22 #include "webkit/browser/fileapi/file_system_operation_runner.h" |
23 #include "webkit/browser/fileapi/file_system_url.h" | 23 #include "webkit/browser/fileapi/file_system_url.h" |
24 #include "webkit/common/fileapi/directory_entry.h" | 24 #include "webkit/common/fileapi/directory_entry.h" |
25 #include "webkit/common/fileapi/file_system_util.h" | 25 #include "webkit/common/fileapi/file_system_util.h" |
26 | 26 |
27 using net::NetworkDelegate; | 27 using net::NetworkDelegate; |
28 using net::URLRequest; | 28 using net::URLRequest; |
29 using net::URLRequestJob; | 29 using net::URLRequestJob; |
30 using net::URLRequestStatus; | 30 using net::URLRequestStatus; |
31 | 31 |
32 namespace fileapi { | 32 namespace storage { |
33 | 33 |
34 FileSystemDirURLRequestJob::FileSystemDirURLRequestJob( | 34 FileSystemDirURLRequestJob::FileSystemDirURLRequestJob( |
35 URLRequest* request, | 35 URLRequest* request, |
36 NetworkDelegate* network_delegate, | 36 NetworkDelegate* network_delegate, |
37 const std::string& storage_domain, | 37 const std::string& storage_domain, |
38 FileSystemContext* file_system_context) | 38 FileSystemContext* file_system_context) |
39 : URLRequestJob(request, network_delegate), | 39 : URLRequestJob(request, network_delegate), |
40 storage_domain_(storage_domain), | 40 storage_domain_(storage_domain), |
41 file_system_context_(file_system_context), | 41 file_system_context_(file_system_context), |
42 weak_factory_(this) { | 42 weak_factory_(this) { |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 name, std::string(), it->is_directory, it->size, | 150 name, std::string(), it->is_directory, it->size, |
151 it->last_modified_time)); | 151 it->last_modified_time)); |
152 } | 152 } |
153 | 153 |
154 if (!has_more) { | 154 if (!has_more) { |
155 set_expected_content_size(data_.size()); | 155 set_expected_content_size(data_.size()); |
156 NotifyHeadersComplete(); | 156 NotifyHeadersComplete(); |
157 } | 157 } |
158 } | 158 } |
159 | 159 |
160 } // namespace fileapi | 160 } // namespace storage |
OLD | NEW |