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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 }; | 140 }; |
141 void requestLoadStarted(Resource*, const FetchRequest&, ResourceLoadStartTyp
e, bool isStaticData = false); | 141 void requestLoadStarted(Resource*, const FetchRequest&, ResourceLoadStartTyp
e, bool isStaticData = false); |
142 static const ResourceLoaderOptions& defaultResourceOptions(); | 142 static const ResourceLoaderOptions& defaultResourceOptions(); |
143 | 143 |
144 String getCacheIdentifier() const; | 144 String getCacheIdentifier() const; |
145 | 145 |
146 void scheduleDocumentResourcesGC(); | 146 void scheduleDocumentResourcesGC(); |
147 bool clientDefersImage(const KURL&) const; | 147 bool clientDefersImage(const KURL&) const; |
148 void determineRequestContext(ResourceRequest&, Resource::Type); | 148 void determineRequestContext(ResourceRequest&, Resource::Type); |
149 | 149 |
| 150 WebTaskRunner* loadingTaskRunner(); |
| 151 |
150 private: | 152 private: |
151 friend class ResourceCacheValidationSuppressor; | 153 friend class ResourceCacheValidationSuppressor; |
152 | 154 |
153 explicit ResourceFetcher(FetchContext*); | 155 explicit ResourceFetcher(FetchContext*); |
154 | 156 |
155 ResourcePtr<Resource> createResourceForRevalidation(const FetchRequest&, Res
ource*, const ResourceFactory&); | 157 ResourcePtr<Resource> createResourceForRevalidation(const FetchRequest&, Res
ource*, const ResourceFactory&); |
156 ResourcePtr<Resource> createResourceForLoading(FetchRequest&, const String&
charset, const ResourceFactory&); | 158 ResourcePtr<Resource> createResourceForLoading(FetchRequest&, const String&
charset, const ResourceFactory&); |
157 void storeResourceTimingInitiatorInformation(Resource*); | 159 void storeResourceTimingInitiatorInformation(Resource*); |
158 bool scheduleArchiveLoad(Resource*, const ResourceRequest&); | 160 bool scheduleArchiveLoad(Resource*, const ResourceRequest&); |
159 void preCacheData(const FetchRequest&, const ResourceFactory&, const Substit
uteData&); | 161 void preCacheData(const FetchRequest&, const ResourceFactory&, const Substit
uteData&); |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 m_loader->m_allowStaleResources = m_previousState; | 244 m_loader->m_allowStaleResources = m_previousState; |
243 } | 245 } |
244 private: | 246 private: |
245 Member<ResourceFetcher> m_loader; | 247 Member<ResourceFetcher> m_loader; |
246 bool m_previousState; | 248 bool m_previousState; |
247 }; | 249 }; |
248 | 250 |
249 } // namespace blink | 251 } // namespace blink |
250 | 252 |
251 #endif // ResourceFetcher_h | 253 #endif // ResourceFetcher_h |
OLD | NEW |