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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 148 |
149 WebTaskRunner* loadingTaskRunner(); | 149 WebTaskRunner* loadingTaskRunner(); |
150 | 150 |
151 void updateAllImageResourcePriorities(); | 151 void updateAllImageResourcePriorities(); |
152 | 152 |
153 private: | 153 private: |
154 friend class ResourceCacheValidationSuppressor; | 154 friend class ResourceCacheValidationSuppressor; |
155 | 155 |
156 explicit ResourceFetcher(FetchContext*); | 156 explicit ResourceFetcher(FetchContext*); |
157 | 157 |
158 ResourcePtr<Resource> createResourceForRevalidation(const FetchRequest&, Res
ource*, const ResourceFactory&); | 158 void initializeRevalidation(const FetchRequest&, Resource*); |
159 ResourcePtr<Resource> createResourceForLoading(FetchRequest&, const String&
charset, const ResourceFactory&); | 159 ResourcePtr<Resource> createResourceForLoading(FetchRequest&, const String&
charset, const ResourceFactory&); |
160 void storeResourceTimingInitiatorInformation(Resource*); | 160 void storeResourceTimingInitiatorInformation(Resource*); |
161 bool scheduleArchiveLoad(Resource*, const ResourceRequest&); | 161 bool scheduleArchiveLoad(Resource*, const ResourceRequest&); |
162 void preCacheData(const FetchRequest&, const ResourceFactory&, const Substit
uteData&); | 162 void preCacheData(const FetchRequest&, const ResourceFactory&, const Substit
uteData&); |
163 | 163 |
164 enum RevalidationPolicy { Use, Revalidate, Reload, Load }; | 164 enum RevalidationPolicy { Use, Revalidate, Reload, Load }; |
165 RevalidationPolicy determineRevalidationPolicy(Resource::Type, const FetchRe
quest&, Resource* existingResource, bool isStaticData) const; | 165 RevalidationPolicy determineRevalidationPolicy(Resource::Type, const FetchRe
quest&, Resource* existingResource, bool isStaticData) const; |
166 | 166 |
167 void initializeResourceRequest(ResourceRequest&, Resource::Type); | 167 void initializeResourceRequest(ResourceRequest&, Resource::Type); |
168 | 168 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 m_loader->m_allowStaleResources = m_previousState; | 245 m_loader->m_allowStaleResources = m_previousState; |
246 } | 246 } |
247 private: | 247 private: |
248 Member<ResourceFetcher> m_loader; | 248 Member<ResourceFetcher> m_loader; |
249 bool m_previousState; | 249 bool m_previousState; |
250 }; | 250 }; |
251 | 251 |
252 } // namespace blink | 252 } // namespace blink |
253 | 253 |
254 #endif // ResourceFetcher_h | 254 #endif // ResourceFetcher_h |
OLD | NEW |