| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 const ResourceRequest& DocumentLoader::originalRequest() const | 147 const ResourceRequest& DocumentLoader::originalRequest() const |
| 148 { | 148 { |
| 149 return m_originalRequest; | 149 return m_originalRequest; |
| 150 } | 150 } |
| 151 | 151 |
| 152 const ResourceRequest& DocumentLoader::request() const | 152 const ResourceRequest& DocumentLoader::request() const |
| 153 { | 153 { |
| 154 return m_request; | 154 return m_request; |
| 155 } | 155 } |
| 156 | 156 |
| 157 ResourceFetcher* DocumentLoader::fetcher() const | |
| 158 { | |
| 159 return m_fetcher.get(); | |
| 160 } | |
| 161 | |
| 162 const KURL& DocumentLoader::url() const | 157 const KURL& DocumentLoader::url() const |
| 163 { | 158 { |
| 164 return m_request.url(); | 159 return m_request.url(); |
| 165 } | 160 } |
| 166 | 161 |
| 167 void DocumentLoader::startPreload(Resource::Type type, FetchRequest& request) | 162 void DocumentLoader::startPreload(Resource::Type type, FetchRequest& request) |
| 168 { | 163 { |
| 169 ASSERT(type == Resource::Script || type == Resource::CSSStyleSheet || type =
= Resource::Image || type == Resource::ImportResource); | 164 ASSERT(type == Resource::Script || type == Resource::CSSStyleSheet || type =
= Resource::Image || type == Resource::ImportResource); |
| 170 ResourcePtr<Resource> resource; | 165 ResourcePtr<Resource> resource; |
| 171 switch (type) { | 166 switch (type) { |
| (...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 838 { | 833 { |
| 839 m_writer = createWriterFor(ownerDocument, init, mimeType(), m_writer ? m_wri
ter->encoding() : emptyAtom, true, ForceSynchronousParsing); | 834 m_writer = createWriterFor(ownerDocument, init, mimeType(), m_writer ? m_wri
ter->encoding() : emptyAtom, true, ForceSynchronousParsing); |
| 840 if (!source.isNull()) | 835 if (!source.isNull()) |
| 841 m_writer->appendReplacingData(source); | 836 m_writer->appendReplacingData(source); |
| 842 endWriting(m_writer.get()); | 837 endWriting(m_writer.get()); |
| 843 } | 838 } |
| 844 | 839 |
| 845 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 840 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
| 846 | 841 |
| 847 } // namespace blink | 842 } // namespace blink |
| OLD | NEW |