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

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

Issue 1216093003: Service Worker: Migrate to version_uuid and surface ServiceWorker.id. (Blink 1/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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') | Source/web/WebSharedWorkerImpl.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 894 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 if (!m_webFrame->client()) 905 if (!m_webFrame->client())
906 return nullptr; 906 return nullptr;
907 return adoptPtr(m_webFrame->client()->createServiceWorkerProvider(m_webFrame )); 907 return adoptPtr(m_webFrame->client()->createServiceWorkerProvider(m_webFrame ));
908 } 908 }
909 909
910 bool FrameLoaderClientImpl::isControlledByServiceWorker(DocumentLoader& loader) 910 bool FrameLoaderClientImpl::isControlledByServiceWorker(DocumentLoader& loader)
911 { 911 {
912 return m_webFrame->client() && m_webFrame->client()->isControlledByServiceWo rker(*WebDataSourceImpl::fromDocumentLoader(&loader)); 912 return m_webFrame->client() && m_webFrame->client()->isControlledByServiceWo rker(*WebDataSourceImpl::fromDocumentLoader(&loader));
913 } 913 }
914 914
915 int64_t FrameLoaderClientImpl::serviceWorkerID(DocumentLoader& loader) 915 std::string FrameLoaderClientImpl::serviceWorkerID(DocumentLoader& loader)
916 { 916 {
917 if (!m_webFrame->client()) 917 if (!m_webFrame->client())
918 return -1; 918 return std::string();
919 return m_webFrame->client()->serviceWorkerID(*WebDataSourceImpl::fromDocumen tLoader(&loader)); 919 return m_webFrame->client()->serviceWorkerID(*WebDataSourceImpl::fromDocumen tLoader(&loader));
920 } 920 }
921 921
922 SharedWorkerRepositoryClient* FrameLoaderClientImpl::sharedWorkerRepositoryClien t() 922 SharedWorkerRepositoryClient* FrameLoaderClientImpl::sharedWorkerRepositoryClien t()
923 { 923 {
924 return m_webFrame->sharedWorkerRepositoryClient(); 924 return m_webFrame->sharedWorkerRepositoryClient();
925 } 925 }
926 926
927 PassOwnPtr<WebApplicationCacheHost> FrameLoaderClientImpl::createApplicationCach eHost(WebApplicationCacheHostClient* client) 927 PassOwnPtr<WebApplicationCacheHost> FrameLoaderClientImpl::createApplicationCach eHost(WebApplicationCacheHostClient* client)
928 { 928 {
(...skipping 30 matching lines...) Expand all
959 959
960 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type) 960 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type)
961 { 961 {
962 if (m_webFrame->client()) { 962 if (m_webFrame->client()) {
963 m_webFrame->client()->suddenTerminationDisablerChanged( 963 m_webFrame->client()->suddenTerminationDisablerChanged(
964 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type)); 964 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type));
965 } 965 }
966 } 966 }
967 967
968 } // namespace blink 968 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.h ('k') | Source/web/WebSharedWorkerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698