OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "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/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "net/base/address_list.h" | 12 #include "net/base/address_list.h" |
13 #include "net/base/connection_type_histograms.h" | 13 #include "net/base/connection_type_histograms.h" |
14 #include "net/base/escape.h" | 14 #include "net/base/escape.h" |
15 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
16 #include "net/base/net_log.h" | 16 #include "net/base/net_log.h" |
17 #include "net/base/net_util.h" | 17 #include "net/base/net_util.h" |
18 #include "net/ftp/ftp_network_session.h" | 18 #include "net/ftp/ftp_network_session.h" |
19 #include "net/ftp/ftp_request_info.h" | 19 #include "net/ftp/ftp_request_info.h" |
20 #include "net/ftp/ftp_util.h" | 20 #include "net/ftp/ftp_util.h" |
21 #include "net/socket/client_socket.h" | |
22 #include "net/socket/client_socket_factory.h" | 21 #include "net/socket/client_socket_factory.h" |
| 22 #include "net/socket/stream_socket.h" |
23 | 23 |
24 // TODO(ibrar): Try to avoid sscanf. | 24 // TODO(ibrar): Try to avoid sscanf. |
25 #if !defined(COMPILER_MSVC) | 25 #if !defined(COMPILER_MSVC) |
26 #define sscanf_s sscanf | 26 #define sscanf_s sscanf |
27 #endif | 27 #endif |
28 | 28 |
29 const char kCRLF[] = "\r\n"; | 29 const char kCRLF[] = "\r\n"; |
30 | 30 |
31 const int kCtrlBufLen = 1024; | 31 const int kCtrlBufLen = 1024; |
32 | 32 |
(...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1299 if (!had_error_type[type]) { | 1299 if (!had_error_type[type]) { |
1300 had_error_type[type] = true; | 1300 had_error_type[type] = true; |
1301 UMA_HISTOGRAM_ENUMERATION("Net.FtpDataConnectionErrorHappened", | 1301 UMA_HISTOGRAM_ENUMERATION("Net.FtpDataConnectionErrorHappened", |
1302 type, NUM_OF_NET_ERROR_TYPES); | 1302 type, NUM_OF_NET_ERROR_TYPES); |
1303 } | 1303 } |
1304 UMA_HISTOGRAM_ENUMERATION("Net.FtpDataConnectionErrorCount", | 1304 UMA_HISTOGRAM_ENUMERATION("Net.FtpDataConnectionErrorCount", |
1305 type, NUM_OF_NET_ERROR_TYPES); | 1305 type, NUM_OF_NET_ERROR_TYPES); |
1306 } | 1306 } |
1307 | 1307 |
1308 } // namespace net | 1308 } // namespace net |
OLD | NEW |