OLD | NEW |
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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 void preCacheSubstituteDataForMainResource(const FetchRequest&, const Substi
tuteData&); | 193 void preCacheSubstituteDataForMainResource(const FetchRequest&, const Substi
tuteData&); |
194 void storeResourceTimingInitiatorInformation(Resource*); | 194 void storeResourceTimingInitiatorInformation(Resource*); |
195 bool scheduleArchiveLoad(Resource*, const ResourceRequest&); | 195 bool scheduleArchiveLoad(Resource*, const ResourceRequest&); |
196 | 196 |
197 enum RevalidationPolicy { Use, Revalidate, Reload, Load }; | 197 enum RevalidationPolicy { Use, Revalidate, Reload, Load }; |
198 RevalidationPolicy determineRevalidationPolicy(Resource::Type, const FetchRe
quest&, Resource* existingResource) const; | 198 RevalidationPolicy determineRevalidationPolicy(Resource::Type, const FetchRe
quest&, Resource* existingResource) const; |
199 | 199 |
200 void determineRequestContext(ResourceRequest&, Resource::Type); | 200 void determineRequestContext(ResourceRequest&, Resource::Type); |
201 ResourceRequestCachePolicy resourceRequestCachePolicy(const ResourceRequest&
, Resource::Type); | 201 ResourceRequestCachePolicy resourceRequestCachePolicy(const ResourceRequest&
, Resource::Type); |
202 void addAdditionalRequestHeaders(ResourceRequest&, Resource::Type); | 202 void addAdditionalRequestHeaders(ResourceRequest&, Resource::Type); |
203 void maybeUpgradeInsecureRequestURL(FetchRequest&); | 203 void upgradeInsecureRequest(FetchRequest&); |
204 | 204 |
205 bool canRequest(Resource::Type, const ResourceRequest&, const KURL&, const R
esourceLoaderOptions&, bool forPreload, FetchRequest::OriginRestriction) const; | 205 bool canRequest(Resource::Type, const ResourceRequest&, const KURL&, const R
esourceLoaderOptions&, bool forPreload, FetchRequest::OriginRestriction) const; |
206 | 206 |
207 static bool resourceNeedsLoad(Resource*, const FetchRequest&, RevalidationPo
licy); | 207 static bool resourceNeedsLoad(Resource*, const FetchRequest&, RevalidationPo
licy); |
208 | 208 |
209 void notifyLoadedFromMemoryCache(Resource*); | 209 void notifyLoadedFromMemoryCache(Resource*); |
210 | 210 |
211 void garbageCollectDocumentResourcesTimerFired(Timer<ResourceFetcher>*); | 211 void garbageCollectDocumentResourcesTimerFired(Timer<ResourceFetcher>*); |
212 void scheduleDocumentResourcesGC(); | 212 void scheduleDocumentResourcesGC(); |
213 | 213 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 m_loader->m_allowStaleResources = m_previousState; | 280 m_loader->m_allowStaleResources = m_previousState; |
281 } | 281 } |
282 private: | 282 private: |
283 ResourceFetcher* m_loader; | 283 ResourceFetcher* m_loader; |
284 bool m_previousState; | 284 bool m_previousState; |
285 }; | 285 }; |
286 | 286 |
287 } // namespace blink | 287 } // namespace blink |
288 | 288 |
289 #endif | 289 #endif |
OLD | NEW |