Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 2555963003: FasterLocationReload: use ReloadMainResource for JS exposed reloads (Closed)
Patch Set: more comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Simon Hausmann <hausmann@kde.org> 5 * 2000 Simon Hausmann <hausmann@kde.org>
6 * 2000 Stefan Schimanski <1Stein@gmx.de> 6 * 2000 Stefan Schimanski <1Stein@gmx.de>
7 * 2001 George Staikos <staikos@kde.org> 7 * 2001 George Staikos <staikos@kde.org>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
9 * rights reserved. 9 * rights reserved.
10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> 10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com>
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 DCHECK(isReloadLoadType(loadType)); 370 DCHECK(isReloadLoadType(loadType));
371 if (clientRedirectPolicy == ClientRedirectPolicy::NotClientRedirect) { 371 if (clientRedirectPolicy == ClientRedirectPolicy::NotClientRedirect) {
372 if (!m_loader.currentItem()) 372 if (!m_loader.currentItem())
373 return; 373 return;
374 FrameLoadRequest request = 374 FrameLoadRequest request =
375 FrameLoadRequest(nullptr, m_loader.resourceRequestForReload( 375 FrameLoadRequest(nullptr, m_loader.resourceRequestForReload(
376 loadType, KURL(), clientRedirectPolicy)); 376 loadType, KURL(), clientRedirectPolicy));
377 request.setClientRedirect(clientRedirectPolicy); 377 request.setClientRedirect(clientRedirectPolicy);
378 m_loader.load(request, loadType); 378 m_loader.load(request, loadType);
379 } else { 379 } else {
380 DCHECK_EQ(FrameLoadTypeReload, loadType); 380 m_navigationScheduler->scheduleReload(loadType);
381 m_navigationScheduler->scheduleReload();
382 } 381 }
383 } 382 }
384 383
385 void LocalFrame::detach(FrameDetachType type) { 384 void LocalFrame::detach(FrameDetachType type) {
386 // Note that detach() can be re-entered, so it's not possible to 385 // Note that detach() can be re-entered, so it's not possible to
387 // DCHECK(!m_isDetaching) here. 386 // DCHECK(!m_isDetaching) here.
388 m_isDetaching = true; 387 m_isDetaching = true;
389 388
390 if (isLocalRoot()) 389 if (isLocalRoot())
391 m_performanceMonitor->shutdown(); 390 m_performanceMonitor->shutdown();
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) 928 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext())
930 m_frame->client()->frameBlameContext()->Enter(); 929 m_frame->client()->frameBlameContext()->Enter();
931 } 930 }
932 931
933 ScopedFrameBlamer::~ScopedFrameBlamer() { 932 ScopedFrameBlamer::~ScopedFrameBlamer() {
934 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) 933 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext())
935 m_frame->client()->frameBlameContext()->Leave(); 934 m_frame->client()->frameBlameContext()->Leave();
936 } 935 }
937 936
938 } // namespace blink 937 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698