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

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

Issue 2611753003: Rename blink::Page's load deferral to suspension (Closed)
Patch Set: Created 3 years, 11 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) 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 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 // loader of the frame. 789 // loader of the frame.
790 return frame()->loader().client()->serviceWorkerID( 790 return frame()->loader().client()->serviceWorkerID(
791 *frame()->loader().documentLoader()); 791 *frame()->loader().documentLoader());
792 } 792 }
793 793
794 bool FrameFetchContext::isMainFrame() const { 794 bool FrameFetchContext::isMainFrame() const {
795 return frame()->isMainFrame(); 795 return frame()->isMainFrame();
796 } 796 }
797 797
798 bool FrameFetchContext::defersLoading() const { 798 bool FrameFetchContext::defersLoading() const {
799 return frame()->page()->defersLoading(); 799 return frame()->page()->suspended();
800 } 800 }
801 801
802 bool FrameFetchContext::isLoadComplete() const { 802 bool FrameFetchContext::isLoadComplete() const {
803 return m_document && m_document->loadEventFinished(); 803 return m_document && m_document->loadEventFinished();
804 } 804 }
805 805
806 bool FrameFetchContext::pageDismissalEventBeingDispatched() const { 806 bool FrameFetchContext::pageDismissalEventBeingDispatched() const {
807 return m_document && 807 return m_document &&
808 m_document->pageDismissalEventBeingDispatched() != 808 m_document->pageDismissalEventBeingDispatched() !=
809 Document::NoDismissal; 809 Document::NoDismissal;
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 response); 1010 response);
1011 } 1011 }
1012 1012
1013 DEFINE_TRACE(FrameFetchContext) { 1013 DEFINE_TRACE(FrameFetchContext) {
1014 visitor->trace(m_document); 1014 visitor->trace(m_document);
1015 visitor->trace(m_documentLoader); 1015 visitor->trace(m_documentLoader);
1016 FetchContext::trace(visitor); 1016 FetchContext::trace(visitor);
1017 } 1017 }
1018 1018
1019 } // namespace blink 1019 } // 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