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 15 matching lines...) Expand all Loading... |
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/dom/SecurityPolicyViolationEvent.h" | 35 #include "core/dom/SecurityPolicyViolationEvent.h" |
36 #include "core/html/FormDataList.h" | |
37 #include "core/inspector/InspectorInstrumentation.h" | 36 #include "core/inspector/InspectorInstrumentation.h" |
38 #include "core/inspector/ScriptCallStack.h" | 37 #include "core/inspector/ScriptCallStack.h" |
39 #include "core/loader/PingLoader.h" | 38 #include "core/loader/PingLoader.h" |
40 #include "core/page/Console.h" | |
41 #include "core/page/Frame.h" | 39 #include "core/page/Frame.h" |
42 #include "core/page/PageConsole.h" | |
43 #include "core/page/UseCounter.h" | 40 #include "core/page/UseCounter.h" |
44 #include "core/platform/JSONValues.h" | 41 #include "core/platform/JSONValues.h" |
45 #include "core/platform/network/FormData.h" | 42 #include "core/platform/network/FormData.h" |
46 #include "weborigin/KURL.h" | 43 #include "weborigin/KURL.h" |
47 #include "weborigin/KnownPorts.h" | 44 #include "weborigin/KnownPorts.h" |
48 #include "weborigin/SchemeRegistry.h" | 45 #include "weborigin/SchemeRegistry.h" |
49 #include "weborigin/SecurityOrigin.h" | 46 #include "weborigin/SecurityOrigin.h" |
50 #include "wtf/HashSet.h" | 47 #include "wtf/HashSet.h" |
51 #include "wtf/text/TextEncoding.h" | |
52 #include "wtf/text/TextPosition.h" | 48 #include "wtf/text/TextPosition.h" |
53 #include "wtf/text/WTFString.h" | 49 #include "wtf/text/WTFString.h" |
54 | 50 |
55 namespace WebCore { | 51 namespace WebCore { |
56 | 52 |
57 // Normally WebKit uses "static" for internal linkage, but using "static" for | 53 // Normally WebKit uses "static" for internal linkage, but using "static" for |
58 // these functions causes a compile error because these functions are used as | 54 // these functions causes a compile error because these functions are used as |
59 // template parameters. | 55 // template parameters. |
60 namespace { | 56 namespace { |
61 | 57 |
(...skipping 1802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1864 { | 1860 { |
1865 if (context && context->isDocument()) { | 1861 if (context && context->isDocument()) { |
1866 Document* document = toDocument(context); | 1862 Document* document = toDocument(context); |
1867 if (document->frame()) | 1863 if (document->frame()) |
1868 return document->frame()->script()->shouldBypassMainWorldContentSecu
rityPolicy(); | 1864 return document->frame()->script()->shouldBypassMainWorldContentSecu
rityPolicy(); |
1869 } | 1865 } |
1870 return false; | 1866 return false; |
1871 } | 1867 } |
1872 | 1868 |
1873 } | 1869 } |
OLD | NEW |