blob: 807845e797e236f7580867fb90a953be1e17f807 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_FTP_FTP_SERVER_TYPE_HISTOGRAMS_H_
#define NET_FTP_FTP_SERVER_TYPE_HISTOGRAMS_H_
// The UpdateFtpServerTypeHistograms function collects statistics related
// to the types of FTP servers that our users are encountering.
namespace net {
enum FtpServerType {
// Record cases in which we couldn't parse the server's response. That means
// a server type we don't recognize, a security attack (when what we're
// connecting to isn't an FTP server), or a broken server.
SERVER_UNKNOWN = 0,
SERVER_LS = 1, // Server using /bin/ls -l listing style.
SERVER_WINDOWS = 2, // Server using Windows listing style.
SERVER_VMS = 3, // Server using VMS listing style.
SERVER_NETWARE = 4, // OBSOLETE. Server using Netware listing style.
SERVER_OS2 = 5, // OBSOLETE. Server using OS/2 listing style.
NUM_OF_SERVER_TYPES
};
void UpdateFtpServerTypeHistograms(FtpServerType type);
} // namespace net
#endif // NET_FTP_FTP_SERVER_TYPE_HISTOGRAMS_H_
|