| 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> |
| 11 | 11 |
| 12 #include "base/i18n/icu_encoding_detection.h" | 12 #include "base/i18n/icu_encoding_detection.h" |
| 13 #include "base/i18n/icu_string_conversions.h" | 13 #include "base/i18n/icu_string_conversions.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
| 16 #include "base/strings/sys_string_conversions.h" | 16 #include "base/strings/sys_string_conversions.h" |
| 17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| 18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
| 19 #include "content/child/weburlresponse_extradata_impl.h" | 19 #include "content/child/weburlresponse_extradata_impl.h" |
| 20 #include "net/base/directory_listing.h" |
| 20 #include "net/base/escape.h" | 21 #include "net/base/escape.h" |
| 21 #include "net/base/net_errors.h" | 22 #include "net/base/net_errors.h" |
| 22 #include "net/base/net_util.h" | |
| 23 #include "net/ftp/ftp_directory_listing_parser.h" | 23 #include "net/ftp/ftp_directory_listing_parser.h" |
| 24 #include "third_party/WebKit/public/platform/WebURL.h" | 24 #include "third_party/WebKit/public/platform/WebURL.h" |
| 25 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" | 25 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" |
| 26 | 26 |
| 27 using blink::WebURLLoader; | 27 using blink::WebURLLoader; |
| 28 using blink::WebURLLoaderClient; | 28 using blink::WebURLLoaderClient; |
| 29 using blink::WebURLResponse; | 29 using blink::WebURLResponse; |
| 30 using net::FtpDirectoryListingEntry; | 30 using net::FtpDirectoryListingEntry; |
| 31 | 31 |
| 32 namespace { | 32 namespace { |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 } | 126 } |
| 127 } | 127 } |
| 128 | 128 |
| 129 void FtpDirectoryListingResponseDelegate::SendDataToClient( | 129 void FtpDirectoryListingResponseDelegate::SendDataToClient( |
| 130 const std::string& data) { | 130 const std::string& data) { |
| 131 if (client_) | 131 if (client_) |
| 132 client_->didReceiveData(loader_, data.data(), data.length(), -1); | 132 client_->didReceiveData(loader_, data.data(), data.length(), -1); |
| 133 } | 133 } |
| 134 | 134 |
| 135 } // namespace content | 135 } // namespace content |
| OLD | NEW |