Chromium Code Reviews| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 95 bool allowChildFrameFromSource(const KURL&, ReportingStatus = SendReport) co nst; | 95 bool allowChildFrameFromSource(const KURL&, ReportingStatus = SendReport) co nst; |
| 96 bool allowImageFromSource(const KURL&, ReportingStatus = SendReport) const; | 96 bool allowImageFromSource(const KURL&, ReportingStatus = SendReport) const; |
| 97 bool allowStyleFromSource(const KURL&, ReportingStatus = SendReport) const; | 97 bool allowStyleFromSource(const KURL&, ReportingStatus = SendReport) const; |
| 98 bool allowFontFromSource(const KURL&, ReportingStatus = SendReport) const; | 98 bool allowFontFromSource(const KURL&, ReportingStatus = SendReport) const; |
| 99 bool allowMediaFromSource(const KURL&, ReportingStatus = SendReport) const; | 99 bool allowMediaFromSource(const KURL&, ReportingStatus = SendReport) const; |
| 100 bool allowConnectToSource(const KURL&, ReportingStatus = SendReport) const; | 100 bool allowConnectToSource(const KURL&, ReportingStatus = SendReport) const; |
| 101 bool allowFormAction(const KURL&, ReportingStatus = SendReport) const; | 101 bool allowFormAction(const KURL&, ReportingStatus = SendReport) const; |
| 102 bool allowBaseURI(const KURL&, ReportingStatus = SendReport) const; | 102 bool allowBaseURI(const KURL&, ReportingStatus = SendReport) const; |
| 103 bool allowScriptNonce(const String& nonce) const; | 103 bool allowScriptNonce(const String& nonce) const; |
| 104 bool allowStyleNonce(const String& nonce) const; | 104 bool allowStyleNonce(const String& nonce) const; |
| 105 bool allowScriptHash(const String& source) const; | |
| 106 bool allowStyleHash(const String& hash) const; | |
|
Mike West
2013/10/16 14:53:02
source vs hash? I haven't looked at the implementa
jww
2013/10/16 21:49:21
Done.
| |
| 105 | 107 |
| 106 ReflectedXSSDisposition reflectedXSSDisposition() const; | 108 ReflectedXSSDisposition reflectedXSSDisposition() const; |
| 107 | 109 |
| 108 void setOverrideAllowInlineStyle(bool); | 110 void setOverrideAllowInlineStyle(bool); |
| 109 | 111 |
| 110 bool isActive() const; | 112 bool isActive() const; |
| 111 void gatherReportURIs(DOMStringList&) const; | 113 void gatherReportURIs(DOMStringList&) const; |
| 112 | 114 |
| 113 void reportDirectiveAsSourceExpression(const String& directiveName, const St ring& sourceExpression) const; | 115 void reportDirectiveAsSourceExpression(const String& directiveName, const St ring& sourceExpression) const; |
| 114 void reportDuplicateDirective(const String&) const; | 116 void reportDuplicateDirective(const String&) const; |
| 115 void reportInvalidDirectiveValueCharacter(const String& directiveName, const String& value) const; | 117 void reportInvalidDirectiveValueCharacter(const String& directiveName, const String& value) const; |
| 116 void reportInvalidPathCharacter(const String& directiveName, const String& v alue, const char) const; | 118 void reportInvalidPathCharacter(const String& directiveName, const String& v alue, const char) const; |
| 117 void reportInvalidNonce(const String&) const; | 119 void reportInvalidNonce(const String&) const; |
| 120 void reportInvalidHash(const String&) const; | |
| 118 void reportInvalidPluginTypes(const String&) const; | 121 void reportInvalidPluginTypes(const String&) const; |
| 119 void reportInvalidSandboxFlags(const String&) const; | 122 void reportInvalidSandboxFlags(const String&) const; |
| 120 void reportInvalidSourceExpression(const String& directiveName, const String & source) const; | 123 void reportInvalidSourceExpression(const String& directiveName, const String & source) const; |
| 121 void reportInvalidReflectedXSS(const String&) const; | 124 void reportInvalidReflectedXSS(const String&) const; |
| 122 void reportMissingReportURI(const String&) const; | 125 void reportMissingReportURI(const String&) const; |
| 123 void reportUnsupportedDirective(const String&) const; | 126 void reportUnsupportedDirective(const String&) const; |
| 124 void reportViolation(const String& directiveText, const String& effectiveDir ective, const String& consoleMessage, const KURL& blockedURL, const Vector<KURL> & reportURIs, const String& header); | 127 void reportViolation(const String& directiveText, const String& effectiveDir ective, const String& consoleMessage, const KURL& blockedURL, const Vector<KURL> & reportURIs, const String& header); |
| 125 | 128 |
| 126 void reportBlockedScriptExecutionToInspector(const String& directiveText) co nst; | 129 void reportBlockedScriptExecutionToInspector(const String& directiveText) co nst; |
| 127 | 130 |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 149 ExecutionContext* m_executionContext; | 152 ExecutionContext* m_executionContext; |
| 150 bool m_overrideInlineStyleAllowed; | 153 bool m_overrideInlineStyleAllowed; |
| 151 CSPDirectiveListVector m_policies; | 154 CSPDirectiveListVector m_policies; |
| 152 | 155 |
| 153 HashSet<unsigned, AlreadyHashed> m_violationReportsSent; | 156 HashSet<unsigned, AlreadyHashed> m_violationReportsSent; |
| 154 }; | 157 }; |
| 155 | 158 |
| 156 } | 159 } |
| 157 | 160 |
| 158 #endif | 161 #endif |
| OLD | NEW |