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 allowHash(const String& source) const; | |
|
abarth-chromium
2013/10/17 02:28:09
allowHash -> allowScriptHash ? Presumably this fu
jww
2013/10/18 22:58:04
Done.
| |
| 105 | 106 |
| 106 ReflectedXSSDisposition reflectedXSSDisposition() const; | 107 ReflectedXSSDisposition reflectedXSSDisposition() const; |
| 107 | 108 |
| 108 void setOverrideAllowInlineStyle(bool); | 109 void setOverrideAllowInlineStyle(bool); |
| 109 | 110 |
| 110 bool isActive() const; | 111 bool isActive() const; |
| 111 void gatherReportURIs(DOMStringList&) const; | 112 void gatherReportURIs(DOMStringList&) const; |
| 112 | 113 |
| 113 void reportDirectiveAsSourceExpression(const String& directiveName, const St ring& sourceExpression) const; | 114 void reportDirectiveAsSourceExpression(const String& directiveName, const St ring& sourceExpression) const; |
| 114 void reportDuplicateDirective(const String&) const; | 115 void reportDuplicateDirective(const String&) const; |
| 115 void reportInvalidDirectiveValueCharacter(const String& directiveName, const String& value) const; | 116 void reportInvalidDirectiveValueCharacter(const String& directiveName, const String& value) const; |
| 116 void reportInvalidPathCharacter(const String& directiveName, const String& v alue, const char) const; | 117 void reportInvalidPathCharacter(const String& directiveName, const String& v alue, const char) const; |
| 117 void reportInvalidNonce(const String&) const; | |
| 118 void reportInvalidPluginTypes(const String&) const; | 118 void reportInvalidPluginTypes(const String&) const; |
| 119 void reportInvalidSandboxFlags(const String&) const; | 119 void reportInvalidSandboxFlags(const String&) const; |
| 120 void reportInvalidSourceExpression(const String& directiveName, const String & source) const; | 120 void reportInvalidSourceExpression(const String& directiveName, const String & source) const; |
| 121 void reportInvalidReflectedXSS(const String&) const; | 121 void reportInvalidReflectedXSS(const String&) const; |
| 122 void reportMissingReportURI(const String&) const; | 122 void reportMissingReportURI(const String&) const; |
| 123 void reportUnsupportedDirective(const String&) const; | 123 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); | 124 void reportViolation(const String& directiveText, const String& effectiveDir ective, const String& consoleMessage, const KURL& blockedURL, const Vector<KURL> & reportURIs, const String& header); |
| 125 | 125 |
| 126 void reportBlockedScriptExecutionToInspector(const String& directiveText) co nst; | 126 void reportBlockedScriptExecutionToInspector(const String& directiveText) co nst; |
| 127 | 127 |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 149 ExecutionContext* m_executionContext; | 149 ExecutionContext* m_executionContext; |
| 150 bool m_overrideInlineStyleAllowed; | 150 bool m_overrideInlineStyleAllowed; |
| 151 CSPDirectiveListVector m_policies; | 151 CSPDirectiveListVector m_policies; |
| 152 | 152 |
| 153 HashSet<unsigned, AlreadyHashed> m_violationReportsSent; | 153 HashSet<unsigned, AlreadyHashed> m_violationReportsSent; |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 } | 156 } |
| 157 | 157 |
| 158 #endif | 158 #endif |
| OLD | NEW |