| 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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 void DocumentLoader::clearRedirectChain() | 583 void DocumentLoader::clearRedirectChain() |
| 584 { | 584 { |
| 585 m_redirectChain.clear(); | 585 m_redirectChain.clear(); |
| 586 } | 586 } |
| 587 | 587 |
| 588 void DocumentLoader::appendRedirect(const KURL& url) | 588 void DocumentLoader::appendRedirect(const KURL& url) |
| 589 { | 589 { |
| 590 m_redirectChain.append(url); | 590 m_redirectChain.append(url); |
| 591 } | 591 } |
| 592 | 592 |
| 593 bool DocumentLoader::loadingMultipartContent() const | |
| 594 { | |
| 595 return mainResourceLoader() ? mainResourceLoader()->loadingMultipartContent(
) : false; | |
| 596 } | |
| 597 | |
| 598 void DocumentLoader::detachFromFrame() | 593 void DocumentLoader::detachFromFrame() |
| 599 { | 594 { |
| 600 ASSERT(m_frame); | 595 ASSERT(m_frame); |
| 601 RefPtrWillBeRawPtr<LocalFrame> protectFrame(m_frame.get()); | 596 RefPtrWillBeRawPtr<LocalFrame> protectFrame(m_frame.get()); |
| 602 RefPtrWillBeRawPtr<DocumentLoader> protectLoader(this); | 597 RefPtrWillBeRawPtr<DocumentLoader> protectLoader(this); |
| 603 | 598 |
| 604 // It never makes sense to have a document loader that is detached from its | 599 // It never makes sense to have a document loader that is detached from its |
| 605 // frame have any loads active, so go ahead and kill all the loads. | 600 // frame have any loads active, so go ahead and kill all the loads. |
| 606 stopLoading(); | 601 stopLoading(); |
| 607 | 602 |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 { | 780 { |
| 786 m_writer = createWriterFor(init, mimeType(), m_writer ? m_writer->encoding()
: emptyAtom, true, ForceSynchronousParsing); | 781 m_writer = createWriterFor(init, mimeType(), m_writer ? m_writer->encoding()
: emptyAtom, true, ForceSynchronousParsing); |
| 787 if (!source.isNull()) | 782 if (!source.isNull()) |
| 788 m_writer->appendReplacingData(source); | 783 m_writer->appendReplacingData(source); |
| 789 endWriting(m_writer.get()); | 784 endWriting(m_writer.get()); |
| 790 } | 785 } |
| 791 | 786 |
| 792 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 787 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
| 793 | 788 |
| 794 } // namespace blink | 789 } // namespace blink |
| OLD | NEW |