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

Unified Diff: content/child/feature_policy/feature_policy_platform.h

Issue 2654873004: Move content-side Feature Policy code into content/{common,child}/feature_policy (Closed)
Patch Set: Clean up includes Created 3 years, 11 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: content/child/feature_policy/feature_policy_platform.h
diff --git a/content/child/feature_policy/feature_policy_platform.h b/content/child/feature_policy/feature_policy_platform.h
new file mode 100644
index 0000000000000000000000000000000000000000..cf930badbf0e2898765af78e7e799697a53afb48
--- /dev/null
+++ b/content/child/feature_policy/feature_policy_platform.h
@@ -0,0 +1,22 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
raymes 2017/01/25 01:00:42 nit: 2017
iclelland 2017/01/25 03:28:38 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_CHILD_FEATURE_POLICY_FEATURE_POLICY_PLATFORM_H_
+#define CONTENT_CHILD_FEATURE_POLICY_FEATURE_POLICY_PLATFORM_H_
+
+#include "content/common/feature_policy/feature_policy.h"
+#include "third_party/WebKit/public/platform/WebFeaturePolicy.h"
+
+namespace content {
+
+// Conversions between ParsedFeaturePolicyHeader and
+// WebParsedFeaturePolicyHeader
+ParsedFeaturePolicyHeader FeaturePolicyHeaderFromWeb(
+ const blink::WebParsedFeaturePolicyHeader& web_feature_policy_header);
+blink::WebParsedFeaturePolicyHeader FeaturePolicyHeaderToWeb(
+ const ParsedFeaturePolicyHeader& feature_policy_header);
+
+} // namespace content
+
+#endif // CONTENT_CHILD_FEATURE_POLICY_FEATURE_POLICY_PLATFORM_H_

Powered by Google App Engine
This is Rietveld 408576698