| Index: third_party/WebKit/public/platform/referrer.mojom
|
| diff --git a/third_party/WebKit/public/platform/referrer.mojom b/third_party/WebKit/public/platform/referrer.mojom
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..961640e729463d3cd8f2d1ac55acb975116835d6
|
| --- /dev/null
|
| +++ b/third_party/WebKit/public/platform/referrer.mojom
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +module blink.mojom;
|
| +
|
| +import "url/mojo/url.mojom";
|
| +
|
| +// Maps to blink::WebReferrerPolicy in
|
| +// src/third_party/WebKit/public/platform/WebReferrerPolicy.h.
|
| +//
|
| +// TODO(rockot): Update all WebReferrerPolicy consumers to use this type
|
| +// instead, and remove the typemap.
|
| +enum ReferrerPolicy {
|
| + ALWAYS,
|
| + DEFAULT,
|
| + NO_REFERRER_WHEN_DOWNGRADE,
|
| + NEVER,
|
| + ORIGIN,
|
| + ORIGIN_WHEN_CROSS_ORIGIN,
|
| + NO_REFERRER_WHEN_DOWNGRADE_ORIGIN_WHEN_CROSS_ORIGIN,
|
| +};
|
| +
|
| +// This struct holds a referrer URL, as well as the referrer policy to be
|
| +// applied to this URL. When passing around referrers that will eventually end
|
| +// up being used for URL requests, always use this struct.
|
| +struct Referrer {
|
| + url.mojom.Url url;
|
| + ReferrerPolicy policy;
|
| +};
|
|
|