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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 1774663002: Teach CRFO:CapturePageText to recognize page refreshes with long delays. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nits. Created 4 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 1977 matching lines...) Expand 10 before | Expand all | Expand 10 after
1988 return frame()->loader().stateMachine()->isDisplayingInitialEmptyDocument() || frame()->loader().provisionalDocumentLoader() || !frame()->document()->loadEv entFinished(); 1988 return frame()->loader().stateMachine()->isDisplayingInitialEmptyDocument() || frame()->loader().provisionalDocumentLoader() || !frame()->document()->loadEv entFinished();
1989 } 1989 }
1990 1990
1991 bool WebLocalFrameImpl::isResourceLoadInProgress() const 1991 bool WebLocalFrameImpl::isResourceLoadInProgress() const
1992 { 1992 {
1993 if (!frame() || !frame()->document()) 1993 if (!frame() || !frame()->document())
1994 return false; 1994 return false;
1995 return frame()->document()->fetcher()->requestCount(); 1995 return frame()->document()->fetcher()->requestCount();
1996 } 1996 }
1997 1997
1998 bool WebLocalFrameImpl::isNavigationScheduled() const 1998 bool WebLocalFrameImpl::isNavigationScheduledWithin(double intervalInSeconds) co nst
1999 { 1999 {
2000 return frame() && frame()->navigationScheduler().isNavigationScheduled(); 2000 return frame() && frame()->navigationScheduler().isNavigationScheduledWithin (intervalInSeconds);
2001 } 2001 }
2002 2002
2003 void WebLocalFrameImpl::setCommittedFirstRealLoad() 2003 void WebLocalFrameImpl::setCommittedFirstRealLoad()
2004 { 2004 {
2005 ASSERT(frame()); 2005 ASSERT(frame());
2006 ensureFrameLoaderHasCommitted(frame()->loader()); 2006 ensureFrameLoaderHasCommitted(frame()->loader());
2007 } 2007 }
2008 2008
2009 void WebLocalFrameImpl::sendOrientationChangeEvent() 2009 void WebLocalFrameImpl::sendOrientationChangeEvent()
2010 { 2010 {
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
2188 return WebSandboxFlags::None; 2188 return WebSandboxFlags::None;
2189 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( )); 2189 return static_cast<WebSandboxFlags>(frame()->loader().effectiveSandboxFlags( ));
2190 } 2190 }
2191 2191
2192 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags) 2192 void WebLocalFrameImpl::forceSandboxFlags(WebSandboxFlags flags)
2193 { 2193 {
2194 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); 2194 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags));
2195 } 2195 }
2196 2196
2197 } // namespace blink 2197 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.h ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698