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

Unified Diff: content/public/common/referrer_struct_traits.cc

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
« no previous file with comments | « content/public/common/referrer_struct_traits.h ('k') | content/public/common/typemaps.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/referrer_struct_traits.cc
diff --git a/content/public/common/referrer_struct_traits.cc b/content/public/common/referrer_struct_traits.cc
new file mode 100644
index 0000000000000000000000000000000000000000..6fc851b7f2885a792bf14b4c3d09a4cde8415c01
--- /dev/null
+++ b/content/public/common/referrer_struct_traits.cc
@@ -0,0 +1,19 @@
+// 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.
+
+#include "content/public/common/referrer_struct_traits.h"
+
+#include "third_party/WebKit/public/platform/ReferrerPolicyEnumTraits.h"
+#include "url/mojo/url_gurl_struct_traits.h"
+
+namespace mojo {
+
+// static
+bool StructTraits<::blink::mojom::ReferrerDataView, content::Referrer>::Read(
+ ::blink::mojom::ReferrerDataView data,
+ content::Referrer* out) {
+ return data.ReadUrl(&out->url) && data.ReadPolicy(&out->policy);
+}
+
+} // namespace mojo
« no previous file with comments | « content/public/common/referrer_struct_traits.h ('k') | content/public/common/typemaps.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698