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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 void scheduleDocumentResourcesGC(); | 143 void scheduleDocumentResourcesGC(); |
144 bool clientDefersImage(const KURL&) const; | 144 bool clientDefersImage(const KURL&) const; |
145 static void determineRequestContext(ResourceRequest&, Resource::Type, bool i
sMainFrame); | 145 static void determineRequestContext(ResourceRequest&, Resource::Type, bool i
sMainFrame); |
146 void determineRequestContext(ResourceRequest&, Resource::Type); | 146 void determineRequestContext(ResourceRequest&, Resource::Type); |
147 | 147 |
148 WebTaskRunner* loadingTaskRunner(); | 148 WebTaskRunner* loadingTaskRunner(); |
149 | 149 |
150 void updateAllImageResourcePriorities(); | 150 void updateAllImageResourcePriorities(); |
151 | 151 |
| 152 void reloadLoFiImages(); |
| 153 |
152 // This is only exposed for testing purposes. | 154 // This is only exposed for testing purposes. |
153 WillBeHeapListHashSet<RawPtrWillBeMember<Resource>>* preloads() { return m_p
reloads.get(); } | 155 WillBeHeapListHashSet<RawPtrWillBeMember<Resource>>* preloads() { return m_p
reloads.get(); } |
154 | 156 |
155 private: | 157 private: |
156 friend class ResourceCacheValidationSuppressor; | 158 friend class ResourceCacheValidationSuppressor; |
157 | 159 |
158 explicit ResourceFetcher(FetchContext*); | 160 explicit ResourceFetcher(FetchContext*); |
159 | 161 |
160 void initializeRevalidation(const FetchRequest&, Resource*); | 162 void initializeRevalidation(const FetchRequest&, Resource*); |
161 ResourcePtr<Resource> createResourceForLoading(FetchRequest&, const String&
charset, const ResourceFactory&); | 163 ResourcePtr<Resource> createResourceForLoading(FetchRequest&, const String&
charset, const ResourceFactory&); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 m_loader->m_allowStaleResources = m_previousState; | 249 m_loader->m_allowStaleResources = m_previousState; |
248 } | 250 } |
249 private: | 251 private: |
250 Member<ResourceFetcher> m_loader; | 252 Member<ResourceFetcher> m_loader; |
251 bool m_previousState; | 253 bool m_previousState; |
252 }; | 254 }; |
253 | 255 |
254 } // namespace blink | 256 } // namespace blink |
255 | 257 |
256 #endif // ResourceFetcher_h | 258 #endif // ResourceFetcher_h |
OLD | NEW |