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