#include "third_party/blink/renderer/platform/network/network_utils.h"
#include "base/metrics/histogram_functions.h"
#include "base/timer/elapsed_timer.h"
#include "net/base/data_url.h"
#include "net/base/ip_address.h"
#include "net/base/net_errors.h"
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
#include "net/base/url_util.h"
#include "net/http/http_response_headers.h"
#include "net/http/http_util.h"
#include "services/metrics/public/cpp/metrics_utils.h"
#include "services/metrics/public/cpp/ukm_builders.h"
#include "third_party/blink/public/common/mime_util/mime_util.h"
#include "third_party/blink/public/platform/web_string.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_response.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
#include "third_party/blink/renderer/platform/wtf/shared_buffer.h"
#include "third_party/blink/renderer/platform/wtf/text/string_utf8_adaptor.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#include "url/gurl.h"
namespace {
net::registry_controlled_domains::PrivateRegistryFilter
getNetPrivateRegistryFilter(
blink::network_utils::PrivateRegistryFilter filter) { … }
}
namespace blink {
namespace network_utils {
bool IsReservedIPAddress(const String& host) { … }
String GetDomainAndRegistry(const String& host, PrivateRegistryFilter filter) { … }
std::tuple<int, ResourceResponse, scoped_refptr<SharedBuffer>> ParseDataURL(
const KURL& url,
const String& method,
ukm::SourceId source_id,
ukm::UkmRecorder* recorder) { … }
bool IsDataURLMimeTypeSupported(const KURL& url,
std::string* data,
std::string* mime_type) { … }
bool IsRedirectResponseCode(int response_code) { … }
bool IsCertificateTransparencyRequiredError(int error_code) { … }
String GenerateAcceptLanguageHeader(const String& lang) { … }
String ExpandLanguageList(const String& lang) { … }
Vector<char> ParseMultipartBoundary(const AtomicString& content_type_header) { … }
}
}