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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 break; | 189 break; |
190 case Resource::Media: | 190 case Resource::Media: |
191 resource = RawResource::fetchMedia(request, fetcher()); | 191 resource = RawResource::fetchMedia(request, fetcher()); |
192 break; | 192 break; |
193 case Resource::TextTrack: | 193 case Resource::TextTrack: |
194 resource = RawResource::fetchTextTrack(request, fetcher()); | 194 resource = RawResource::fetchTextTrack(request, fetcher()); |
195 break; | 195 break; |
196 case Resource::ImportResource: | 196 case Resource::ImportResource: |
197 resource = RawResource::fetchImport(request, fetcher()); | 197 resource = RawResource::fetchImport(request, fetcher()); |
198 break; | 198 break; |
199 case Resource::LinkPreload: | 199 case Resource::Raw: |
200 resource = RawResource::fetch(request, fetcher()); | 200 resource = RawResource::fetch(request, fetcher()); |
201 break; | 201 break; |
202 default: | 202 default: |
203 ASSERT_NOT_REACHED(); | 203 ASSERT_NOT_REACHED(); |
204 } | 204 } |
205 | 205 |
206 if (resource) | 206 if (resource) |
207 fetcher()->preloadStarted(resource); | 207 fetcher()->preloadStarted(resource); |
208 return resource; | 208 return resource; |
209 } | 209 } |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 { | 717 { |
718 m_writer = createWriterFor(init, mimeType(), m_writer ? m_writer->encoding()
: emptyAtom, true, ForceSynchronousParsing); | 718 m_writer = createWriterFor(init, mimeType(), m_writer ? m_writer->encoding()
: emptyAtom, true, ForceSynchronousParsing); |
719 if (!source.isNull()) | 719 if (!source.isNull()) |
720 m_writer->appendReplacingData(source); | 720 m_writer->appendReplacingData(source); |
721 endWriting(m_writer.get()); | 721 endWriting(m_writer.get()); |
722 } | 722 } |
723 | 723 |
724 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 724 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
725 | 725 |
726 } // namespace blink | 726 } // namespace blink |
OLD | NEW |