blob: 1c5b36f825b040b551254dfd35f4e2b71151e37a [file] [log] [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/dns/public/resolve_error_info.h"
namespace net {
ResolveErrorInfo::ResolveErrorInfo() = default;
ResolveErrorInfo::ResolveErrorInfo(int resolve_error,
bool is_secure_network_error)
: error(resolve_error), is_secure_network_error(is_secure_network_error) {
DCHECK(!(is_secure_network_error && resolve_error == net::OK));
}
ResolveErrorInfo::ResolveErrorInfo(const ResolveErrorInfo& resolve_error_info) =
default;
ResolveErrorInfo::ResolveErrorInfo(ResolveErrorInfo&& other) = default;
ResolveErrorInfo& ResolveErrorInfo::operator=(const ResolveErrorInfo& other) =
default;
ResolveErrorInfo& ResolveErrorInfo::operator=(ResolveErrorInfo&& other) =
default;
} // namespace net