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

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp

Issue 2526163002: Rename blink::Page's load deferral to suspension (Closed)
Patch Set: 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 // loader of the frame. 784 // loader of the frame.
785 return frame()->loader().client()->serviceWorkerID( 785 return frame()->loader().client()->serviceWorkerID(
786 *frame()->loader().documentLoader()); 786 *frame()->loader().documentLoader());
787 } 787 }
788 788
789 bool FrameFetchContext::isMainFrame() const { 789 bool FrameFetchContext::isMainFrame() const {
790 return frame()->isMainFrame(); 790 return frame()->isMainFrame();
791 } 791 }
792 792
793 bool FrameFetchContext::defersLoading() const { 793 bool FrameFetchContext::defersLoading() const {
794 return frame()->page()->defersLoading(); 794 return frame()->page()->suspended();
795 } 795 }
796 796
797 bool FrameFetchContext::isLoadComplete() const { 797 bool FrameFetchContext::isLoadComplete() const {
798 return m_document && m_document->loadEventFinished(); 798 return m_document && m_document->loadEventFinished();
799 } 799 }
800 800
801 bool FrameFetchContext::pageDismissalEventBeingDispatched() const { 801 bool FrameFetchContext::pageDismissalEventBeingDispatched() const {
802 return m_document && 802 return m_document &&
803 m_document->pageDismissalEventBeingDispatched() != 803 m_document->pageDismissalEventBeingDispatched() !=
804 Document::NoDismissal; 804 Document::NoDismissal;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 response); 1004 response);
1005 } 1005 }
1006 1006
1007 DEFINE_TRACE(FrameFetchContext) { 1007 DEFINE_TRACE(FrameFetchContext) {
1008 visitor->trace(m_document); 1008 visitor->trace(m_document);
1009 visitor->trace(m_documentLoader); 1009 visitor->trace(m_documentLoader);
1010 FetchContext::trace(visitor); 1010 FetchContext::trace(visitor);
1011 } 1011 }
1012 1012
1013 } // namespace blink 1013 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/DocumentLoader.cpp ('k') | third_party/WebKit/Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698