| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/glue/ftp_directory_listing_response_delegate.h" | 5 #include "webkit/glue/ftp_directory_listing_response_delegate.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/i18n/icu_string_conversions.h" | 9 #include "base/i18n/icu_string_conversions.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 net::GetDirectoryListingEntry(ASCIIToUTF16(".."), | 243 net::GetDirectoryListingEntry(ASCIIToUTF16(".."), |
| 244 std::string(), | 244 std::string(), |
| 245 false, 0, | 245 false, 0, |
| 246 base::Time())); | 246 base::Time())); |
| 247 } | 247 } |
| 248 } | 248 } |
| 249 | 249 |
| 250 void FtpDirectoryListingResponseDelegate::SendResponseBufferToClient() { | 250 void FtpDirectoryListingResponseDelegate::SendResponseBufferToClient() { |
| 251 if (!response_buffer_.empty()) { | 251 if (!response_buffer_.empty()) { |
| 252 client_->didReceiveData(loader_, response_buffer_.data(), | 252 client_->didReceiveData(loader_, response_buffer_.data(), |
| 253 response_buffer_.length(), -1); | 253 response_buffer_.length()); |
| 254 response_buffer_.clear(); | 254 response_buffer_.clear(); |
| 255 } | 255 } |
| 256 } | 256 } |
| 257 | 257 |
| 258 } // namespace webkit_glue | 258 } // namespace webkit_glue |
| OLD | NEW |