blob: 536737bc0f861b59935c5bb0f6f52ff0ab50f8cc [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_PRELOADING_PREFETCH_PREFETCH_FEATURES_H_
#define CONTENT_BROWSER_PRELOADING_PREFETCH_PREFETCH_FEATURES_H_
#include "base/feature_list.h"
#include "content/common/content_export.h"
namespace content::features {
// If enabled, then prefetch requests from speculation rules should use the code
// in content/browser/preloading/prefetch/ instead of
// chrome/browser/preloadingprefetch/prefetch_proxy/.
CONTENT_EXPORT BASE_DECLARE_FEATURE(kPrefetchUseContentRefactor);
// IF enabled, then redirects will be followed when prefetching.
CONTENT_EXPORT BASE_DECLARE_FEATURE(kPrefetchRedirects);
// If enabled, then an updated prefetch request limit policy will be used that
// separates eager and non-eager prefetches, and allows for evictions.
CONTENT_EXPORT BASE_DECLARE_FEATURE(kPrefetchNewLimits);
} // namespace content::features
#endif // CONTENT_BROWSER_PRELOADING_PREFETCH_PREFETCH_FEATURES_H_