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

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

Issue 2257943002: Remove LinkPreload resource type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Really fixed test Created 4 years, 4 months 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
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698