OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 11 matching lines...) Expand all Loading... |
22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | 22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 #include "core/loader/DocumentLoader.h" | 30 #include "core/loader/DocumentLoader.h" |
31 | 31 |
| 32 #include <memory> |
32 #include "core/dom/Document.h" | 33 #include "core/dom/Document.h" |
33 #include "core/dom/WeakIdentifierMap.h" | 34 #include "core/dom/WeakIdentifierMap.h" |
34 #include "core/events/Event.h" | 35 #include "core/events/Event.h" |
35 #include "core/frame/Deprecation.h" | 36 #include "core/frame/Deprecation.h" |
36 #include "core/frame/FrameHost.h" | 37 #include "core/frame/FrameHost.h" |
37 #include "core/frame/LocalDOMWindow.h" | 38 #include "core/frame/LocalDOMWindow.h" |
38 #include "core/frame/LocalFrame.h" | 39 #include "core/frame/LocalFrame.h" |
39 #include "core/frame/Settings.h" | 40 #include "core/frame/Settings.h" |
40 #include "core/frame/csp/ContentSecurityPolicy.h" | 41 #include "core/frame/csp/ContentSecurityPolicy.h" |
41 #include "core/html/HTMLFrameOwnerElement.h" | 42 #include "core/html/HTMLFrameOwnerElement.h" |
(...skipping 25 matching lines...) Expand all Loading... |
67 #include "platform/network/HTTPParsers.h" | 68 #include "platform/network/HTTPParsers.h" |
68 #include "platform/network/mime/MIMETypeRegistry.h" | 69 #include "platform/network/mime/MIMETypeRegistry.h" |
69 #include "platform/plugins/PluginData.h" | 70 #include "platform/plugins/PluginData.h" |
70 #include "platform/weborigin/SchemeRegistry.h" | 71 #include "platform/weborigin/SchemeRegistry.h" |
71 #include "platform/weborigin/SecurityPolicy.h" | 72 #include "platform/weborigin/SecurityPolicy.h" |
72 #include "public/platform/Platform.h" | 73 #include "public/platform/Platform.h" |
73 #include "public/platform/WebDocumentSubresourceFilter.h" | 74 #include "public/platform/WebDocumentSubresourceFilter.h" |
74 #include "wtf/Assertions.h" | 75 #include "wtf/Assertions.h" |
75 #include "wtf/AutoReset.h" | 76 #include "wtf/AutoReset.h" |
76 #include "wtf/text/WTFString.h" | 77 #include "wtf/text/WTFString.h" |
77 #include <memory> | |
78 | 78 |
79 namespace blink { | 79 namespace blink { |
80 | 80 |
81 static bool isArchiveMIMEType(const String& mimeType) { | 81 static bool isArchiveMIMEType(const String& mimeType) { |
82 return equalIgnoringCase("multipart/related", mimeType); | 82 return equalIgnoringCase("multipart/related", mimeType); |
83 } | 83 } |
84 | 84 |
85 static bool shouldInheritSecurityOriginFromOwner(const KURL& url) { | 85 static bool shouldInheritSecurityOriginFromOwner(const KURL& url) { |
86 // https://html.spec.whatwg.org/multipage/browsers.html#origin | 86 // https://html.spec.whatwg.org/multipage/browsers.html#origin |
87 // | 87 // |
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 m_writer ? m_writer->encoding() : emptyAtom, true, | 813 m_writer ? m_writer->encoding() : emptyAtom, true, |
814 ForceSynchronousParsing); | 814 ForceSynchronousParsing); |
815 if (!source.isNull()) | 815 if (!source.isNull()) |
816 m_writer->appendReplacingData(source); | 816 m_writer->appendReplacingData(source); |
817 endWriting(); | 817 endWriting(); |
818 } | 818 } |
819 | 819 |
820 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 820 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
821 | 821 |
822 } // namespace blink | 822 } // namespace blink |
OLD | NEW |