Chromium Code Reviews| 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 348 | 348 |
| 349 // detachChildren() potentially detaches the frame from the document. The | 349 // detachChildren() potentially detaches the frame from the document. The |
| 350 // loading cannot continue in that case. | 350 // loading cannot continue in that case. |
| 351 if (!m_frame->page()) | 351 if (!m_frame->page()) |
| 352 return; | 352 return; |
| 353 | 353 |
| 354 client()->transitionToCommittedForNewPage(); | 354 client()->transitionToCommittedForNewPage(); |
| 355 documentLoader->replaceDocumentWhileExecutingJavaScriptURL(init, source); | 355 documentLoader->replaceDocumentWhileExecutingJavaScriptURL(init, source); |
| 356 } | 356 } |
| 357 | 357 |
| 358 void FrameLoader::receivedMainResourceRedirect(const KURL& newURL) | 358 void FrameLoader::receivedMainResourceRedirect(const KURL& newURL) |
|
Charlie Reis
2016/08/09 05:07:31
Can you explain why this doesn't get called in Plz
arthursonzogni
2016/08/10 10:02:24
With PlzNavigate enabled, the whole navigation, re
Charlie Reis
2016/08/11 21:05:01
Acknowledged.
| |
| 359 { | 359 { |
| 360 client()->dispatchDidReceiveServerRedirectForProvisionalLoad(); | 360 client()->dispatchDidReceiveServerRedirectForProvisionalLoad(); |
| 361 | 361 |
| 362 // If a back/forward navigation redirects, don't reuse any state from the Hi storyItem. | 362 // If a back/forward navigation redirects, don't reuse any state from the Hi storyItem. |
| 363 discardProvisionalHistoryItem(); | |
| 364 } | |
| 365 | |
| 366 void FrameLoader::discardProvisionalHistoryItem() | |
| 367 { | |
| 363 m_provisionalItem.clear(); | 368 m_provisionalItem.clear(); |
| 364 } | 369 } |
| 365 | 370 |
| 366 void FrameLoader::setHistoryItemStateForCommit(FrameLoadType loadType, HistoryCo mmitType historyCommitType, HistoryNavigationType navigationType) | 371 void FrameLoader::setHistoryItemStateForCommit(FrameLoadType loadType, HistoryCo mmitType historyCommitType, HistoryNavigationType navigationType) |
| 367 { | 372 { |
| 368 HistoryItem* oldItem = m_currentItem; | 373 HistoryItem* oldItem = m_currentItem; |
| 369 if (isBackForwardLoadType(loadType) && m_provisionalItem) | 374 if (isBackForwardLoadType(loadType) && m_provisionalItem) |
| 370 m_currentItem = m_provisionalItem.release(); | 375 m_currentItem = m_provisionalItem.release(); |
| 371 else | 376 else |
| 372 m_currentItem = HistoryItem::create(); | 377 m_currentItem = HistoryItem::create(); |
| (...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1611 tracedValue->setString("documentLoaderURL", m_documentLoader ? m_documentLoa der->url() : String()); | 1616 tracedValue->setString("documentLoaderURL", m_documentLoader ? m_documentLoa der->url() : String()); |
| 1612 return tracedValue; | 1617 return tracedValue; |
| 1613 } | 1618 } |
| 1614 | 1619 |
| 1615 inline void FrameLoader::takeObjectSnapshot() const | 1620 inline void FrameLoader::takeObjectSnapshot() const |
| 1616 { | 1621 { |
| 1617 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID("loading", "FrameLoader", this, toTraced Value()); | 1622 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID("loading", "FrameLoader", this, toTraced Value()); |
| 1618 } | 1623 } |
| 1619 | 1624 |
| 1620 } // namespace blink | 1625 } // namespace blink |
| OLD | NEW |