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 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 void DocumentLoader::clearRedirectChain() | 580 void DocumentLoader::clearRedirectChain() |
581 { | 581 { |
582 m_redirectChain.clear(); | 582 m_redirectChain.clear(); |
583 } | 583 } |
584 | 584 |
585 void DocumentLoader::appendRedirect(const KURL& url) | 585 void DocumentLoader::appendRedirect(const KURL& url) |
586 { | 586 { |
587 m_redirectChain.append(url); | 587 m_redirectChain.append(url); |
588 } | 588 } |
589 | 589 |
590 bool DocumentLoader::loadingMultipartContent() const | |
591 { | |
592 return mainResourceLoader() ? mainResourceLoader()->loadingMultipartContent(
) : false; | |
593 } | |
594 | |
595 void DocumentLoader::detachFromFrame() | 590 void DocumentLoader::detachFromFrame() |
596 { | 591 { |
597 ASSERT(m_frame); | 592 ASSERT(m_frame); |
598 RefPtrWillBeRawPtr<LocalFrame> protectFrame(m_frame.get()); | 593 RefPtrWillBeRawPtr<LocalFrame> protectFrame(m_frame.get()); |
599 RefPtrWillBeRawPtr<DocumentLoader> protectLoader(this); | 594 RefPtrWillBeRawPtr<DocumentLoader> protectLoader(this); |
600 | 595 |
601 // It never makes sense to have a document loader that is detached from its | 596 // It never makes sense to have a document loader that is detached from its |
602 // frame have any loads active, so go ahead and kill all the loads. | 597 // frame have any loads active, so go ahead and kill all the loads. |
603 stopLoading(); | 598 stopLoading(); |
604 | 599 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 { | 752 { |
758 m_writer = createWriterFor(init, mimeType(), m_writer ? m_writer->encoding()
: emptyAtom, true, ForceSynchronousParsing); | 753 m_writer = createWriterFor(init, mimeType(), m_writer ? m_writer->encoding()
: emptyAtom, true, ForceSynchronousParsing); |
759 if (!source.isNull()) | 754 if (!source.isNull()) |
760 m_writer->appendReplacingData(source); | 755 m_writer->appendReplacingData(source); |
761 endWriting(m_writer.get()); | 756 endWriting(m_writer.get()); |
762 } | 757 } |
763 | 758 |
764 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 759 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
765 | 760 |
766 } // namespace blink | 761 } // namespace blink |
OLD | NEW |