| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 } | 162 } |
| 163 request.setSkipServiceWorker(frameLoadType == FrameLoadTypeReloadBypassingCa
che ? WebURLRequest::SkipServiceWorker::All : WebURLRequest::SkipServiceWorker::
None); | 163 request.setSkipServiceWorker(frameLoadType == FrameLoadTypeReloadBypassingCa
che ? WebURLRequest::SkipServiceWorker::All : WebURLRequest::SkipServiceWorker::
None); |
| 164 return request; | 164 return request; |
| 165 } | 165 } |
| 166 | 166 |
| 167 FrameLoader::FrameLoader(LocalFrame* frame) | 167 FrameLoader::FrameLoader(LocalFrame* frame) |
| 168 : m_frame(frame) | 168 : m_frame(frame) |
| 169 , m_progressTracker(ProgressTracker::create(frame)) | 169 , m_progressTracker(ProgressTracker::create(frame)) |
| 170 , m_loadType(FrameLoadTypeStandard) | 170 , m_loadType(FrameLoadTypeStandard) |
| 171 , m_inStopAllLoaders(false) | 171 , m_inStopAllLoaders(false) |
| 172 , m_checkTimer(this, &FrameLoader::checkTimerFired, TaskRunnerHelper::getLoa
dingTaskRunner(frame)) | 172 , m_checkTimer(TaskRunnerHelper::getLoadingTaskRunner(frame), this, &FrameLo
ader::checkTimerFired) |
| 173 , m_didAccessInitialDocument(false) | 173 , m_didAccessInitialDocument(false) |
| 174 , m_forcedSandboxFlags(SandboxNone) | 174 , m_forcedSandboxFlags(SandboxNone) |
| 175 , m_dispatchingDidClearWindowObjectInMainWorld(false) | 175 , m_dispatchingDidClearWindowObjectInMainWorld(false) |
| 176 , m_protectProvisionalLoader(false) | 176 , m_protectProvisionalLoader(false) |
| 177 { | 177 { |
| 178 TRACE_EVENT_OBJECT_CREATED_WITH_ID("loading", "FrameLoader", this); | 178 TRACE_EVENT_OBJECT_CREATED_WITH_ID("loading", "FrameLoader", this); |
| 179 takeObjectSnapshot(); | 179 takeObjectSnapshot(); |
| 180 } | 180 } |
| 181 | 181 |
| 182 FrameLoader::~FrameLoader() | 182 FrameLoader::~FrameLoader() |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 | 659 |
| 660 m_loadType = FrameLoadTypeStandard; | 660 m_loadType = FrameLoadTypeStandard; |
| 661 m_frame->localDOMWindow()->finishedLoading(); | 661 m_frame->localDOMWindow()->finishedLoading(); |
| 662 } | 662 } |
| 663 | 663 |
| 664 Frame* parent = m_frame->tree().parent(); | 664 Frame* parent = m_frame->tree().parent(); |
| 665 if (parent && parent->isLocalFrame()) | 665 if (parent && parent->isLocalFrame()) |
| 666 toLocalFrame(parent)->loader().checkCompleted(); | 666 toLocalFrame(parent)->loader().checkCompleted(); |
| 667 } | 667 } |
| 668 | 668 |
| 669 void FrameLoader::checkTimerFired(Timer<FrameLoader>*) | 669 void FrameLoader::checkTimerFired(TimerBase*) |
| 670 { | 670 { |
| 671 if (Page* page = m_frame->page()) { | 671 if (Page* page = m_frame->page()) { |
| 672 if (page->defersLoading()) | 672 if (page->defersLoading()) |
| 673 return; | 673 return; |
| 674 } | 674 } |
| 675 checkCompleted(); | 675 checkCompleted(); |
| 676 } | 676 } |
| 677 | 677 |
| 678 void FrameLoader::scheduleCheckCompleted() | 678 void FrameLoader::scheduleCheckCompleted() |
| 679 { | 679 { |
| (...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1616 tracedValue->setString("documentLoaderURL", m_documentLoader ? m_documentLoa
der->url() : String()); | 1616 tracedValue->setString("documentLoaderURL", m_documentLoader ? m_documentLoa
der->url() : String()); |
| 1617 return tracedValue; | 1617 return tracedValue; |
| 1618 } | 1618 } |
| 1619 | 1619 |
| 1620 inline void FrameLoader::takeObjectSnapshot() const | 1620 inline void FrameLoader::takeObjectSnapshot() const |
| 1621 { | 1621 { |
| 1622 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID("loading", "FrameLoader", this, toTraced
Value()); | 1622 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID("loading", "FrameLoader", this, toTraced
Value()); |
| 1623 } | 1623 } |
| 1624 | 1624 |
| 1625 } // namespace blink | 1625 } // namespace blink |
| OLD | NEW |