| 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 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |