Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: Source/core/page/ContentSecurityPolicy.cpp

Issue 26558004: Revert 158219 "Move dom/*Event* to events to match the DOM vs. E..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1651/
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/loader/appcache/ApplicationCache.cpp ('k') | Source/core/page/ContextMenuController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698