1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef IOS_WEB_PUBLIC_REFERRER_H_
6 #define IOS_WEB_PUBLIC_REFERRER_H_
8 #include "base/logging.h"
15 ReferrerPolicyDefault
,
18 ReferrerPolicyLast
= ReferrerPolicyOrigin
21 // This struct holds a referrer URL, as well as the referrer policy to be
22 // applied to this URL. When passing around referrers that will eventually end
23 // up being used for URL requests, always use this struct.
25 Referrer(const GURL
& url
, ReferrerPolicy policy
) : url(url
), policy(policy
) {}
26 Referrer() : policy(ReferrerPolicyDefault
) {}
29 ReferrerPolicy policy
;
34 #endif // IOS_WEB_PUBLIC_REFERRER_H_