chromium/components/no_state_prefetch/common/no_state_prefetch_utils.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/no_state_prefetch/common/no_state_prefetch_utils.h"

#include "base/metrics/histogram.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "extensions/buildflags/buildflags.h"
#include "url/gurl.h"
#include "url/url_constants.h"

#if BUILDFLAG(ENABLE_EXTENSIONS)
// GN doesn't understand conditional includes, so we need nogncheck here.
#include "extensions/common/constants.h"  // nogncheck
#endif

namespace prerender {

namespace {

// Valid HTTP methods for NoStatePrefetch.
const char* const kValidHttpMethods[] =;

}  // namespace

const char kFollowOnlyWhenPrerenderShown[] =;

bool DoesURLHaveValidScheme(const GURL& url) {}

bool DoesSubresourceURLHaveValidScheme(const GURL& url) {}

bool IsValidHttpMethod(const std::string& method) {}

std::string ComposeHistogramName(const std::string& prefix_type,
                                 const std::string& name) {}

}  // namespace prerender