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" |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 FtpNetworkTransaction::FtpNetworkTransaction( | 28 FtpNetworkTransaction::FtpNetworkTransaction( |
29 FtpNetworkSession* session, | 29 FtpNetworkSession* session, |
30 ClientSocketFactory* socket_factory) | 30 ClientSocketFactory* socket_factory) |
31 : command_sent_(COMMAND_NONE), | 31 : command_sent_(COMMAND_NONE), |
32 ALLOW_THIS_IN_INITIALIZER_LIST( | 32 ALLOW_THIS_IN_INITIALIZER_LIST( |
33 io_callback_(this, &FtpNetworkTransaction::OnIOComplete)), | 33 io_callback_(this, &FtpNetworkTransaction::OnIOComplete)), |
34 user_callback_(NULL), | 34 user_callback_(NULL), |
35 session_(session), | 35 session_(session), |
36 request_(NULL), | 36 request_(NULL), |
| 37 resolver_(session->host_resolver()), |
37 read_ctrl_buf_size_(kCtrlBufLen), | 38 read_ctrl_buf_size_(kCtrlBufLen), |
38 response_message_buf_len_(0), | 39 response_message_buf_len_(0), |
39 read_data_buf_len_(0), | 40 read_data_buf_len_(0), |
40 file_data_len_(0), | 41 file_data_len_(0), |
41 last_error_(OK), | 42 last_error_(OK), |
42 is_anonymous_(false), | 43 is_anonymous_(false), |
43 retr_failed_(false), | 44 retr_failed_(false), |
44 data_connection_port_(0), | 45 data_connection_port_(0), |
45 socket_factory_(socket_factory), | 46 socket_factory_(socket_factory), |
46 next_state_(STATE_NONE) { | 47 next_state_(STATE_NONE) { |
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
871 &io_callback_); | 872 &io_callback_); |
872 } | 873 } |
873 | 874 |
874 int FtpNetworkTransaction::DoDataReadComplete(int result) { | 875 int FtpNetworkTransaction::DoDataReadComplete(int result) { |
875 DLOG(INFO) << read_data_buf_->data(); // The read_data_buf_ is NULL | 876 DLOG(INFO) << read_data_buf_->data(); // The read_data_buf_ is NULL |
876 // terminated string. | 877 // terminated string. |
877 return result; | 878 return result; |
878 } | 879 } |
879 | 880 |
880 } // namespace net | 881 } // namespace net |
OLD | NEW |