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

Unified Diff: content/common/frame_replication_state.h

Issue 2648423002: Rename feature policy classes. (Closed)
Patch Set: Rebase 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/frame_messages.h ('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 1571c75eb372abc77f045edf0e35eb0c5f150aa7..94c11d7367cd0bfd508f2dc62241007a606ea9bb 100644
--- a/content/common/frame_replication_state.h
+++ b/content/common/frame_replication_state.h
@@ -23,17 +23,17 @@ 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 FeaturePolicyParsedWhitelist {
- FeaturePolicyParsedWhitelist();
- FeaturePolicyParsedWhitelist(const FeaturePolicyParsedWhitelist& fppw);
- ~FeaturePolicyParsedWhitelist();
+struct CONTENT_EXPORT ParsedFeaturePolicyDeclaration {
+ ParsedFeaturePolicyDeclaration();
+ ParsedFeaturePolicyDeclaration(const ParsedFeaturePolicyDeclaration& fppw);
+ ~ParsedFeaturePolicyDeclaration();
std::string feature_name;
bool matches_all_origins;
std::vector<url::Origin> origins;
};
-using ParsedFeaturePolicy = std::vector<FeaturePolicyParsedWhitelist>;
+using ParsedFeaturePolicyHeader = std::vector<ParsedFeaturePolicyDeclaration>;
// This structure holds information that needs to be replicated between a
// RenderFrame and any of its associated RenderFrameProxies.
@@ -102,7 +102,7 @@ struct CONTENT_EXPORT FrameReplicationState {
// Parsed feature policy header. May be empty if no header was sent with the
// document.
- ParsedFeaturePolicy feature_policy_header;
+ ParsedFeaturePolicyHeader feature_policy_header;
// Accumulated CSP headers - gathered from http headers, <meta> elements,
// parent frames (in case of about:blank frames).
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/frame_replication_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698