blob: 5ae862cd21abe300b24dc3f8ee9e1be552f2ade1 [file] [log] [blame]
// 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.
// 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_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, // Server using Netware listing style.
SERVER_OS2 = 5, // Server using OS/2 listing style.
void UpdateFtpServerTypeHistograms(FtpServerType type);
} // namespace net