chromium/net/url_request/referrer_policy.h

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

#ifndef NET_URL_REQUEST_REFERRER_POLICY_H_
#define NET_URL_REQUEST_REFERRER_POLICY_H_

namespace net {

// A ReferrerPolicy controls the contents of the Referer header when URLRequest
// following HTTP redirects. Note that setting a ReferrerPolicy on the request
// has no effect on the Referer header of the initial leg of the request; the
// caller is responsible for setting the initial Referer, and the ReferrerPolicy
// only controls what happens to the Referer while following redirects.
//
// NOTE: This enum is persisted to histograms. Do not change or reorder values.
// TODO(~M89): Once the Net.URLRequest.ReferrerPolicyForRequest metric is
// retired.
enum class ReferrerPolicy {};

}  // namespace net

#endif  // NET_URL_REQUEST_REFERRER_POLICY_H_