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 23 matching lines...) Expand all Loading... |
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/frame/ContentSecurityPolicyResponseHeaders.h" | 36 #include "core/frame/ContentSecurityPolicyResponseHeaders.h" |
37 #include "core/frame/Frame.h" | 37 #include "core/frame/Frame.h" |
38 #include "core/inspector/InspectorInstrumentation.h" | 38 #include "core/inspector/InspectorInstrumentation.h" |
39 #include "core/inspector/ScriptCallStack.h" | 39 #include "core/inspector/ScriptCallStack.h" |
40 #include "core/loader/DocumentLoader.h" | 40 #include "core/loader/DocumentLoader.h" |
41 #include "core/loader/PingLoader.h" | 41 #include "core/loader/PingLoader.h" |
42 #include "core/page/UseCounter.h" | 42 #include "core/page/UseCounter.h" |
43 #include "core/platform/ParsingUtilities.h" | 43 #include "core/platform/ParsingUtilities.h" |
44 #include "core/platform/network/FormData.h" | |
45 #include "core/platform/network/ResourceResponse.h" | |
46 #include "platform/JSONValues.h" | 44 #include "platform/JSONValues.h" |
| 45 #include "platform/network/FormData.h" |
| 46 #include "platform/network/ResourceResponse.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 1836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1893 // Collisions have no security impact, so we can save space by storing only
the string's hash rather than the whole report. | 1893 // Collisions have no security impact, so we can save space by storing only
the string's hash rather than the whole report. |
1894 return !m_violationReportsSent.contains(report.impl()->hash()); | 1894 return !m_violationReportsSent.contains(report.impl()->hash()); |
1895 } | 1895 } |
1896 | 1896 |
1897 void ContentSecurityPolicy::didSendViolationReport(const String& report) | 1897 void ContentSecurityPolicy::didSendViolationReport(const String& report) |
1898 { | 1898 { |
1899 m_violationReportsSent.add(report.impl()->hash()); | 1899 m_violationReportsSent.add(report.impl()->hash()); |
1900 } | 1900 } |
1901 | 1901 |
1902 } // namespace WebCore | 1902 } // namespace WebCore |
OLD | NEW |