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/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_encoding_detection.h" | 9 #include "base/i18n/icu_encoding_detection.h" |
10 #include "base/i18n/icu_string_conversions.h" | 10 #include "base/i18n/icu_string_conversions.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "base/sys_string_conversions.h" | 13 #include "base/strings/sys_string_conversions.h" |
14 #include "base/time.h" | 14 #include "base/time.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
16 #include "net/base/escape.h" | 16 #include "net/base/escape.h" |
17 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
18 #include "net/base/net_util.h" | 18 #include "net/base/net_util.h" |
19 #include "net/ftp/ftp_directory_listing_parser.h" | 19 #include "net/ftp/ftp_directory_listing_parser.h" |
20 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" | 20 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" |
21 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLLoaderClient.
h" | 21 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLLoaderClient.
h" |
22 #include "webkit/glue/weburlresponse_extradata_impl.h" | 22 #include "webkit/glue/weburlresponse_extradata_impl.h" |
23 | 23 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 ASCIIToUTF16(".."), std::string(), false, 0, base::Time())); | 114 ASCIIToUTF16(".."), std::string(), false, 0, base::Time())); |
115 } | 115 } |
116 } | 116 } |
117 | 117 |
118 void FtpDirectoryListingResponseDelegate::SendDataToClient( | 118 void FtpDirectoryListingResponseDelegate::SendDataToClient( |
119 const std::string& data) { | 119 const std::string& data) { |
120 client_->didReceiveData(loader_, data.data(), data.length(), -1); | 120 client_->didReceiveData(loader_, data.data(), data.length(), -1); |
121 } | 121 } |
122 | 122 |
123 } // namespace webkit_glue | 123 } // namespace webkit_glue |
OLD | NEW |