| 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 static void determineRequestContext(ResourceRequest&, Resource::Type, bool i
sMainFrame); | 142 static void determineRequestContext(ResourceRequest&, Resource::Type, bool i
sMainFrame); |
| 143 void determineRequestContext(ResourceRequest&, Resource::Type); | 143 void determineRequestContext(ResourceRequest&, Resource::Type); |
| 144 | 144 |
| 145 void updateAllImageResourcePriorities(); | 145 void updateAllImageResourcePriorities(); |
| 146 | 146 |
| 147 void reloadLoFiImages(); | 147 void reloadLoFiImages(); |
| 148 | 148 |
| 149 // This is only exposed for testing purposes. | 149 // This is only exposed for testing purposes. |
| 150 HeapListHashSet<Member<Resource>>* preloads() { return m_preloads.get(); } | 150 HeapListHashSet<Member<Resource>>* preloads() { return m_preloads.get(); } |
| 151 | 151 |
| 152 void purgeMemory(); |
| 153 |
| 152 private: | 154 private: |
| 153 friend class ResourceCacheValidationSuppressor; | 155 friend class ResourceCacheValidationSuppressor; |
| 154 | 156 |
| 155 explicit ResourceFetcher(FetchContext*); | 157 explicit ResourceFetcher(FetchContext*); |
| 156 | 158 |
| 157 void initializeRevalidation(ResourceRequest&, Resource*); | 159 void initializeRevalidation(ResourceRequest&, Resource*); |
| 158 Resource* createResourceForLoading(FetchRequest&, const String& charset, con
st ResourceFactory&); | 160 Resource* createResourceForLoading(FetchRequest&, const String& charset, con
st ResourceFactory&); |
| 159 void storeResourceTimingInitiatorInformation(Resource*); | 161 void storeResourceTimingInitiatorInformation(Resource*); |
| 160 | 162 |
| 161 Resource* resourceForStaticData(const FetchRequest&, const ResourceFactory&,
const SubstituteData&); | 163 Resource* resourceForStaticData(const FetchRequest&, const ResourceFactory&,
const SubstituteData&); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 m_loader->m_allowStaleResources = m_previousState; | 242 m_loader->m_allowStaleResources = m_previousState; |
| 241 } | 243 } |
| 242 private: | 244 private: |
| 243 Member<ResourceFetcher> m_loader; | 245 Member<ResourceFetcher> m_loader; |
| 244 bool m_previousState; | 246 bool m_previousState; |
| 245 }; | 247 }; |
| 246 | 248 |
| 247 } // namespace blink | 249 } // namespace blink |
| 248 | 250 |
| 249 #endif // ResourceFetcher_h | 251 #endif // ResourceFetcher_h |
| OLD | NEW |