| 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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 // In such cases a service worker ID could be retrieved from the document | 533 // In such cases a service worker ID could be retrieved from the document |
| 534 // loader of the frame. | 534 // loader of the frame. |
| 535 return frame()->loader().client()->serviceWorkerID(*frame()->loader().docume
ntLoader()); | 535 return frame()->loader().client()->serviceWorkerID(*frame()->loader().docume
ntLoader()); |
| 536 } | 536 } |
| 537 | 537 |
| 538 bool FrameFetchContext::isMainFrame() const | 538 bool FrameFetchContext::isMainFrame() const |
| 539 { | 539 { |
| 540 return frame()->isMainFrame(); | 540 return frame()->isMainFrame(); |
| 541 } | 541 } |
| 542 | 542 |
| 543 bool FrameFetchContext::hasSubstituteData() const | |
| 544 { | |
| 545 return m_documentLoader && m_documentLoader->substituteData().isValid(); | |
| 546 } | |
| 547 | |
| 548 bool FrameFetchContext::defersLoading() const | 543 bool FrameFetchContext::defersLoading() const |
| 549 { | 544 { |
| 550 return frame()->page()->defersLoading(); | 545 return frame()->page()->defersLoading(); |
| 551 } | 546 } |
| 552 | 547 |
| 553 bool FrameFetchContext::isLoadComplete() const | 548 bool FrameFetchContext::isLoadComplete() const |
| 554 { | 549 { |
| 555 return m_document && m_document->loadEventFinished(); | 550 return m_document && m_document->loadEventFinished(); |
| 556 } | 551 } |
| 557 | 552 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 } | 671 } |
| 677 | 672 |
| 678 DEFINE_TRACE(FrameFetchContext) | 673 DEFINE_TRACE(FrameFetchContext) |
| 679 { | 674 { |
| 680 visitor->trace(m_document); | 675 visitor->trace(m_document); |
| 681 visitor->trace(m_documentLoader); | 676 visitor->trace(m_documentLoader); |
| 682 FetchContext::trace(visitor); | 677 FetchContext::trace(visitor); |
| 683 } | 678 } |
| 684 | 679 |
| 685 } // namespace blink | 680 } // namespace blink |
| OLD | NEW |