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 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 const KURL& DocumentLoader::originalURL() const | 767 const KURL& DocumentLoader::originalURL() const |
768 { | 768 { |
769 return m_originalRequestCopy.url(); | 769 return m_originalRequestCopy.url(); |
770 } | 770 } |
771 | 771 |
772 const KURL& DocumentLoader::requestURL() const | 772 const KURL& DocumentLoader::requestURL() const |
773 { | 773 { |
774 return request().url(); | 774 return request().url(); |
775 } | 775 } |
776 | 776 |
777 const String& DocumentLoader::responseMIMEType() const | 777 const AtomicString& DocumentLoader::responseMIMEType() const |
778 { | 778 { |
779 return m_response.mimeType(); | 779 return m_response.mimeType(); |
780 } | 780 } |
781 | 781 |
782 const KURL& DocumentLoader::unreachableURL() const | 782 const KURL& DocumentLoader::unreachableURL() const |
783 { | 783 { |
784 return m_substituteData.failingURL(); | 784 return m_substituteData.failingURL(); |
785 } | 785 } |
786 | 786 |
787 void DocumentLoader::setDefersLoading(bool defers) | 787 void DocumentLoader::setDefersLoading(bool defers) |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
947 void DocumentLoader::replaceDocument(const String& source, Document* ownerDocume
nt) | 947 void DocumentLoader::replaceDocument(const String& source, Document* ownerDocume
nt) |
948 { | 948 { |
949 m_frame->loader().stopAllLoaders(); | 949 m_frame->loader().stopAllLoaders(); |
950 m_writer = createWriterFor(m_frame, ownerDocument, m_frame->document()->url(
), mimeType(), m_writer ? m_writer->encoding() : emptyAtom, m_writer ? m_writer
->encodingWasChosenByUser() : false, true); | 950 m_writer = createWriterFor(m_frame, ownerDocument, m_frame->document()->url(
), mimeType(), m_writer ? m_writer->encoding() : emptyAtom, m_writer ? m_writer
->encodingWasChosenByUser() : false, true); |
951 if (!source.isNull()) | 951 if (!source.isNull()) |
952 m_writer->appendReplacingData(source); | 952 m_writer->appendReplacingData(source); |
953 endWriting(m_writer.get()); | 953 endWriting(m_writer.get()); |
954 } | 954 } |
955 | 955 |
956 } // namespace WebCore | 956 } // namespace WebCore |
OLD | NEW |