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

Side by Side Diff: third_party/WebKit/public/platform/referrer.mojom

Issue 2363573002: Move ViewHostMsg_CreateWindow to mojom (Closed)
Patch Set: . Created 4 years, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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.
4
5 module blink.mojom;
6
7 import "url/mojo/url.mojom";
8
9 // Maps to blink::WebReferrerPolicy in
10 // src/third_party/WebKit/public/platform/WebReferrerPolicy.h.
11 //
12 // TODO(rockot): Update all WebReferrerPolicy consumers to use this type
13 // instead, and remove the typemap.
14 enum ReferrerPolicy {
15 ALWAYS,
16 DEFAULT,
17 NO_REFERRER_WHEN_DOWNGRADE,
18 NEVER,
19 ORIGIN,
20 ORIGIN_WHEN_CROSS_ORIGIN,
21 NO_REFERRER_WHEN_DOWNGRADE_ORIGIN_WHEN_CROSS_ORIGIN,
22 };
23
24 // This struct holds a referrer URL, as well as the referrer policy to be
25 // applied to this URL. When passing around referrers that will eventually end
26 // up being used for URL requests, always use this struct.
27 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
28 url.mojom.Url url;
29 ReferrerPolicy policy;
30 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698