Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

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 {
+// 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 {
dcheng 2016/09/27 23:09:42 It's a little surprising to me that we define this
Ken Rockot(use gerrit already) 2016/09/28 00:20:05 We could define it in content instead if you prefe
dcheng 2016/09/28 00:30:51 Perhaps, but it would be easy enough to move it in
Ken Rockot(use gerrit already) 2016/09/28 01:15:24 As discussed off thread, leaving this here for now
+ url.mojom.Url url;
+ ReferrerPolicy policy;

Powered by Google App Engine
This is Rietveld 408576698