| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/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/WebKit/chromium/public/WebURL.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
| 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLLoaderClient.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLLoader
Client.h" |
| 22 | 22 |
| 23 using net::FtpDirectoryListingEntry; | 23 using net::FtpDirectoryListingEntry; |
| 24 | 24 |
| 25 using WebKit::WebURLLoader; | 25 using WebKit::WebURLLoader; |
| 26 using WebKit::WebURLLoaderClient; | 26 using WebKit::WebURLLoaderClient; |
| 27 using WebKit::WebURLResponse; | 27 using WebKit::WebURLResponse; |
| 28 | 28 |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| 31 string16 ConvertPathToUTF16(const std::string& path) { | 31 string16 ConvertPathToUTF16(const std::string& path) { |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 ASCIIToUTF16(".."), std::string(), false, 0, base::Time())); | 107 ASCIIToUTF16(".."), std::string(), false, 0, base::Time())); |
| 108 } | 108 } |
| 109 } | 109 } |
| 110 | 110 |
| 111 void FtpDirectoryListingResponseDelegate::SendDataToClient( | 111 void FtpDirectoryListingResponseDelegate::SendDataToClient( |
| 112 const std::string& data) { | 112 const std::string& data) { |
| 113 client_->didReceiveData(loader_, data.data(), data.length(), -1); | 113 client_->didReceiveData(loader_, data.data(), data.length(), -1); |
| 114 } | 114 } |
| 115 | 115 |
| 116 } // namespace webkit_glue | 116 } // namespace webkit_glue |
| OLD | NEW |