Chromium Code Reviews| 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::controlledByServiceWorker() | |
| 813 { | |
| 814 if (!m_webFrame->client()) | |
| 815 return false; | |
| 816 return m_webFrame->client()->controlledByServiceWorker(); | |
|
tkent
2014/09/08 07:38:33
nit:
return m_webFrame->client() && m_webFrame
horo
2014/09/08 08:19:42
Done.
| |
| 817 } | |
| 818 | |
| 812 SharedWorkerRepositoryClient* FrameLoaderClientImpl::sharedWorkerRepositoryClien t() | 819 SharedWorkerRepositoryClient* FrameLoaderClientImpl::sharedWorkerRepositoryClien t() |
| 813 { | 820 { |
| 814 return m_webFrame->sharedWorkerRepositoryClient(); | 821 return m_webFrame->sharedWorkerRepositoryClient(); |
| 815 } | 822 } |
| 816 | 823 |
| 817 PassOwnPtr<WebApplicationCacheHost> FrameLoaderClientImpl::createApplicationCach eHost(WebApplicationCacheHostClient* client) | 824 PassOwnPtr<WebApplicationCacheHost> FrameLoaderClientImpl::createApplicationCach eHost(WebApplicationCacheHostClient* client) |
| 818 { | 825 { |
| 819 if (!m_webFrame->client()) | 826 if (!m_webFrame->client()) |
| 820 return nullptr; | 827 return nullptr; |
| 821 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame, client)); | 828 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame, client)); |
| 822 } | 829 } |
| 823 | 830 |
| 824 void FrameLoaderClientImpl::didStopAllLoaders() | 831 void FrameLoaderClientImpl::didStopAllLoaders() |
| 825 { | 832 { |
| 826 if (m_webFrame->client()) | 833 if (m_webFrame->client()) |
| 827 m_webFrame->client()->didAbortLoading(m_webFrame); | 834 m_webFrame->client()->didAbortLoading(m_webFrame); |
| 828 } | 835 } |
| 829 | 836 |
| 830 void FrameLoaderClientImpl::dispatchDidChangeManifest() | 837 void FrameLoaderClientImpl::dispatchDidChangeManifest() |
| 831 { | 838 { |
| 832 if (m_webFrame->client()) | 839 if (m_webFrame->client()) |
| 833 m_webFrame->client()->didChangeManifest(m_webFrame); | 840 m_webFrame->client()->didChangeManifest(m_webFrame); |
| 834 } | 841 } |
| 835 | 842 |
| 836 } // namespace blink | 843 } // namespace blink |
| OLD | NEW |