| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 #include "core/page/ContentSecurityPolicy.h" | 27 #include "core/page/ContentSecurityPolicy.h" |
| 28 | 28 |
| 29 #include "RuntimeEnabledFeatures.h" | 29 #include "RuntimeEnabledFeatures.h" |
| 30 #include "bindings/v8/ScriptCallStackFactory.h" | 30 #include "bindings/v8/ScriptCallStackFactory.h" |
| 31 #include "bindings/v8/ScriptController.h" | 31 #include "bindings/v8/ScriptController.h" |
| 32 #include "bindings/v8/ScriptState.h" | 32 #include "bindings/v8/ScriptState.h" |
| 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/dom/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" | 43 #include "core/platform/JSONValues.h" |
| 44 #include "core/platform/ParsingUtilities.h" | 44 #include "core/platform/ParsingUtilities.h" |
| 45 #include "core/platform/network/FormData.h" | 45 #include "core/platform/network/FormData.h" |
| (...skipping 1843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1889 // Collisions have no security impact, so we can save space by storing only
the string's hash rather than the whole report. | 1889 // Collisions have no security impact, so we can save space by storing only
the string's hash rather than the whole report. |
| 1890 return !m_violationReportsSent.contains(report.impl()->hash()); | 1890 return !m_violationReportsSent.contains(report.impl()->hash()); |
| 1891 } | 1891 } |
| 1892 | 1892 |
| 1893 void ContentSecurityPolicy::didSendViolationReport(const String& report) | 1893 void ContentSecurityPolicy::didSendViolationReport(const String& report) |
| 1894 { | 1894 { |
| 1895 m_violationReportsSent.add(report.impl()->hash()); | 1895 m_violationReportsSent.add(report.impl()->hash()); |
| 1896 } | 1896 } |
| 1897 | 1897 |
| 1898 } // namespace WebCore | 1898 } // namespace WebCore |
| OLD | NEW |