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/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" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 GetNewOperation()->ReadDirectory( | 127 GetNewOperation()->ReadDirectory( |
128 url_, | 128 url_, |
129 base::Bind(&FileSystemDirURLRequestJob::DidReadDirectory, this)); | 129 base::Bind(&FileSystemDirURLRequestJob::DidReadDirectory, this)); |
130 } else { | 130 } else { |
131 set_expected_content_size(data_.size()); | 131 set_expected_content_size(data_.size()); |
132 NotifyHeadersComplete(); | 132 NotifyHeadersComplete(); |
133 } | 133 } |
134 } | 134 } |
135 | 135 |
136 FileSystemOperation* FileSystemDirURLRequestJob::GetNewOperation() { | 136 FileSystemOperation* FileSystemDirURLRequestJob::GetNewOperation() { |
137 return file_system_context_->CreateFileSystemOperation(url_); | 137 return file_system_context_->CreateFileSystemOperation(url_, NULL); |
138 } | 138 } |
139 | 139 |
140 } // namespace fileapi | 140 } // namespace fileapi |
OLD | NEW |