OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google, Inc. All rights reserved. | 2 * Copyright (C) 2011 Google, Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 void reportInvalidDirectiveValueCharacter(const String& directiveName, const
String& value) const; | 118 void reportInvalidDirectiveValueCharacter(const String& directiveName, const
String& value) const; |
119 void reportInvalidPathCharacter(const String& directiveName, const String& v
alue, const char) const; | 119 void reportInvalidPathCharacter(const String& directiveName, const String& v
alue, const char) const; |
120 void reportInvalidNonce(const String&) const; | 120 void reportInvalidNonce(const String&) const; |
121 void reportInvalidPluginTypes(const String&) const; | 121 void reportInvalidPluginTypes(const String&) const; |
122 void reportInvalidSandboxFlags(const String&) const; | 122 void reportInvalidSandboxFlags(const String&) const; |
123 void reportInvalidSourceExpression(const String& directiveName, const String
& source) const; | 123 void reportInvalidSourceExpression(const String& directiveName, const String
& source) const; |
124 void reportInvalidReflectedXSS(const String&) const; | 124 void reportInvalidReflectedXSS(const String&) const; |
125 void reportMissingReportURI(const String&) const; | 125 void reportMissingReportURI(const String&) const; |
126 void reportUnsupportedDirective(const String&) const; | 126 void reportUnsupportedDirective(const String&) const; |
127 void reportViolation(const String& directiveText, const String& effectiveDir
ective, const String& consoleMessage, const KURL& blockedURL, const Vector<KURL>
& reportURIs, const String& header, const String& contextURL = String(), const W
TF::OrdinalNumber& contextLine = WTF::OrdinalNumber::beforeFirst(), ScriptState*
= 0) const; | 127 void reportViolation(const String& directiveText, const String& effectiveDir
ective, const String& consoleMessage, const KURL& blockedURL, const Vector<KURL>
& reportURIs, const String& header, const String& contextURL = String(), const W
TF::OrdinalNumber& contextLine = WTF::OrdinalNumber::beforeFirst(), ScriptState*
= 0) const; |
128 void reportDeprecatedHeader(HeaderType) const; | |
129 | 128 |
130 void reportBlockedScriptExecutionToInspector(const String& directiveText) co
nst; | 129 void reportBlockedScriptExecutionToInspector(const String& directiveText) co
nst; |
131 | 130 |
132 const KURL& url() const; | 131 const KURL& url() const; |
133 KURL completeURL(const String&) const; | 132 KURL completeURL(const String&) const; |
134 SecurityOrigin* securityOrigin() const; | 133 SecurityOrigin* securityOrigin() const; |
135 void enforceSandboxFlags(SandboxFlags) const; | 134 void enforceSandboxFlags(SandboxFlags) const; |
136 String evalDisabledErrorMessage() const; | 135 String evalDisabledErrorMessage() const; |
137 | 136 |
138 bool experimentalFeaturesEnabled() const; | 137 bool experimentalFeaturesEnabled() const; |
139 | 138 |
140 private: | 139 private: |
141 explicit ContentSecurityPolicy(ScriptExecutionContext*); | 140 explicit ContentSecurityPolicy(ScriptExecutionContext*); |
142 | 141 |
143 void logToConsole(const String& message, const String& contextURL = String()
, const WTF::OrdinalNumber& contextLine = WTF::OrdinalNumber::beforeFirst(), Scr
iptState* = 0) const; | 142 void logToConsole(const String& message, const String& contextURL = String()
, const WTF::OrdinalNumber& contextLine = WTF::OrdinalNumber::beforeFirst(), Scr
iptState* = 0) const; |
144 | 143 |
145 ScriptExecutionContext* m_scriptExecutionContext; | 144 ScriptExecutionContext* m_scriptExecutionContext; |
146 bool m_overrideInlineStyleAllowed; | 145 bool m_overrideInlineStyleAllowed; |
147 CSPDirectiveListVector m_policies; | 146 CSPDirectiveListVector m_policies; |
148 }; | 147 }; |
149 | 148 |
150 } | 149 } |
151 | 150 |
152 #endif | 151 #endif |
OLD | NEW |