| 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 27 matching lines...) Expand all Loading... |
| 38 #include "wtf/PtrUtil.h" | 38 #include "wtf/PtrUtil.h" |
| 39 #include <memory> | 39 #include <memory> |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 WebDataSourceImpl* WebDataSourceImpl::create( | 43 WebDataSourceImpl* WebDataSourceImpl::create( |
| 44 LocalFrame* frame, | 44 LocalFrame* frame, |
| 45 const ResourceRequest& request, | 45 const ResourceRequest& request, |
| 46 const SubstituteData& data, | 46 const SubstituteData& data, |
| 47 ClientRedirectPolicy clientRedirectPolicy) { | 47 ClientRedirectPolicy clientRedirectPolicy) { |
| 48 DCHECK(frame); |
| 49 |
| 48 return new WebDataSourceImpl(frame, request, data, clientRedirectPolicy); | 50 return new WebDataSourceImpl(frame, request, data, clientRedirectPolicy); |
| 49 } | 51 } |
| 50 | 52 |
| 51 const WebURLRequest& WebDataSourceImpl::originalRequest() const { | 53 const WebURLRequest& WebDataSourceImpl::originalRequest() const { |
| 52 return m_originalRequestWrapper; | 54 return m_originalRequestWrapper; |
| 53 } | 55 } |
| 54 | 56 |
| 55 const WebURLRequest& WebDataSourceImpl::getRequest() const { | 57 const WebURLRequest& WebDataSourceImpl::getRequest() const { |
| 56 return m_requestWrapper; | 58 return m_requestWrapper; |
| 57 } | 59 } |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 void WebDataSourceImpl::setSubresourceFilter( | 160 void WebDataSourceImpl::setSubresourceFilter( |
| 159 WebDocumentSubresourceFilter* subresourceFilter) { | 161 WebDocumentSubresourceFilter* subresourceFilter) { |
| 160 DocumentLoader::setSubresourceFilter(WTF::wrapUnique(subresourceFilter)); | 162 DocumentLoader::setSubresourceFilter(WTF::wrapUnique(subresourceFilter)); |
| 161 } | 163 } |
| 162 | 164 |
| 163 DEFINE_TRACE(WebDataSourceImpl) { | 165 DEFINE_TRACE(WebDataSourceImpl) { |
| 164 DocumentLoader::trace(visitor); | 166 DocumentLoader::trace(visitor); |
| 165 } | 167 } |
| 166 | 168 |
| 167 } // namespace blink | 169 } // namespace blink |
| OLD | NEW |