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

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

Issue 1738623004: Rename enums/functions that collide in chromium style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-4
Patch Set: get-names-5: rebase-and-stuff Created 4 years, 10 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 if (!as.isEmpty()) 187 if (!as.isEmpty())
188 return false; 188 return false;
189 } 189 }
190 return true; 190 return true;
191 } 191 }
192 192
193 void LinkLoader::createLinkPreloadResourceClient(Resource* resource) 193 void LinkLoader::createLinkPreloadResourceClient(Resource* resource)
194 { 194 {
195 if (!resource) 195 if (!resource)
196 return; 196 return;
197 switch (resource->type()) { 197 switch (resource->getType()) {
198 case Resource::Image: 198 case Resource::Image:
199 m_linkPreloadResourceClient = LinkPreloadImageResourceClient::create(thi s, toImageResource(resource)); 199 m_linkPreloadResourceClient = LinkPreloadImageResourceClient::create(thi s, toImageResource(resource));
200 break; 200 break;
201 case Resource::Script: 201 case Resource::Script:
202 m_linkPreloadResourceClient = LinkPreloadScriptResourceClient::create(th is, toScriptResource(resource)); 202 m_linkPreloadResourceClient = LinkPreloadScriptResourceClient::create(th is, toScriptResource(resource));
203 break; 203 break;
204 case Resource::CSSStyleSheet: 204 case Resource::CSSStyleSheet:
205 m_linkPreloadResourceClient = LinkPreloadStyleResourceClient::create(thi s, toCSSStyleSheetResource(resource)); 205 m_linkPreloadResourceClient = LinkPreloadStyleResourceClient::create(thi s, toCSSStyleSheetResource(resource));
206 break; 206 break;
207 case Resource::Font: 207 case Resource::Font:
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 341
342 DEFINE_TRACE(LinkLoader) 342 DEFINE_TRACE(LinkLoader)
343 { 343 {
344 visitor->trace(m_client); 344 visitor->trace(m_client);
345 visitor->trace(m_prerender); 345 visitor->trace(m_prerender);
346 visitor->trace(m_linkPreloadResourceClient); 346 visitor->trace(m_linkPreloadResourceClient);
347 ResourceOwner<Resource, ResourceClient>::trace(visitor); 347 ResourceOwner<Resource, ResourceClient>::trace(visitor);
348 } 348 }
349 349
350 } // namespace blink 350 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698