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

Side by Side Diff: Source/core/loader/cache/CachedResource.cpp

Issue 15856002: First step of HTMLImports (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org)
4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org)
5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
7 7
8 This library is free software; you can redistribute it and/or 8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public 9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either 10 License as published by the Free Software Foundation; either
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 case CachedResource::CSSStyleSheet: 113 case CachedResource::CSSStyleSheet:
114 return ResourceLoadPriorityHigh; 114 return ResourceLoadPriorityHigh;
115 case CachedResource::Script: 115 case CachedResource::Script:
116 case CachedResource::FontResource: 116 case CachedResource::FontResource:
117 case CachedResource::RawResource: 117 case CachedResource::RawResource:
118 return ResourceLoadPriorityMedium; 118 return ResourceLoadPriorityMedium;
119 case CachedResource::ImageResource: 119 case CachedResource::ImageResource:
120 return ResourceLoadPriorityLow; 120 return ResourceLoadPriorityLow;
121 case CachedResource::XSLStyleSheet: 121 case CachedResource::XSLStyleSheet:
122 return ResourceLoadPriorityHigh; 122 return ResourceLoadPriorityHigh;
123 case CachedResource::HTMLDocumentResource:
124 return ResourceLoadPriorityHigh;
123 case CachedResource::SVGDocumentResource: 125 case CachedResource::SVGDocumentResource:
124 return ResourceLoadPriorityLow; 126 return ResourceLoadPriorityLow;
125 case CachedResource::LinkPrefetch: 127 case CachedResource::LinkPrefetch:
126 return ResourceLoadPriorityVeryLow; 128 return ResourceLoadPriorityVeryLow;
127 case CachedResource::LinkSubresource: 129 case CachedResource::LinkSubresource:
128 return ResourceLoadPriorityVeryLow; 130 return ResourceLoadPriorityVeryLow;
129 case CachedResource::TextTrackResource: 131 case CachedResource::TextTrackResource:
130 return ResourceLoadPriorityLow; 132 return ResourceLoadPriorityLow;
131 case CachedResource::ShaderResource: 133 case CachedResource::ShaderResource:
132 return ResourceLoadPriorityMedium; 134 return ResourceLoadPriorityMedium;
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 info.addMember(m_proxyResource, "proxyResource"); 906 info.addMember(m_proxyResource, "proxyResource");
905 info.addMember(m_handlesToRevalidate, "handlesToRevalidate"); 907 info.addMember(m_handlesToRevalidate, "handlesToRevalidate");
906 info.addMember(m_options, "options"); 908 info.addMember(m_options, "options");
907 info.addMember(m_decodedDataDeletionTimer, "decodedDataDeletionTimer"); 909 info.addMember(m_decodedDataDeletionTimer, "decodedDataDeletionTimer");
908 info.ignoreMember(m_clientsAwaitingCallback); 910 info.ignoreMember(m_clientsAwaitingCallback);
909 911
910 if (m_purgeableData && !m_purgeableData->wasPurged()) 912 if (m_purgeableData && !m_purgeableData->wasPurged())
911 info.addRawBuffer(m_purgeableData.get(), m_purgeableData->size(), "Purge ableData", "purgeableData"); 913 info.addRawBuffer(m_purgeableData.get(), m_purgeableData->size(), "Purge ableData", "purgeableData");
912 } 914 }
913 } 915 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698