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

Side by Side Diff: Source/core/fetch/Resource.h

Issue 23702040: Send synchronous loads through the cache. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments Created 7 years, 3 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) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 void setInCache(bool inCache) { m_inCache = inCache; } 175 void setInCache(bool inCache) { m_inCache = inCache; }
176 bool inCache() const { return m_inCache; } 176 bool inCache() const { return m_inCache; }
177 177
178 void setCacheLiveResourcePriority(CacheLiveResourcePriority); 178 void setCacheLiveResourcePriority(CacheLiveResourcePriority);
179 unsigned cacheLiveResourcePriority() const { return m_cacheLiveResourcePrior ity; } 179 unsigned cacheLiveResourcePriority() const { return m_cacheLiveResourcePrior ity; }
180 bool inLiveDecodedResourcesList() { return m_inLiveDecodedResourcesList; } 180 bool inLiveDecodedResourcesList() { return m_inLiveDecodedResourcesList; }
181 181
182 void clearLoader(); 182 void clearLoader();
183 183
184 SharedBuffer* resourceBuffer() const { ASSERT(!m_purgeableData); return m_da ta.get(); } 184 SharedBuffer* resourceBuffer() const { ASSERT(!m_purgeableData); return m_da ta.get(); }
185 void setResourceBuffer(PassRefPtr<SharedBuffer>);
185 186
186 virtual void willSendRequest(ResourceRequest&, const ResourceResponse&) { m_ requestedFromNetworkingLayer = true; } 187 virtual void willSendRequest(ResourceRequest&, const ResourceResponse&) { m_ requestedFromNetworkingLayer = true; }
187 virtual void responseReceived(const ResourceResponse&); 188 virtual void responseReceived(const ResourceResponse&);
188 void setResponse(const ResourceResponse& response) { m_response = response; } 189 void setResponse(const ResourceResponse& response) { m_response = response; }
189 const ResourceResponse& response() const { return m_response; } 190 const ResourceResponse& response() const { return m_response; }
190 191
191 // Sets the serialized metadata retrieved from the platform's cache. 192 // Sets the serialized metadata retrieved from the platform's cache.
192 void setSerializedCachedMetadata(const char*, size_t); 193 void setSerializedCachedMetadata(const char*, size_t);
193 194
194 // Caches the given metadata in association with this resource and suggests 195 // Caches the given metadata in association with this resource and suggests
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 // If this field is non-null, the resource has a proxy for checking whether it is still up to date (see m_resourceToRevalidate). 354 // If this field is non-null, the resource has a proxy for checking whether it is still up to date (see m_resourceToRevalidate).
354 Resource* m_proxyResource; 355 Resource* m_proxyResource;
355 356
356 // These handles will need to be updated to point to the m_resourceToRevalid ate in case we get 304 response. 357 // These handles will need to be updated to point to the m_resourceToRevalid ate in case we get 304 response.
357 HashSet<ResourcePtrBase*> m_handlesToRevalidate; 358 HashSet<ResourcePtrBase*> m_handlesToRevalidate;
358 }; 359 };
359 360
360 } 361 }
361 362
362 #endif 363 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698