OLD | NEW |
---|---|
1 /* | 1 /* |
2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) |
3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) | 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) |
4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) | 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) |
5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. | 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. |
6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ | 6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ |
7 | 7 |
8 This library is free software; you can redistribute it and/or | 8 This library is free software; you can redistribute it and/or |
9 modify it under the terms of the GNU Library General Public | 9 modify it under the terms of the GNU Library General Public |
10 License as published by the Free Software Foundation; either | 10 License as published by the Free Software Foundation; either |
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
617 bool ResourceFetcher::isControlledByServiceWorker() const | 617 bool ResourceFetcher::isControlledByServiceWorker() const |
618 { | 618 { |
619 LocalFrame* localFrame = frame(); | 619 LocalFrame* localFrame = frame(); |
620 if (!localFrame) | 620 if (!localFrame) |
621 return false; | 621 return false; |
622 if (!m_documentLoader) | 622 if (!m_documentLoader) |
623 return false; | 623 return false; |
624 return localFrame->loader().client()->isControlledByServiceWorker(*m_documen tLoader); | 624 return localFrame->loader().client()->isControlledByServiceWorker(*m_documen tLoader); |
625 } | 625 } |
626 | 626 |
627 int64_t ResourceFetcher::serviceWorkerID() const | |
628 { | |
629 LocalFrame* localFrame = frame(); | |
630 if (!localFrame) | |
631 return -1; | |
632 if (!m_documentLoader) | |
horo
2014/10/28 01:20:21
ResourceFetcher of the imported HTML doesn't have
nhiroki
2014/10/28 05:21:22
Thanks for your information! Done in the same way
| |
633 return -1; | |
634 return localFrame->loader().client()->serviceWorkerID(*m_documentLoader); | |
635 } | |
636 | |
627 bool ResourceFetcher::shouldLoadNewResource(Resource::Type type) const | 637 bool ResourceFetcher::shouldLoadNewResource(Resource::Type type) const |
628 { | 638 { |
629 if (!frame()) | 639 if (!frame()) |
630 return false; | 640 return false; |
631 if (!m_documentLoader) | 641 if (!m_documentLoader) |
632 return true; | 642 return true; |
633 if (type == Resource::MainResource) | 643 if (type == Resource::MainResource) |
634 return m_documentLoader == frame()->loader().provisionalDocumentLoader() ; | 644 return m_documentLoader == frame()->loader().provisionalDocumentLoader() ; |
635 return m_documentLoader == frame()->loader().documentLoader(); | 645 return m_documentLoader == frame()->loader().documentLoader(); |
636 } | 646 } |
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1544 | 1554 |
1545 void ResourceFetcher::trace(Visitor* visitor) | 1555 void ResourceFetcher::trace(Visitor* visitor) |
1546 { | 1556 { |
1547 visitor->trace(m_document); | 1557 visitor->trace(m_document); |
1548 visitor->trace(m_loaders); | 1558 visitor->trace(m_loaders); |
1549 visitor->trace(m_multipartLoaders); | 1559 visitor->trace(m_multipartLoaders); |
1550 ResourceLoaderHost::trace(visitor); | 1560 ResourceLoaderHost::trace(visitor); |
1551 } | 1561 } |
1552 | 1562 |
1553 } | 1563 } |
OLD | NEW |