This source file includes following definitions.
- NetLogSSLErrorCallback
- CreateNetLogSSLErrorCallback
#include "net/socket/ssl_error_params.h"
#include "base/bind.h"
#include "base/values.h"
namespace net {
namespace {
base::Value* NetLogSSLErrorCallback(int net_error,
int ssl_lib_error,
NetLog::LogLevel ) {
base::DictionaryValue* dict = new base::DictionaryValue();
dict->SetInteger("net_error", net_error);
if (ssl_lib_error)
dict->SetInteger("ssl_lib_error", ssl_lib_error);
return dict;
}
}
NetLog::ParametersCallback CreateNetLogSSLErrorCallback(int net_error,
int ssl_lib_error) {
return base::Bind(&NetLogSSLErrorCallback, net_error, ssl_lib_error);
}
}