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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 159 |
160 void initializeRevalidation(const FetchRequest&, Resource*); | 160 void initializeRevalidation(const FetchRequest&, Resource*); |
161 ResourcePtr<Resource> createResourceForLoading(FetchRequest&, const String&
charset, const ResourceFactory&); | 161 ResourcePtr<Resource> createResourceForLoading(FetchRequest&, const String&
charset, const ResourceFactory&); |
162 void storeResourceTimingInitiatorInformation(Resource*); | 162 void storeResourceTimingInitiatorInformation(Resource*); |
163 bool scheduleArchiveLoad(Resource*, const ResourceRequest&); | 163 bool scheduleArchiveLoad(Resource*, const ResourceRequest&); |
164 ResourcePtr<Resource> preCacheData(const FetchRequest&, const ResourceFactor
y&, const SubstituteData&); | 164 ResourcePtr<Resource> preCacheData(const FetchRequest&, const ResourceFactor
y&, const SubstituteData&); |
165 | 165 |
166 enum RevalidationPolicy { Use, Revalidate, Reload, Load }; | 166 enum RevalidationPolicy { Use, Revalidate, Reload, Load }; |
167 RevalidationPolicy determineRevalidationPolicy(Resource::Type, const FetchRe
quest&, Resource* existingResource, bool isStaticData) const; | 167 RevalidationPolicy determineRevalidationPolicy(Resource::Type, const FetchRe
quest&, Resource* existingResource, bool isStaticData) const; |
168 | 168 |
169 void moveCachedNonBlockingResourceToBlocking(Resource*); | 169 void moveCachedNonBlockingResourceToBlocking(Resource*, const FetchRequest&)
; |
170 | 170 |
171 void initializeResourceRequest(ResourceRequest&, Resource::Type); | 171 void initializeResourceRequest(ResourceRequest&, Resource::Type); |
172 | 172 |
173 static bool resourceNeedsLoad(Resource*, const FetchRequest&, RevalidationPo
licy); | 173 static bool resourceNeedsLoad(Resource*, const FetchRequest&, RevalidationPo
licy); |
174 | 174 |
175 void resourceTimingReportTimerFired(Timer<ResourceFetcher>*); | 175 void resourceTimingReportTimerFired(Timer<ResourceFetcher>*); |
176 | 176 |
177 void reloadImagesIfNotDeferred(); | 177 void reloadImagesIfNotDeferred(); |
178 | 178 |
179 void willTerminateResourceLoader(ResourceLoader*); | 179 void willTerminateResourceLoader(ResourceLoader*); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 m_loader->m_allowStaleResources = m_previousState; | 246 m_loader->m_allowStaleResources = m_previousState; |
247 } | 247 } |
248 private: | 248 private: |
249 Member<ResourceFetcher> m_loader; | 249 Member<ResourceFetcher> m_loader; |
250 bool m_previousState; | 250 bool m_previousState; |
251 }; | 251 }; |
252 | 252 |
253 } // namespace blink | 253 } // namespace blink |
254 | 254 |
255 #endif // ResourceFetcher_h | 255 #endif // ResourceFetcher_h |
OLD | NEW |