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

Side by Side Diff: Source/core/loader/FrameLoader.cpp

Issue 23710021: Merge 157196 "Don't wait to notify client of spoof attempt if a ..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1599/
Patch Set: Created 7 years, 3 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/loader/FrameLoader.h ('k') | Source/core/page/PageGroupLoadDeferrer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 // Notify asynchronously, since this is called within a JavaScript secur ity check. 1051 // Notify asynchronously, since this is called within a JavaScript secur ity check.
1052 m_didAccessInitialDocumentTimer.startOneShot(0); 1052 m_didAccessInitialDocumentTimer.startOneShot(0);
1053 } 1053 }
1054 } 1054 }
1055 1055
1056 void FrameLoader::didAccessInitialDocumentTimerFired(Timer<FrameLoader>*) 1056 void FrameLoader::didAccessInitialDocumentTimerFired(Timer<FrameLoader>*)
1057 { 1057 {
1058 m_client->didAccessInitialDocument(); 1058 m_client->didAccessInitialDocument();
1059 } 1059 }
1060 1060
1061 void FrameLoader::notifyIfInitialDocumentAccessed()
1062 {
1063 if (m_didAccessInitialDocumentTimer.isActive()
1064 && m_stateMachine.isDisplayingInitialEmptyDocument()) {
1065 m_didAccessInitialDocumentTimer.stop();
1066 didAccessInitialDocumentTimerFired(0);
1067 }
1068 }
1069
1061 bool FrameLoader::isLoading() const 1070 bool FrameLoader::isLoading() const
1062 { 1071 {
1063 DocumentLoader* docLoader = activeDocumentLoader(); 1072 DocumentLoader* docLoader = activeDocumentLoader();
1064 if (!docLoader) 1073 if (!docLoader)
1065 return false; 1074 return false;
1066 return docLoader->isLoading(); 1075 return docLoader->isLoading();
1067 } 1076 }
1068 1077
1069 void FrameLoader::commitProvisionalLoad() 1078 void FrameLoader::commitProvisionalLoad()
1070 { 1079 {
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
1985 InspectorInstrumentation::didCommitLoad(m_frame, m_documentLoader.get()); 1994 InspectorInstrumentation::didCommitLoad(m_frame, m_documentLoader.get());
1986 1995
1987 m_frame->page()->didCommitLoad(m_frame); 1996 m_frame->page()->didCommitLoad(m_frame);
1988 1997
1989 if (m_frame->page()->mainFrame() == m_frame) 1998 if (m_frame->page()->mainFrame() == m_frame)
1990 m_frame->page()->useCounter()->didCommitLoad(); 1999 m_frame->page()->useCounter()->didCommitLoad();
1991 2000
1992 } 2001 }
1993 2002
1994 } // namespace WebCore 2003 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/loader/FrameLoader.h ('k') | Source/core/page/PageGroupLoadDeferrer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698