Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: Source/web/FrameLoaderClientImpl.cpp

Issue 546263002: [ServiceWorker] Introduce isControlledByServiceWorker() in FrameLoaderClient and WebFrameClient (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated tkent's comment Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/web/FrameLoaderClientImpl.h ('k') | public/web/WebFrameClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.h ('k') | public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698