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 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
939 m_webFrame->client()->willInsertBody(m_webFrame); | 939 m_webFrame->client()->willInsertBody(m_webFrame); |
940 } | 940 } |
941 | 941 |
942 std::unique_ptr<WebServiceWorkerProvider> | 942 std::unique_ptr<WebServiceWorkerProvider> |
943 LocalFrameClientImpl::createServiceWorkerProvider() { | 943 LocalFrameClientImpl::createServiceWorkerProvider() { |
944 if (!m_webFrame->client()) | 944 if (!m_webFrame->client()) |
945 return nullptr; | 945 return nullptr; |
946 return WTF::wrapUnique(m_webFrame->client()->createServiceWorkerProvider()); | 946 return WTF::wrapUnique(m_webFrame->client()->createServiceWorkerProvider()); |
947 } | 947 } |
948 | 948 |
949 bool LocalFrameClientImpl::isControlledByServiceWorker(DocumentLoader& loader) { | |
950 return m_webFrame->client() && | |
951 m_webFrame->client()->isControlledByServiceWorker( | |
952 *WebDataSourceImpl::fromDocumentLoader(&loader)); | |
953 } | |
954 | |
955 int64_t LocalFrameClientImpl::serviceWorkerID(DocumentLoader& loader) { | |
956 if (!m_webFrame->client()) | |
957 return -1; | |
958 return m_webFrame->client()->serviceWorkerID( | |
959 *WebDataSourceImpl::fromDocumentLoader(&loader)); | |
960 } | |
961 | |
962 SharedWorkerRepositoryClient* | 949 SharedWorkerRepositoryClient* |
963 LocalFrameClientImpl::sharedWorkerRepositoryClient() { | 950 LocalFrameClientImpl::sharedWorkerRepositoryClient() { |
964 return m_webFrame->sharedWorkerRepositoryClient(); | 951 return m_webFrame->sharedWorkerRepositoryClient(); |
965 } | 952 } |
966 | 953 |
967 std::unique_ptr<WebApplicationCacheHost> | 954 std::unique_ptr<WebApplicationCacheHost> |
968 LocalFrameClientImpl::createApplicationCacheHost( | 955 LocalFrameClientImpl::createApplicationCacheHost( |
969 WebApplicationCacheHostClient* client) { | 956 WebApplicationCacheHostClient* client) { |
970 if (!m_webFrame->client()) | 957 if (!m_webFrame->client()) |
971 return nullptr; | 958 return nullptr; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1021 KURL LocalFrameClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { | 1008 KURL LocalFrameClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { |
1022 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); | 1009 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); |
1023 } | 1010 } |
1024 | 1011 |
1025 void LocalFrameClientImpl::setHasReceivedUserGesture() { | 1012 void LocalFrameClientImpl::setHasReceivedUserGesture() { |
1026 if (m_webFrame->client()) | 1013 if (m_webFrame->client()) |
1027 m_webFrame->client()->setHasReceivedUserGesture(); | 1014 m_webFrame->client()->setHasReceivedUserGesture(); |
1028 } | 1015 } |
1029 | 1016 |
1030 } // namespace blink | 1017 } // namespace blink |
OLD | NEW |