Add ICU message format support
[chromium-blink-merge.git] / ios / web / public / referrer.h
blobd001863d654044f89e4d6b48a3588116e24023fc
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"
9 #include "url/gurl.h"
11 namespace web {
13 enum ReferrerPolicy {
14 ReferrerPolicyAlways,
15 ReferrerPolicyDefault,
16 ReferrerPolicyNoReferrerWhenDowngrade,
17 ReferrerPolicyNever,
18 ReferrerPolicyOrigin,
19 ReferrerPolicyOriginWhenCrossOrigin,
20 ReferrerPolicyLast = ReferrerPolicyOriginWhenCrossOrigin
23 // This struct holds a referrer URL, as well as the referrer policy to be
24 // applied to this URL. When passing around referrers that will eventually end
25 // up being used for URL requests, always use this struct.
26 struct Referrer {
27 Referrer(const GURL& url, ReferrerPolicy policy) : url(url), policy(policy) {}
28 Referrer() : policy(ReferrerPolicyDefault) {}
30 GURL url;
31 ReferrerPolicy policy;
34 } // namespace web
36 #endif // IOS_WEB_PUBLIC_REFERRER_H_