This source file includes following definitions.
- ProxyConfigSourceToString
#include "net/proxy/proxy_config_source.h"
#include "base/basictypes.h"
#include "base/logging.h"
namespace net {
namespace {
const char* kSourceNames[] = {
"UNKNOWN",
"SYSTEM",
"SYSTEM FAILED",
"GCONF",
"GSETTINGS",
"KDE",
"ENV",
"CUSTOM",
"TEST"
};
COMPILE_ASSERT(ARRAYSIZE_UNSAFE(kSourceNames) == NUM_PROXY_CONFIG_SOURCES,
source_names_incorrect_size);
}
const char* ProxyConfigSourceToString(ProxyConfigSource source) {
DCHECK_GT(NUM_PROXY_CONFIG_SOURCES, source);
return kSourceNames[source];
}
}