| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google 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 | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // Note: We generalize this to all "blank" URLs and invalid URLs because we | 92 // Note: We generalize this to all "blank" URLs and invalid URLs because we |
| 93 // treat all of these URLs as about:blank. | 93 // treat all of these URLs as about:blank. |
| 94 return url.isEmpty() || url.protocolIsAbout(); | 94 return url.isEmpty() || url.protocolIsAbout(); |
| 95 } | 95 } |
| 96 | 96 |
| 97 DocumentLoader::DocumentLoader(LocalFrame* frame, | 97 DocumentLoader::DocumentLoader(LocalFrame* frame, |
| 98 const ResourceRequest& req, | 98 const ResourceRequest& req, |
| 99 const SubstituteData& substituteData, | 99 const SubstituteData& substituteData, |
| 100 ClientRedirectPolicy clientRedirectPolicy) | 100 ClientRedirectPolicy clientRedirectPolicy) |
| 101 : m_frame(frame), | 101 : m_frame(frame), |
| 102 m_fetcher(FrameFetchContext::createContextAndFetcher(this, nullptr)), | 102 m_fetcher(FrameFetchContext::createFetcherFromDocumentLoader(this)), |
| 103 m_originalRequest(req), | 103 m_originalRequest(req), |
| 104 m_substituteData(substituteData), | 104 m_substituteData(substituteData), |
| 105 m_request(req), | 105 m_request(req), |
| 106 m_isClientRedirect(clientRedirectPolicy == | 106 m_isClientRedirect(clientRedirectPolicy == |
| 107 ClientRedirectPolicy::ClientRedirect), | 107 ClientRedirectPolicy::ClientRedirect), |
| 108 m_replacesCurrentHistoryItem(false), | 108 m_replacesCurrentHistoryItem(false), |
| 109 m_dataReceived(false), | 109 m_dataReceived(false), |
| 110 m_navigationType(NavigationTypeOther), | 110 m_navigationType(NavigationTypeOther), |
| 111 m_documentLoadTiming(*this), | 111 m_documentLoadTiming(*this), |
| 112 m_timeOfLastDataReceived(0.0), | 112 m_timeOfLastDataReceived(0.0), |
| (...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 801 m_writer ? m_writer->encoding() : emptyAtom, true, | 801 m_writer ? m_writer->encoding() : emptyAtom, true, |
| 802 ForceSynchronousParsing); | 802 ForceSynchronousParsing); |
| 803 if (!source.isNull()) | 803 if (!source.isNull()) |
| 804 m_writer->appendReplacingData(source); | 804 m_writer->appendReplacingData(source); |
| 805 endWriting(); | 805 endWriting(); |
| 806 } | 806 } |
| 807 | 807 |
| 808 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 808 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
| 809 | 809 |
| 810 } // namespace blink | 810 } // namespace blink |
| OLD | NEW |