| Index: content/common/frame_replication_state.h
|
| diff --git a/content/common/frame_replication_state.h b/content/common/frame_replication_state.h
|
| index cc8d4780d30615511950eba6ba1b31482c13bbea..f29bcb2edf25bf516e3d33268db89e3c7704335c 100644
|
| --- a/content/common/frame_replication_state.h
|
| +++ b/content/common/frame_replication_state.h
|
| @@ -20,6 +20,19 @@ 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. It forms
|
| +// part of the FrameReplicationState below.
|
| +struct CONTENT_EXPORT FeaturePolicyParsedWhitelist {
|
| + FeaturePolicyParsedWhitelist();
|
| + FeaturePolicyParsedWhitelist(const FeaturePolicyParsedWhitelist& fppw);
|
| + ~FeaturePolicyParsedWhitelist();
|
| +
|
| + std::string feature_name;
|
| + bool matches_all_origins;
|
| + std::vector<std::string> origins;
|
| +};
|
| +
|
| // This structure holds information that needs to be replicated between a
|
| // RenderFrame and any of its associated RenderFrameProxies.
|
| struct CONTENT_EXPORT FrameReplicationState {
|
| @@ -84,9 +97,9 @@ struct CONTENT_EXPORT FrameReplicationState {
|
| // scratch.
|
| std::string unique_name;
|
|
|
| - // Feature policy header. May be empty if no header was sent with the
|
| + // Parsed feature policy header. May be empty if no header was sent with the
|
| // document.
|
| - std::string feature_policy_header;
|
| + std::vector<FeaturePolicyParsedWhitelist> feature_policy_header;
|
|
|
| // Accumulated CSP headers - gathered from http headers, <meta> elements,
|
| // parent frames (in case of about:blank frames).
|
|
|