| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/child/ftp_directory_listing_response_delegate.h" | 5 #include "content/child/ftp_directory_listing_response_delegate.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 // add a link to the parent directory. | 124 // add a link to the parent directory. |
| 125 if (response_url.path().length() > 1) { | 125 if (response_url.path().length() > 1) { |
| 126 SendDataToClient(net::GetDirectoryListingEntry( | 126 SendDataToClient(net::GetDirectoryListingEntry( |
| 127 base::ASCIIToUTF16(".."), std::string(), false, 0, base::Time())); | 127 base::ASCIIToUTF16(".."), std::string(), false, 0, base::Time())); |
| 128 } | 128 } |
| 129 } | 129 } |
| 130 | 130 |
| 131 void FtpDirectoryListingResponseDelegate::SendDataToClient( | 131 void FtpDirectoryListingResponseDelegate::SendDataToClient( |
| 132 const std::string& data) { | 132 const std::string& data) { |
| 133 if (client_) { | 133 if (client_) { |
| 134 client_->didReceiveData(loader_, data.data(), data.length(), -1); | 134 client_->didReceiveData(data.data(), data.length(), -1); |
| 135 } | 135 } |
| 136 } | 136 } |
| 137 | 137 |
| 138 } // namespace content | 138 } // namespace content |
| OLD | NEW |