| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 828 if (!m_webFrame->client()) | 828 if (!m_webFrame->client()) |
| 829 return nullptr; | 829 return nullptr; |
| 830 return adoptPtr(m_webFrame->client()->createServiceWorkerProvider(m_webFrame
)); | 830 return adoptPtr(m_webFrame->client()->createServiceWorkerProvider(m_webFrame
)); |
| 831 } | 831 } |
| 832 | 832 |
| 833 bool FrameLoaderClientImpl::isControlledByServiceWorker(DocumentLoader& loader) | 833 bool FrameLoaderClientImpl::isControlledByServiceWorker(DocumentLoader& loader) |
| 834 { | 834 { |
| 835 return m_webFrame->client() && m_webFrame->client()->isControlledByServiceWo
rker(*WebDataSourceImpl::fromDocumentLoader(&loader)); | 835 return m_webFrame->client() && m_webFrame->client()->isControlledByServiceWo
rker(*WebDataSourceImpl::fromDocumentLoader(&loader)); |
| 836 } | 836 } |
| 837 | 837 |
| 838 int64_t FrameLoaderClientImpl::serviceWorkerID(DocumentLoader& loader) |
| 839 { |
| 840 if (!m_webFrame->client()) |
| 841 return -1; |
| 842 return m_webFrame->client()->serviceWorkerID(*WebDataSourceImpl::fromDocumen
tLoader(&loader)); |
| 843 } |
| 844 |
| 838 SharedWorkerRepositoryClient* FrameLoaderClientImpl::sharedWorkerRepositoryClien
t() | 845 SharedWorkerRepositoryClient* FrameLoaderClientImpl::sharedWorkerRepositoryClien
t() |
| 839 { | 846 { |
| 840 return m_webFrame->sharedWorkerRepositoryClient(); | 847 return m_webFrame->sharedWorkerRepositoryClient(); |
| 841 } | 848 } |
| 842 | 849 |
| 843 PassOwnPtr<WebApplicationCacheHost> FrameLoaderClientImpl::createApplicationCach
eHost(WebApplicationCacheHostClient* client) | 850 PassOwnPtr<WebApplicationCacheHost> FrameLoaderClientImpl::createApplicationCach
eHost(WebApplicationCacheHostClient* client) |
| 844 { | 851 { |
| 845 if (!m_webFrame->client()) | 852 if (!m_webFrame->client()) |
| 846 return nullptr; | 853 return nullptr; |
| 847 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame,
client)); | 854 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame,
client)); |
| 848 } | 855 } |
| 849 | 856 |
| 850 void FrameLoaderClientImpl::didStopAllLoaders() | 857 void FrameLoaderClientImpl::didStopAllLoaders() |
| 851 { | 858 { |
| 852 if (m_webFrame->client()) | 859 if (m_webFrame->client()) |
| 853 m_webFrame->client()->didAbortLoading(m_webFrame); | 860 m_webFrame->client()->didAbortLoading(m_webFrame); |
| 854 } | 861 } |
| 855 | 862 |
| 856 void FrameLoaderClientImpl::dispatchDidChangeManifest() | 863 void FrameLoaderClientImpl::dispatchDidChangeManifest() |
| 857 { | 864 { |
| 858 if (m_webFrame->client()) | 865 if (m_webFrame->client()) |
| 859 m_webFrame->client()->didChangeManifest(m_webFrame); | 866 m_webFrame->client()->didChangeManifest(m_webFrame); |
| 860 } | 867 } |
| 861 | 868 |
| 862 } // namespace blink | 869 } // namespace blink |
| OLD | NEW |