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" | 9 #include "net/base/client_socket.h" |
10 #include "net/base/client_socket_factory.h" | 10 #include "net/base/client_socket_factory.h" |
11 #include "net/base/connection_type_histograms.h" | 11 #include "net/base/connection_type_histograms.h" |
12 #include "net/base/dns_resolution_observer.h" | |
13 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
14 #include "net/ftp/ftp_network_session.h" | 13 #include "net/ftp/ftp_network_session.h" |
15 #include "net/ftp/ftp_request_info.h" | 14 #include "net/ftp/ftp_request_info.h" |
16 | 15 |
17 // TODO(ibrar): Try to avoid sscanf. | 16 // TODO(ibrar): Try to avoid sscanf. |
18 #if !defined(COMPILER_MSVC) | 17 #if !defined(COMPILER_MSVC) |
19 #define sscanf_s sscanf | 18 #define sscanf_s sscanf |
20 #endif | 19 #endif |
21 | 20 |
22 const char kCRLF[] = "\r\n"; | 21 const char kCRLF[] = "\r\n"; |
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
872 &io_callback_); | 871 &io_callback_); |
873 } | 872 } |
874 | 873 |
875 int FtpNetworkTransaction::DoDataReadComplete(int result) { | 874 int FtpNetworkTransaction::DoDataReadComplete(int result) { |
876 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 |
877 // terminated string. | 876 // terminated string. |
878 return result; | 877 return result; |
879 } | 878 } |
880 | 879 |
881 } // namespace net | 880 } // namespace net |
OLD | NEW |