OLD | NEW |
(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 #include "content/public/common/referrer_struct_traits.h" |
| 6 |
| 7 #include "third_party/WebKit/public/platform/ReferrerPolicyEnumTraits.h" |
| 8 #include "url/mojo/url_gurl_struct_traits.h" |
| 9 |
| 10 namespace mojo { |
| 11 |
| 12 // static |
| 13 bool StructTraits<::blink::mojom::ReferrerDataView, content::Referrer>::Read( |
| 14 ::blink::mojom::ReferrerDataView data, |
| 15 content::Referrer* out) { |
| 16 return data.ReadUrl(&out->url) && data.ReadPolicy(&out->policy); |
| 17 } |
| 18 |
| 19 } // namespace mojo |
OLD | NEW |