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

Unified Diff: content/common/feature_policy/feature_policy.cc

Issue 2654873004: Move content-side Feature Policy code into content/{common,child}/feature_policy (Closed)
Patch Set: Fix missed nit 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
« no previous file with comments | « content/common/feature_policy/feature_policy.h ('k') | content/common/frame_replication_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/feature_policy/feature_policy.cc
diff --git a/content/common/feature_policy/feature_policy.cc b/content/common/feature_policy/feature_policy.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a8204daa5021e845062c11360d561311959145d3
--- /dev/null
+++ b/content/common/feature_policy/feature_policy.cc
@@ -0,0 +1,25 @@
+// Copyright 2017 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/common/feature_policy/feature_policy.h"
+
+namespace content {
+
+ParsedFeaturePolicyDeclaration::ParsedFeaturePolicyDeclaration()
+ : matches_all_origins(false) {}
+
+ParsedFeaturePolicyDeclaration::ParsedFeaturePolicyDeclaration(
+ std::string feature_name,
+ bool matches_all_origins,
+ std::vector<url::Origin> origins)
+ : feature_name(feature_name),
+ matches_all_origins(matches_all_origins),
+ origins(origins) {}
+
+ParsedFeaturePolicyDeclaration::ParsedFeaturePolicyDeclaration(
+ const ParsedFeaturePolicyDeclaration& rhs) = default;
+
+ParsedFeaturePolicyDeclaration::~ParsedFeaturePolicyDeclaration() {}
+
+} // namespace content
« no previous file with comments | « content/common/feature_policy/feature_policy.h ('k') | content/common/frame_replication_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698