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

Unified Diff: third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h

Issue 1957783002: Replicate Content-Security-Policy into remote frame proxies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/title.html/title1.html/ 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: third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
diff --git a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
index f9e2466d95675d1a93b71e7a8f64bfc3863f3baa..4d62e662e67818ee738ec89a58c76778f424e1a6 100644
--- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
+++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
@@ -55,6 +55,7 @@ class ConsoleMessage;
class CSPDirectiveList;
class CSPSource;
class Document;
+class FrameLoaderClient;
class KURL;
class ResourceRequest;
class SecurityOrigin;
@@ -142,11 +143,14 @@ public:
DECLARE_TRACE();
void bindToExecutionContext(ExecutionContext*);
+ void setupSelf(const SecurityOrigin&);
void copyStateFrom(const ContentSecurityPolicy*);
void copyPluginTypesFrom(const ContentSecurityPolicy*);
void didReceiveHeaders(const ContentSecurityPolicyResponseHeaders&);
void didReceiveHeader(const String&, ContentSecurityPolicyHeaderType, ContentSecurityPolicyHeaderSource);
+ void replicateHeader(const String&, ContentSecurityPolicyHeaderType, ContentSecurityPolicyHeaderSource);
+ void reportAccumulatedHeaders(FrameLoaderClient*) const;
PassOwnPtr<Vector<CSPHeaderAndType>> headers() const;
@@ -271,11 +275,16 @@ private:
void applyPolicySideEffectsToExecutionContext();
- SecurityOrigin* getSecurityOrigin() const;
KURL completeURL(const String&) const;
void logToConsole(const String& message, MessageLevel = ErrorMessageLevel);
- void addPolicyFromHeaderValue(const String&, ContentSecurityPolicyHeaderType, ContentSecurityPolicyHeaderSource);
+
+ FrameLoaderClient* frameLoaderClient() const;
+ enum FrameLoaderClientNotificationAction {
dcheng 2016/05/17 05:57:15 This enum is quite a mouthful. Since the replicati
Łukasz Anforowicz 2016/05/17 17:01:23 Done. After the changes the check "if this is a r
+ NotifyFrameLoaderClient,
+ DontNotifyFrameLoaderClient,
+ };
+ void addPolicyFromHeaderValue(const String&, ContentSecurityPolicyHeaderType, ContentSecurityPolicyHeaderSource, FrameLoaderClientNotificationAction = NotifyFrameLoaderClient);
bool shouldSendViolationReport(const String&) const;
void didSendViolationReport(const String&);

Powered by Google App Engine
This is Rietveld 408576698