| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #include "web/WebDataSourceImpl.h" | 31 #include "web/WebDataSourceImpl.h" |
| 32 | 32 |
| 33 #include <memory> | 33 #include <memory> |
| 34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
| 35 #include "core/loader/SubresourceFilter.h" | 35 #include "core/loader/SubresourceFilter.h" |
| 36 #include "public/platform/WebDocumentSubresourceFilter.h" | 36 #include "public/platform/WebDocumentSubresourceFilter.h" |
| 37 #include "public/platform/WebURL.h" | 37 #include "public/platform/WebURL.h" |
| 38 #include "public/platform/WebURLError.h" | 38 #include "public/platform/WebURLError.h" |
| 39 #include "public/platform/WebVector.h" | 39 #include "public/platform/WebVector.h" |
| 40 #include "public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.
h" |
| 40 #include "wtf/PtrUtil.h" | 41 #include "wtf/PtrUtil.h" |
| 41 | 42 |
| 42 namespace blink { | 43 namespace blink { |
| 43 | 44 |
| 44 WebDataSourceImpl* WebDataSourceImpl::create( | 45 WebDataSourceImpl* WebDataSourceImpl::create( |
| 45 LocalFrame* frame, | 46 LocalFrame* frame, |
| 46 const ResourceRequest& request, | 47 const ResourceRequest& request, |
| 47 const SubstituteData& data, | 48 const SubstituteData& data, |
| 48 ClientRedirectPolicy clientRedirectPolicy) { | 49 ClientRedirectPolicy clientRedirectPolicy) { |
| 49 DCHECK(frame); | 50 DCHECK(frame); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 DocumentLoader::detachFromFrame(); | 155 DocumentLoader::detachFromFrame(); |
| 155 m_extraData.reset(); | 156 m_extraData.reset(); |
| 156 } | 157 } |
| 157 | 158 |
| 158 void WebDataSourceImpl::setSubresourceFilter( | 159 void WebDataSourceImpl::setSubresourceFilter( |
| 159 WebDocumentSubresourceFilter* subresourceFilter) { | 160 WebDocumentSubresourceFilter* subresourceFilter) { |
| 160 DocumentLoader::setSubresourceFilter( | 161 DocumentLoader::setSubresourceFilter( |
| 161 SubresourceFilter::create(this, WTF::wrapUnique(subresourceFilter))); | 162 SubresourceFilter::create(this, WTF::wrapUnique(subresourceFilter))); |
| 162 } | 163 } |
| 163 | 164 |
| 165 void WebDataSourceImpl::setServiceWorkerNetworkProvider( |
| 166 std::unique_ptr<WebServiceWorkerNetworkProvider> provider) { |
| 167 DocumentLoader::setServiceWorkerNetworkProvider(std::move(provider)); |
| 168 } |
| 169 |
| 170 WebServiceWorkerNetworkProvider* |
| 171 WebDataSourceImpl::getServiceWorkerNetworkProvider() { |
| 172 return DocumentLoader::getServiceWorkerNetworkProvider(); |
| 173 } |
| 174 |
| 164 DEFINE_TRACE(WebDataSourceImpl) { | 175 DEFINE_TRACE(WebDataSourceImpl) { |
| 165 DocumentLoader::trace(visitor); | 176 DocumentLoader::trace(visitor); |
| 166 } | 177 } |
| 167 | 178 |
| 168 } // namespace blink | 179 } // namespace blink |
| OLD | NEW |