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

Unified Diff: content/common/frame_replication_state.h

Issue 1957783002: Replicate Content-Security-Policy into remote frame proxies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/common/frame_replication_state.h
diff --git a/content/common/frame_replication_state.h b/content/common/frame_replication_state.h
index f6373491a19478b5173e51e346fb6c79ca3cf8da..9cb88af432b95953bd2fc6d1b1a5ef9c34911510 100644
--- a/content/common/frame_replication_state.h
+++ b/content/common/frame_replication_state.h
@@ -5,7 +5,11 @@
#ifndef CONTENT_COMMON_FRAME_REPLICATION_STATE_H_
#define CONTENT_COMMON_FRAME_REPLICATION_STATE_H_
+#include <string>
+#include <vector>
+
#include "content/common/content_export.h"
+#include "content/common/content_security_policy_header.h"
#include "url/origin.h"
namespace blink {
@@ -79,6 +83,10 @@ struct CONTENT_EXPORT FrameReplicationState {
// scratch.
std::string unique_name;
+ // Accumulated CSP headers - gathered from http headers, <meta> elements,
+ // parent frames (in case of about:blank frames).
alexmos 2016/05/11 19:46:41 Sanity check: if a page dynamically removes a <met
Łukasz Anforowicz 2016/05/11 23:14:48 It doesn't. I am basing this on the fact that Con
alexmos 2016/05/12 22:37:24 Acknowledged.
+ std::vector<ContentSecurityPolicyHeader> accumulated_csp_headers;
+
// Whether the frame is in a document tree or a shadow tree, per the Shadow
// DOM spec: https://w3c.github.io/webcomponents/spec/shadow/
// Note: This should really be const, as it can never change once a frame is

Powered by Google App Engine
This is Rietveld 408576698