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

Unified Diff: content/common/frame_replication_state.h

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.cc ('k') | content/common/frame_replication_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/frame_replication_state.h
diff --git a/content/common/frame_replication_state.h b/content/common/frame_replication_state.h
index 94c11d7367cd0bfd508f2dc62241007a606ea9bb..ee7defc549bde51ceb0f57282ca4491e645fad85 100644
--- a/content/common/frame_replication_state.h
+++ b/content/common/frame_replication_state.h
@@ -10,6 +10,7 @@
#include "content/common/content_export.h"
#include "content/common/content_security_policy_header.h"
+#include "content/common/feature_policy/feature_policy.h"
#include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h"
#include "url/origin.h"
@@ -20,21 +21,6 @@ enum class WebSandboxFlags;
namespace content {
-// This struct holds feature policy whitelist data that needs to be replicated
-// between a RenderFrame and any of its associated RenderFrameProxies. A list of
-// these form part of the FrameReplicationState below (one entry per feature).
-struct CONTENT_EXPORT ParsedFeaturePolicyDeclaration {
- ParsedFeaturePolicyDeclaration();
- ParsedFeaturePolicyDeclaration(const ParsedFeaturePolicyDeclaration& fppw);
- ~ParsedFeaturePolicyDeclaration();
-
- std::string feature_name;
- bool matches_all_origins;
- std::vector<url::Origin> origins;
-};
-
-using ParsedFeaturePolicyHeader = std::vector<ParsedFeaturePolicyDeclaration>;
-
// This structure holds information that needs to be replicated between a
// RenderFrame and any of its associated RenderFrameProxies.
struct CONTENT_EXPORT FrameReplicationState {
« no previous file with comments | « content/common/feature_policy/feature_policy.cc ('k') | content/common/frame_replication_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698