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) 2002 Waldo Bastian (bastian@kde.org) | 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) |
5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. | 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. |
6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ | 6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ |
7 | 7 |
8 This library is free software; you can redistribute it and/or | 8 This library is free software; you can redistribute it and/or |
9 modify it under the terms of the GNU Library General Public | 9 modify it under the terms of the GNU Library General Public |
10 License as published by the Free Software Foundation; either | 10 License as published by the Free Software Foundation; either |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 #endif | 182 #endif |
183 } | 183 } |
184 | 184 |
185 ResourceFetcher::~ResourceFetcher() | 185 ResourceFetcher::~ResourceFetcher() |
186 { | 186 { |
187 #if !ENABLE(OILPAN) | 187 #if !ENABLE(OILPAN) |
188 clearPreloads(); | 188 clearPreloads(); |
189 #endif | 189 #endif |
190 } | 190 } |
191 | 191 |
| 192 WebTaskRunner* ResourceFetcher::loadingTaskRunner() |
| 193 { |
| 194 if (!m_context) |
| 195 return nullptr; |
| 196 |
| 197 return m_context->loadingTaskRunner(); |
| 198 } |
| 199 |
192 Resource* ResourceFetcher::cachedResource(const KURL& resourceURL) const | 200 Resource* ResourceFetcher::cachedResource(const KURL& resourceURL) const |
193 { | 201 { |
194 KURL url = MemoryCache::removeFragmentIdentifierIfNeeded(resourceURL); | 202 KURL url = MemoryCache::removeFragmentIdentifierIfNeeded(resourceURL); |
195 return m_documentResources.get(url).get(); | 203 return m_documentResources.get(url).get(); |
196 } | 204 } |
197 | 205 |
198 bool ResourceFetcher::canAccessResource(Resource* resource, SecurityOrigin* sour
ceOrigin, const KURL& url, AccessControlLoggingDecision logErrorsDecision) const | 206 bool ResourceFetcher::canAccessResource(Resource* resource, SecurityOrigin* sour
ceOrigin, const KURL& url, AccessControlLoggingDecision logErrorsDecision) const |
199 { | 207 { |
200 // Redirects can change the response URL different from one of request. | 208 // Redirects can change the response URL different from one of request. |
201 bool forPreload = resource->isUnusedPreload(); | 209 bool forPreload = resource->isUnusedPreload(); |
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1159 visitor->trace(m_archiveResourceCollection); | 1167 visitor->trace(m_archiveResourceCollection); |
1160 visitor->trace(m_loaders); | 1168 visitor->trace(m_loaders); |
1161 visitor->trace(m_nonBlockingLoaders); | 1169 visitor->trace(m_nonBlockingLoaders); |
1162 #if ENABLE(OILPAN) | 1170 #if ENABLE(OILPAN) |
1163 visitor->trace(m_preloads); | 1171 visitor->trace(m_preloads); |
1164 visitor->trace(m_resourceTimingInfoMap); | 1172 visitor->trace(m_resourceTimingInfoMap); |
1165 #endif | 1173 #endif |
1166 } | 1174 } |
1167 | 1175 |
1168 } | 1176 } |
OLD | NEW |