| OLD | NEW |
| 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 #include "net/ftp/ftp_network_transaction.h" | 5 #include "net/ftp/ftp_network_transaction.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "net/base/client_socket.h" | |
| 10 #include "net/base/client_socket_factory.h" | |
| 11 #include "net/base/connection_type_histograms.h" | 9 #include "net/base/connection_type_histograms.h" |
| 12 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
| 13 #include "net/ftp/ftp_network_session.h" | 11 #include "net/ftp/ftp_network_session.h" |
| 14 #include "net/ftp/ftp_request_info.h" | 12 #include "net/ftp/ftp_request_info.h" |
| 13 #include "net/socket/client_socket.h" |
| 14 #include "net/socket/client_socket_factory.h" |
| 15 | 15 |
| 16 // TODO(ibrar): Try to avoid sscanf. | 16 // TODO(ibrar): Try to avoid sscanf. |
| 17 #if !defined(COMPILER_MSVC) | 17 #if !defined(COMPILER_MSVC) |
| 18 #define sscanf_s sscanf | 18 #define sscanf_s sscanf |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 const char kCRLF[] = "\r\n"; | 21 const char kCRLF[] = "\r\n"; |
| 22 | 22 |
| 23 const int kCtrlBufLen = 1024; | 23 const int kCtrlBufLen = 1024; |
| 24 | 24 |
| (...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 871 &io_callback_); | 871 &io_callback_); |
| 872 } | 872 } |
| 873 | 873 |
| 874 int FtpNetworkTransaction::DoDataReadComplete(int result) { | 874 int FtpNetworkTransaction::DoDataReadComplete(int result) { |
| 875 DLOG(INFO) << read_data_buf_->data(); // The read_data_buf_ is NULL | 875 DLOG(INFO) << read_data_buf_->data(); // The read_data_buf_ is NULL |
| 876 // terminated string. | 876 // terminated string. |
| 877 return result; | 877 return result; |
| 878 } | 878 } |
| 879 | 879 |
| 880 } // namespace net | 880 } // namespace net |
| OLD | NEW |