| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 void addAdditionalRequestHeaders(ResourceRequest&, Resource::Type); | 184 void addAdditionalRequestHeaders(ResourceRequest&, Resource::Type); |
| 185 | 185 |
| 186 bool canRequest(Resource::Type, const KURL&, const ResourceLoaderOptions&, b
ool forPreload, FetchRequest::OriginRestriction); | 186 bool canRequest(Resource::Type, const KURL&, const ResourceLoaderOptions&, b
ool forPreload, FetchRequest::OriginRestriction); |
| 187 bool checkInsecureContent(Resource::Type, const KURL&, MixedContentBlockingT
reatment) const; | 187 bool checkInsecureContent(Resource::Type, const KURL&, MixedContentBlockingT
reatment) const; |
| 188 | 188 |
| 189 static bool resourceNeedsLoad(Resource*, const FetchRequest&, RevalidationPo
licy); | 189 static bool resourceNeedsLoad(Resource*, const FetchRequest&, RevalidationPo
licy); |
| 190 | 190 |
| 191 void notifyLoadedFromMemoryCache(Resource*); | 191 void notifyLoadedFromMemoryCache(Resource*); |
| 192 | 192 |
| 193 void garbageCollectDocumentResourcesTimerFired(Timer<ResourceFetcher>*); | 193 void garbageCollectDocumentResourcesTimerFired(Timer<ResourceFetcher>*); |
| 194 void scheduleDocumentResourcesGC(); |
| 194 void performPostLoadActions(); | 195 void performPostLoadActions(); |
| 195 | 196 |
| 196 bool clientDefersImage(const KURL&) const; | 197 bool clientDefersImage(const KURL&) const; |
| 197 void reloadImagesIfNotDeferred(); | 198 void reloadImagesIfNotDeferred(); |
| 198 | 199 |
| 199 HashSet<String> m_validatedURLs; | 200 HashSet<String> m_validatedURLs; |
| 200 mutable DocumentResourceMap m_documentResources; | 201 mutable DocumentResourceMap m_documentResources; |
| 201 Document* m_document; | 202 Document* m_document; |
| 202 DocumentLoader* m_documentLoader; | 203 DocumentLoader* m_documentLoader; |
| 203 | 204 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 m_loader->m_allowStaleResources = m_previousState; | 245 m_loader->m_allowStaleResources = m_previousState; |
| 245 } | 246 } |
| 246 private: | 247 private: |
| 247 ResourceFetcher* m_loader; | 248 ResourceFetcher* m_loader; |
| 248 bool m_previousState; | 249 bool m_previousState; |
| 249 }; | 250 }; |
| 250 | 251 |
| 251 } // namespace WebCore | 252 } // namespace WebCore |
| 252 | 253 |
| 253 #endif | 254 #endif |
| OLD | NEW |