| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
| 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> | 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> |
| 6 * Copyright (C) Research In Motion Limited 2009. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2009. All rights reserved. |
| 7 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com> | 7 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com> |
| 8 * Copyright (C) 2011 Google Inc. All rights reserved. | 8 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 9 * | 9 * |
| 10 * Redistribution and use in source and binary forms, with or without | 10 * Redistribution and use in source and binary forms, with or without |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | 25 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 26 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY | 26 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY |
| 27 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | 27 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 28 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 28 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 29 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 29 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 30 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 30 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 32 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 32 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 33 */ | 33 */ |
| 34 | 34 |
| 35 #include "config.h" | 35 #include "sky/engine/config.h" |
| 36 #include "core/loader/FrameLoader.h" | 36 #include "sky/engine/core/loader/FrameLoader.h" |
| 37 | 37 |
| 38 #include "bindings/core/v8/DOMWrapperWorld.h" | 38 #include "sky/engine/bindings/core/v8/DOMWrapperWorld.h" |
| 39 #include "bindings/core/v8/ScriptController.h" | 39 #include "sky/engine/bindings/core/v8/ScriptController.h" |
| 40 #include "bindings/core/v8/SerializedScriptValue.h" | 40 #include "sky/engine/bindings/core/v8/SerializedScriptValue.h" |
| 41 #include "core/dom/Document.h" | 41 #include "sky/engine/core/dom/Document.h" |
| 42 #include "core/dom/Element.h" | 42 #include "sky/engine/core/dom/Element.h" |
| 43 #include "core/editing/Editor.h" | 43 #include "sky/engine/core/editing/Editor.h" |
| 44 #include "core/editing/UndoStack.h" | 44 #include "sky/engine/core/editing/UndoStack.h" |
| 45 #include "core/events/PageTransitionEvent.h" | 45 #include "sky/engine/core/events/PageTransitionEvent.h" |
| 46 #include "core/fetch/FetchContext.h" | 46 #include "sky/engine/core/fetch/FetchContext.h" |
| 47 #include "core/fetch/ResourceFetcher.h" | 47 #include "sky/engine/core/fetch/ResourceFetcher.h" |
| 48 #include "core/fetch/ResourceLoader.h" | 48 #include "sky/engine/core/fetch/ResourceLoader.h" |
| 49 #include "core/frame/LocalDOMWindow.h" | 49 #include "sky/engine/core/frame/FrameHost.h" |
| 50 #include "core/frame/FrameHost.h" | 50 #include "sky/engine/core/frame/FrameView.h" |
| 51 #include "core/frame/FrameView.h" | 51 #include "sky/engine/core/frame/LocalDOMWindow.h" |
| 52 #include "core/frame/LocalFrame.h" | 52 #include "sky/engine/core/frame/LocalFrame.h" |
| 53 #include "core/html/parser/HTMLDocumentParser.h" | 53 #include "sky/engine/core/frame/Settings.h" |
| 54 #include "core/html/parser/HTMLParserIdioms.h" | 54 #include "sky/engine/core/html/parser/HTMLDocumentParser.h" |
| 55 #include "core/inspector/ConsoleMessage.h" | 55 #include "sky/engine/core/html/parser/HTMLParserIdioms.h" |
| 56 #include "core/loader/DocumentLoadTiming.h" | 56 #include "sky/engine/core/inspector/ConsoleMessage.h" |
| 57 #include "core/loader/FrameFetchContext.h" | 57 #include "sky/engine/core/loader/DocumentLoadTiming.h" |
| 58 #include "core/loader/FrameLoaderClient.h" | 58 #include "sky/engine/core/loader/FrameFetchContext.h" |
| 59 #include "core/loader/UniqueIdentifier.h" | 59 #include "sky/engine/core/loader/FrameLoaderClient.h" |
| 60 #include "core/page/Chrome.h" | 60 #include "sky/engine/core/loader/UniqueIdentifier.h" |
| 61 #include "core/page/ChromeClient.h" | 61 #include "sky/engine/core/page/Chrome.h" |
| 62 #include "core/page/EventHandler.h" | 62 #include "sky/engine/core/page/ChromeClient.h" |
| 63 #include "core/page/Page.h" | 63 #include "sky/engine/core/page/EventHandler.h" |
| 64 #include "core/frame/Settings.h" | 64 #include "sky/engine/core/page/Page.h" |
| 65 #include "platform/Logging.h" | 65 #include "sky/engine/platform/Logging.h" |
| 66 #include "platform/UserGestureIndicator.h" | 66 #include "sky/engine/platform/UserGestureIndicator.h" |
| 67 #include "platform/geometry/FloatRect.h" | 67 #include "sky/engine/platform/geometry/FloatRect.h" |
| 68 #include "platform/network/HTTPParsers.h" | 68 #include "sky/engine/platform/network/HTTPParsers.h" |
| 69 #include "platform/network/ResourceRequest.h" | 69 #include "sky/engine/platform/network/ResourceRequest.h" |
| 70 #include "platform/scroll/ScrollAnimator.h" | 70 #include "sky/engine/platform/scroll/ScrollAnimator.h" |
| 71 #include "platform/weborigin/SecurityPolicy.h" | 71 #include "sky/engine/platform/weborigin/SecurityPolicy.h" |
| 72 #include "public/platform/WebURLRequest.h" | 72 #include "sky/engine/public/platform/WebURLRequest.h" |
| 73 #include "wtf/TemporaryChange.h" | 73 #include "sky/engine/wtf/TemporaryChange.h" |
| 74 #include "wtf/text/CString.h" | 74 #include "sky/engine/wtf/text/CString.h" |
| 75 #include "wtf/text/WTFString.h" | 75 #include "sky/engine/wtf/text/WTFString.h" |
| 76 | 76 |
| 77 using blink::WebURLRequest; | 77 using blink::WebURLRequest; |
| 78 | 78 |
| 79 namespace blink { | 79 namespace blink { |
| 80 | 80 |
| 81 FrameLoader::FrameLoader(LocalFrame* frame) | 81 FrameLoader::FrameLoader(LocalFrame* frame) |
| 82 : m_frame(frame) | 82 : m_frame(frame) |
| 83 , m_fetchContext(FrameFetchContext::create(frame)) | 83 , m_fetchContext(FrameFetchContext::create(frame)) |
| 84 , m_inStopAllLoaders(false) | 84 , m_inStopAllLoaders(false) |
| 85 { | 85 { |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 // still parsing. Failure to do so can cause a world leak. | 161 // still parsing. Failure to do so can cause a world leak. |
| 162 if (m_frame->document()->parsing()) | 162 if (m_frame->document()->parsing()) |
| 163 stopLoading(); | 163 stopLoading(); |
| 164 | 164 |
| 165 m_frame->document()->fetcher()->stopFetching(); | 165 m_frame->document()->fetcher()->stopFetching(); |
| 166 | 166 |
| 167 m_inStopAllLoaders = false; | 167 m_inStopAllLoaders = false; |
| 168 } | 168 } |
| 169 | 169 |
| 170 } // namespace blink | 170 } // namespace blink |
| OLD | NEW |