| 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 12 matching lines...) Expand all Loading... |
| 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 "config.h" | 30 #include "config.h" |
| 31 #include "core/loader/DocumentLoader.h" | 31 #include "core/loader/DocumentLoader.h" |
| 32 | 32 |
| 33 #include <wtf/Assertions.h> | |
| 34 #include <wtf/MemoryInstrumentationHashMap.h> | |
| 35 #include <wtf/MemoryInstrumentationHashSet.h> | |
| 36 #include <wtf/MemoryInstrumentationVector.h> | |
| 37 #include <wtf/text/CString.h> | |
| 38 #include <wtf/text/WTFString.h> | |
| 39 #include <wtf/unicode/Unicode.h> | |
| 40 #include "core/dom/Document.h" | 33 #include "core/dom/Document.h" |
| 41 #include "core/dom/DocumentParser.h" | 34 #include "core/dom/DocumentParser.h" |
| 42 #include "core/dom/Event.h" | 35 #include "core/dom/Event.h" |
| 43 #include "core/dom/WebCoreMemoryInstrumentation.h" | 36 #include "core/dom/WebCoreMemoryInstrumentation.h" |
| 44 #include "core/history/HistoryItem.h" | |
| 45 #include "core/html/HTMLFormElement.h" | |
| 46 #include "core/html/HTMLFrameOwnerElement.h" | 37 #include "core/html/HTMLFrameOwnerElement.h" |
| 47 #include "core/inspector/InspectorInstrumentation.h" | 38 #include "core/inspector/InspectorInstrumentation.h" |
| 48 #include "core/loader/DocumentWriter.h" | 39 #include "core/loader/DocumentWriter.h" |
| 49 #include "core/loader/FormState.h" | |
| 50 #include "core/loader/FrameLoader.h" | 40 #include "core/loader/FrameLoader.h" |
| 51 #include "core/loader/FrameLoaderClient.h" | 41 #include "core/loader/FrameLoaderClient.h" |
| 52 #include "core/loader/ResourceLoader.h" | 42 #include "core/loader/ResourceLoader.h" |
| 53 #include "core/loader/TextResourceDecoder.h" | 43 #include "core/loader/TextResourceDecoder.h" |
| 54 #include "core/loader/UniqueIdentifier.h" | 44 #include "core/loader/UniqueIdentifier.h" |
| 55 #include "core/loader/appcache/ApplicationCacheHost.h" | 45 #include "core/loader/appcache/ApplicationCacheHost.h" |
| 56 #include "core/loader/archive/ArchiveResourceCollection.h" | 46 #include "core/loader/archive/ArchiveResourceCollection.h" |
| 57 #include "core/loader/archive/MHTMLArchive.h" | 47 #include "core/loader/archive/MHTMLArchive.h" |
| 58 #include "core/loader/cache/CachedResourceLoader.h" | 48 #include "core/loader/cache/CachedResourceLoader.h" |
| 59 #include "core/loader/cache/CachedResourceRequestInitiators.h" | 49 #include "core/loader/cache/CachedResourceRequestInitiators.h" |
| 60 #include "core/loader/cache/MemoryCache.h" | 50 #include "core/loader/cache/MemoryCache.h" |
| 61 #include "core/page/DOMWindow.h" | 51 #include "core/page/DOMWindow.h" |
| 62 #include "core/page/Frame.h" | 52 #include "core/page/Frame.h" |
| 63 #include "core/page/FrameTree.h" | 53 #include "core/page/FrameTree.h" |
| 64 #include "core/page/Page.h" | 54 #include "core/page/Page.h" |
| 65 #include "core/page/Settings.h" | 55 #include "core/page/Settings.h" |
| 66 #include "core/platform/Logging.h" | |
| 67 #include "weborigin/SchemeRegistry.h" | 56 #include "weborigin/SchemeRegistry.h" |
| 68 #include "weborigin/SecurityPolicy.h" | 57 #include "wtf/Assertions.h" |
| 58 #include "wtf/MemoryInstrumentationHashMap.h" |
| 59 #include "wtf/MemoryInstrumentationHashSet.h" |
| 60 #include "wtf/MemoryInstrumentationVector.h" |
| 61 #include "wtf/text/WTFString.h" |
| 69 | 62 |
| 70 namespace WebCore { | 63 namespace WebCore { |
| 71 | 64 |
| 72 static void cancelAll(const ResourceLoaderSet& loaders) | 65 static void cancelAll(const ResourceLoaderSet& loaders) |
| 73 { | 66 { |
| 74 Vector<RefPtr<ResourceLoader> > loadersCopy; | 67 Vector<RefPtr<ResourceLoader> > loadersCopy; |
| 75 copyToVector(loaders, loadersCopy); | 68 copyToVector(loaders, loadersCopy); |
| 76 size_t size = loadersCopy.size(); | 69 size_t size = loadersCopy.size(); |
| 77 for (size_t i = 0; i < size; ++i) | 70 for (size_t i = 0; i < size; ++i) |
| 78 loadersCopy[i]->cancel(); | 71 loadersCopy[i]->cancel(); |
| (...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1027 { | 1020 { |
| 1028 return m_writer.mimeType(); | 1021 return m_writer.mimeType(); |
| 1029 } | 1022 } |
| 1030 | 1023 |
| 1031 void DocumentLoader::replaceDocument(const String& source, Document* ownerDocume
nt) | 1024 void DocumentLoader::replaceDocument(const String& source, Document* ownerDocume
nt) |
| 1032 { | 1025 { |
| 1033 m_writer.replaceDocument(source, ownerDocument); | 1026 m_writer.replaceDocument(source, ownerDocument); |
| 1034 } | 1027 } |
| 1035 | 1028 |
| 1036 } // namespace WebCore | 1029 } // namespace WebCore |
| OLD | NEW |