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

Side by Side Diff: Source/core/loader/cache/CachedResourceLoader.h

Issue 16433002: Prepopulate the memoryCache with data:uri images. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update TestExpectations Created 7 years, 6 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) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 4 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
5 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ 5 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
6 6
7 This library is free software; you can redistribute it and/or 7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public 8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either 9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version. 10 version 2 of the License, or (at your option) any later version.
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 void reportMemoryUsage(MemoryObjectInfo*) const; 129 void reportMemoryUsage(MemoryObjectInfo*) const;
130 130
131 static const ResourceLoaderOptions& defaultCachedResourceOptions(); 131 static const ResourceLoaderOptions& defaultCachedResourceOptions();
132 132
133 private: 133 private:
134 explicit CachedResourceLoader(DocumentLoader*); 134 explicit CachedResourceLoader(DocumentLoader*);
135 135
136 CachedResourceHandle<CachedResource> requestResource(CachedResource::Type, C achedResourceRequest&); 136 CachedResourceHandle<CachedResource> requestResource(CachedResource::Type, C achedResourceRequest&);
137 CachedResourceHandle<CachedResource> revalidateResource(const CachedResource Request&, CachedResource*); 137 CachedResourceHandle<CachedResource> revalidateResource(const CachedResource Request&, CachedResource*);
138 CachedResourceHandle<CachedResource> loadResource(CachedResource::Type, Cach edResourceRequest&, const String& charset); 138 CachedResourceHandle<CachedResource> loadResource(CachedResource::Type, Cach edResourceRequest&, const String& charset);
139 void preCacheDataURIImage(const CachedResourceRequest&);
139 void storeResourceTimingInitiatorInformation(const CachedResourceHandle<Cach edResource>&, const CachedResourceRequest&); 140 void storeResourceTimingInitiatorInformation(const CachedResourceHandle<Cach edResource>&, const CachedResourceRequest&);
140 void requestPreload(CachedResource::Type, CachedResourceRequest&, const Stri ng& charset); 141 void requestPreload(CachedResource::Type, CachedResourceRequest&, const Stri ng& charset);
141 142
142 enum RevalidationPolicy { Use, Revalidate, Reload, Load }; 143 enum RevalidationPolicy { Use, Revalidate, Reload, Load };
143 RevalidationPolicy determineRevalidationPolicy(CachedResource::Type, Resourc eRequest&, bool forPreload, CachedResource* existingResource, CachedResourceRequ est::DeferOption) const; 144 RevalidationPolicy determineRevalidationPolicy(CachedResource::Type, Resourc eRequest&, bool forPreload, CachedResource* existingResource, CachedResourceRequ est::DeferOption) const;
144 145
145 void determineTargetType(ResourceRequest&, CachedResource::Type); 146 void determineTargetType(ResourceRequest&, CachedResource::Type);
146 ResourceRequestCachePolicy resourceRequestCachePolicy(const ResourceRequest& , CachedResource::Type); 147 ResourceRequestCachePolicy resourceRequestCachePolicy(const ResourceRequest& , CachedResource::Type);
147 void addAdditionalRequestHeaders(ResourceRequest&, CachedResource::Type); 148 void addAdditionalRequestHeaders(ResourceRequest&, CachedResource::Type);
148 149
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 m_loader->m_allowStaleResources = m_previousState; 200 m_loader->m_allowStaleResources = m_previousState;
200 } 201 }
201 private: 202 private:
202 CachedResourceLoader* m_loader; 203 CachedResourceLoader* m_loader;
203 bool m_previousState; 204 bool m_previousState;
204 }; 205 };
205 206
206 } // namespace WebCore 207 } // namespace WebCore
207 208
208 #endif 209 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698