Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2140)

Unified Diff: third_party/WebKit/public/platform/referrer.mojom

Issue 2363573002: Move ViewHostMsg_CreateWindow to mojom (Closed)
Patch Set: . Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
+};

Powered by Google App Engine
This is Rietveld 408576698