| 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 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 void DocumentLoader::clearRedirectChain() | 559 void DocumentLoader::clearRedirectChain() |
| 560 { | 560 { |
| 561 m_redirectChain.clear(); | 561 m_redirectChain.clear(); |
| 562 } | 562 } |
| 563 | 563 |
| 564 void DocumentLoader::appendRedirect(const KURL& url) | 564 void DocumentLoader::appendRedirect(const KURL& url) |
| 565 { | 565 { |
| 566 m_redirectChain.append(url); | 566 m_redirectChain.append(url); |
| 567 } | 567 } |
| 568 | 568 |
| 569 bool DocumentLoader::loadingMultipartContent() const | |
| 570 { | |
| 571 return mainResourceLoader() && m_mainResource ? m_mainResource->isMultipartI
mage() : false; | |
| 572 } | |
| 573 | |
| 574 void DocumentLoader::detachFromFrame() | 569 void DocumentLoader::detachFromFrame() |
| 575 { | 570 { |
| 576 ASSERT(m_frame); | 571 ASSERT(m_frame); |
| 577 RefPtrWillBeRawPtr<LocalFrame> protectFrame(m_frame.get()); | 572 RefPtrWillBeRawPtr<LocalFrame> protectFrame(m_frame.get()); |
| 578 RefPtrWillBeRawPtr<DocumentLoader> protectLoader(this); | 573 RefPtrWillBeRawPtr<DocumentLoader> protectLoader(this); |
| 579 | 574 |
| 580 // It never makes sense to have a document loader that is detached from its | 575 // It never makes sense to have a document loader that is detached from its |
| 581 // frame have any loads active, so go ahead and kill all the loads. | 576 // frame have any loads active, so go ahead and kill all the loads. |
| 582 stopLoading(); | 577 stopLoading(); |
| 583 | 578 |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 765 { | 760 { |
| 766 m_writer = createWriterFor(ownerDocument, init, mimeType(), m_writer ? m_wri
ter->encoding() : emptyAtom, true, ForceSynchronousParsing); | 761 m_writer = createWriterFor(ownerDocument, init, mimeType(), m_writer ? m_wri
ter->encoding() : emptyAtom, true, ForceSynchronousParsing); |
| 767 if (!source.isNull()) | 762 if (!source.isNull()) |
| 768 m_writer->appendReplacingData(source); | 763 m_writer->appendReplacingData(source); |
| 769 endWriting(m_writer.get()); | 764 endWriting(m_writer.get()); |
| 770 } | 765 } |
| 771 | 766 |
| 772 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 767 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
| 773 | 768 |
| 774 } // namespace blink | 769 } // namespace blink |
| OLD | NEW |