Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(627)

Side by Side Diff: Source/core/loader/DocumentLoader.cpp

Issue 99333011: Make sure getAttribute() / setAttribute() callers use AtomicStrings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/loader/DocumentLoader.h ('k') | Source/core/loader/ImageLoader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/loader/DocumentLoader.h ('k') | Source/core/loader/ImageLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698