| 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 22 matching lines...) Expand all Loading... |
| 33 #include "core/dom/DOMStringList.h" | 33 #include "core/dom/DOMStringList.h" |
| 34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
| 35 #include "core/events/SecurityPolicyViolationEvent.h" | 35 #include "core/events/SecurityPolicyViolationEvent.h" |
| 36 #include "core/inspector/InspectorInstrumentation.h" | 36 #include "core/inspector/InspectorInstrumentation.h" |
| 37 #include "core/inspector/ScriptCallStack.h" | 37 #include "core/inspector/ScriptCallStack.h" |
| 38 #include "core/loader/DocumentLoader.h" | 38 #include "core/loader/DocumentLoader.h" |
| 39 #include "core/loader/PingLoader.h" | 39 #include "core/loader/PingLoader.h" |
| 40 #include "core/page/ContentSecurityPolicyResponseHeaders.h" | 40 #include "core/page/ContentSecurityPolicyResponseHeaders.h" |
| 41 #include "core/page/Frame.h" | 41 #include "core/page/Frame.h" |
| 42 #include "core/page/UseCounter.h" | 42 #include "core/page/UseCounter.h" |
| 43 #include "core/platform/JSONValues.h" | |
| 44 #include "core/platform/ParsingUtilities.h" | 43 #include "core/platform/ParsingUtilities.h" |
| 45 #include "core/platform/network/FormData.h" | 44 #include "core/platform/network/FormData.h" |
| 46 #include "core/platform/network/ResourceResponse.h" | 45 #include "core/platform/network/ResourceResponse.h" |
| 46 #include "platform/JSONValues.h" |
| 47 #include "weborigin/KURL.h" | 47 #include "weborigin/KURL.h" |
| 48 #include "weborigin/KnownPorts.h" | 48 #include "weborigin/KnownPorts.h" |
| 49 #include "weborigin/SchemeRegistry.h" | 49 #include "weborigin/SchemeRegistry.h" |
| 50 #include "weborigin/SecurityOrigin.h" | 50 #include "weborigin/SecurityOrigin.h" |
| 51 #include "wtf/HashSet.h" | 51 #include "wtf/HashSet.h" |
| 52 #include "wtf/text/TextPosition.h" | 52 #include "wtf/text/TextPosition.h" |
| 53 #include "wtf/text/WTFString.h" | 53 #include "wtf/text/WTFString.h" |
| 54 | 54 |
| 55 namespace WebCore { | 55 namespace WebCore { |
| 56 | 56 |
| (...skipping 1843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1900 // Collisions have no security impact, so we can save space by storing only
the string's hash rather than the whole report. | 1900 // Collisions have no security impact, so we can save space by storing only
the string's hash rather than the whole report. |
| 1901 return !m_violationReportsSent.contains(report.impl()->hash()); | 1901 return !m_violationReportsSent.contains(report.impl()->hash()); |
| 1902 } | 1902 } |
| 1903 | 1903 |
| 1904 void ContentSecurityPolicy::didSendViolationReport(const String& report) | 1904 void ContentSecurityPolicy::didSendViolationReport(const String& report) |
| 1905 { | 1905 { |
| 1906 m_violationReportsSent.add(report.impl()->hash()); | 1906 m_violationReportsSent.add(report.impl()->hash()); |
| 1907 } | 1907 } |
| 1908 | 1908 |
| 1909 } // namespace WebCore | 1909 } // namespace WebCore |
| OLD | NEW |