Chromium Code Reviews| 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..48c11c331e2409357ce6099b1b0768d6100095db 100644 |
| --- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h |
| +++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h |
| @@ -142,11 +142,13 @@ public: |
| DECLARE_TRACE(); |
| void bindToExecutionContext(ExecutionContext*); |
| + void bindToSecurityOrigin(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); |
| PassOwnPtr<Vector<CSPHeaderAndType>> headers() const; |
| @@ -271,11 +273,10 @@ private: |
| void applyPolicySideEffectsToExecutionContext(); |
| - SecurityOrigin* getSecurityOrigin() const; |
| KURL completeURL(const String&) const; |
| void logToConsole(const String& message, MessageLevel = ErrorMessageLevel); |
| - void addPolicyFromHeaderValue(const String&, ContentSecurityPolicyHeaderType, ContentSecurityPolicyHeaderSource); |
| + void addPolicyFromHeaderValue(const String&, ContentSecurityPolicyHeaderType, ContentSecurityPolicyHeaderSource, bool notifyFrameLoaderClient = true); |
|
Mike West
2016/05/11 06:21:04
Nit: Prefer a meaningfully named enum to a bool.
Łukasz Anforowicz
2016/05/11 23:14:48
Done.
|
| bool shouldSendViolationReport(const String&) const; |
| void didSendViolationReport(const String&); |