| 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 28 matching lines...) Expand all Loading... |
| 39 #include "core/inspector/InspectorInstrumentation.h" | 39 #include "core/inspector/InspectorInstrumentation.h" |
| 40 #include "core/inspector/ScriptCallStack.h" | 40 #include "core/inspector/ScriptCallStack.h" |
| 41 #include "core/loader/DocumentLoader.h" | 41 #include "core/loader/DocumentLoader.h" |
| 42 #include "core/loader/PingLoader.h" | 42 #include "core/loader/PingLoader.h" |
| 43 #include "core/page/UseCounter.h" | 43 #include "core/page/UseCounter.h" |
| 44 #include "platform/JSONValues.h" | 44 #include "platform/JSONValues.h" |
| 45 #include "platform/NotImplemented.h" | 45 #include "platform/NotImplemented.h" |
| 46 #include "platform/ParsingUtilities.h" | 46 #include "platform/ParsingUtilities.h" |
| 47 #include "platform/network/FormData.h" | 47 #include "platform/network/FormData.h" |
| 48 #include "platform/network/ResourceResponse.h" | 48 #include "platform/network/ResourceResponse.h" |
| 49 #include "weborigin/KURL.h" | 49 #include "platform/weborigin/KURL.h" |
| 50 #include "weborigin/KnownPorts.h" | 50 #include "platform/weborigin/KnownPorts.h" |
| 51 #include "weborigin/SchemeRegistry.h" | 51 #include "platform/weborigin/SchemeRegistry.h" |
| 52 #include "weborigin/SecurityOrigin.h" | 52 #include "platform/weborigin/SecurityOrigin.h" |
| 53 #include "wtf/HashSet.h" | 53 #include "wtf/HashSet.h" |
| 54 #include "wtf/SHA1.h" | 54 #include "wtf/SHA1.h" |
| 55 #include "wtf/StringHasher.h" | 55 #include "wtf/StringHasher.h" |
| 56 #include "wtf/text/Base64.h" | 56 #include "wtf/text/Base64.h" |
| 57 #include "wtf/text/StringBuilder.h" | 57 #include "wtf/text/StringBuilder.h" |
| 58 #include "wtf/text/TextPosition.h" | 58 #include "wtf/text/TextPosition.h" |
| 59 #include "wtf/text/WTFString.h" | 59 #include "wtf/text/WTFString.h" |
| 60 | 60 |
| 61 namespace WTF { | 61 namespace WTF { |
| 62 | 62 |
| (...skipping 1959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2022 // Collisions have no security impact, so we can save space by storing only
the string's hash rather than the whole report. | 2022 // Collisions have no security impact, so we can save space by storing only
the string's hash rather than the whole report. |
| 2023 return !m_violationReportsSent.contains(report.impl()->hash()); | 2023 return !m_violationReportsSent.contains(report.impl()->hash()); |
| 2024 } | 2024 } |
| 2025 | 2025 |
| 2026 void ContentSecurityPolicy::didSendViolationReport(const String& report) | 2026 void ContentSecurityPolicy::didSendViolationReport(const String& report) |
| 2027 { | 2027 { |
| 2028 m_violationReportsSent.add(report.impl()->hash()); | 2028 m_violationReportsSent.add(report.impl()->hash()); |
| 2029 } | 2029 } |
| 2030 | 2030 |
| 2031 } // namespace WebCore | 2031 } // namespace WebCore |
| OLD | NEW |