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 | |
152 private: | 150 private: |
153 friend class ResourceCacheValidationSuppressor; | 151 friend class ResourceCacheValidationSuppressor; |
154 | 152 |
155 explicit ResourceFetcher(FetchContext*); | 153 explicit ResourceFetcher(FetchContext*); |
156 | 154 |
157 ResourcePtr<Resource> createResourceForRevalidation(const FetchRequest&, Res
ource*, const ResourceFactory&); | 155 ResourcePtr<Resource> createResourceForRevalidation(const FetchRequest&, Res
ource*, const ResourceFactory&); |
158 ResourcePtr<Resource> createResourceForLoading(FetchRequest&, const String&
charset, const ResourceFactory&); | 156 ResourcePtr<Resource> createResourceForLoading(FetchRequest&, const String&
charset, const ResourceFactory&); |
159 void storeResourceTimingInitiatorInformation(Resource*); | 157 void storeResourceTimingInitiatorInformation(Resource*); |
160 bool scheduleArchiveLoad(Resource*, const ResourceRequest&); | 158 bool scheduleArchiveLoad(Resource*, const ResourceRequest&); |
161 void preCacheData(const FetchRequest&, const ResourceFactory&, const Substit
uteData&); | 159 void preCacheData(const FetchRequest&, const ResourceFactory&, const Substit
uteData&); |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 m_loader->m_allowStaleResources = m_previousState; | 242 m_loader->m_allowStaleResources = m_previousState; |
245 } | 243 } |
246 private: | 244 private: |
247 Member<ResourceFetcher> m_loader; | 245 Member<ResourceFetcher> m_loader; |
248 bool m_previousState; | 246 bool m_previousState; |
249 }; | 247 }; |
250 | 248 |
251 } // namespace blink | 249 } // namespace blink |
252 | 250 |
253 #endif // ResourceFetcher_h | 251 #endif // ResourceFetcher_h |
OLD | NEW |