OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |