| 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 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 m_webFrame->viewImpl()->willInsertBody(m_webFrame); | 794 m_webFrame->viewImpl()->willInsertBody(m_webFrame); |
| 795 } | 795 } |
| 796 | 796 |
| 797 PassOwnPtr<WebServiceWorkerProvider> FrameLoaderClientImpl::createServiceWorkerP
rovider() | 797 PassOwnPtr<WebServiceWorkerProvider> FrameLoaderClientImpl::createServiceWorkerP
rovider() |
| 798 { | 798 { |
| 799 if (!m_webFrame->client()) | 799 if (!m_webFrame->client()) |
| 800 return nullptr; | 800 return nullptr; |
| 801 return adoptPtr(m_webFrame->client()->createServiceWorkerProvider(m_webFrame
)); | 801 return adoptPtr(m_webFrame->client()->createServiceWorkerProvider(m_webFrame
)); |
| 802 } | 802 } |
| 803 | 803 |
| 804 bool FrameLoaderClientImpl::isControlledByServiceWorker() | 804 bool FrameLoaderClientImpl::isControlledByServiceWorker(DocumentLoader& loader) |
| 805 { | 805 { |
| 806 return m_webFrame->client() && m_webFrame->client()->isControlledByServiceWo
rker(); | 806 return m_webFrame->client() && m_webFrame->client()->isControlledByServiceWo
rker(*WebDataSourceImpl::fromDocumentLoader(&loader)); |
| 807 } | 807 } |
| 808 | 808 |
| 809 SharedWorkerRepositoryClient* FrameLoaderClientImpl::sharedWorkerRepositoryClien
t() | 809 SharedWorkerRepositoryClient* FrameLoaderClientImpl::sharedWorkerRepositoryClien
t() |
| 810 { | 810 { |
| 811 return m_webFrame->sharedWorkerRepositoryClient(); | 811 return m_webFrame->sharedWorkerRepositoryClient(); |
| 812 } | 812 } |
| 813 | 813 |
| 814 PassOwnPtr<WebApplicationCacheHost> FrameLoaderClientImpl::createApplicationCach
eHost(WebApplicationCacheHostClient* client) | 814 PassOwnPtr<WebApplicationCacheHost> FrameLoaderClientImpl::createApplicationCach
eHost(WebApplicationCacheHostClient* client) |
| 815 { | 815 { |
| 816 if (!m_webFrame->client()) | 816 if (!m_webFrame->client()) |
| 817 return nullptr; | 817 return nullptr; |
| 818 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame,
client)); | 818 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame,
client)); |
| 819 } | 819 } |
| 820 | 820 |
| 821 void FrameLoaderClientImpl::didStopAllLoaders() | 821 void FrameLoaderClientImpl::didStopAllLoaders() |
| 822 { | 822 { |
| 823 if (m_webFrame->client()) | 823 if (m_webFrame->client()) |
| 824 m_webFrame->client()->didAbortLoading(m_webFrame); | 824 m_webFrame->client()->didAbortLoading(m_webFrame); |
| 825 } | 825 } |
| 826 | 826 |
| 827 void FrameLoaderClientImpl::dispatchDidChangeManifest() | 827 void FrameLoaderClientImpl::dispatchDidChangeManifest() |
| 828 { | 828 { |
| 829 if (m_webFrame->client()) | 829 if (m_webFrame->client()) |
| 830 m_webFrame->client()->didChangeManifest(m_webFrame); | 830 m_webFrame->client()->didChangeManifest(m_webFrame); |
| 831 } | 831 } |
| 832 | 832 |
| 833 } // namespace blink | 833 } // namespace blink |
| OLD | NEW |