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