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 | 4 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
5 rights reserved. | 5 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 WARN_UNUSED_RESULT WebURLRequest::RequestContext determineRequestContext( | 132 WARN_UNUSED_RESULT WebURLRequest::RequestContext determineRequestContext( |
133 Resource::Type) const; | 133 Resource::Type) const; |
134 | 134 |
135 void updateAllImageResourcePriorities(); | 135 void updateAllImageResourcePriorities(); |
136 | 136 |
137 void reloadLoFiImages(); | 137 void reloadLoFiImages(); |
138 | 138 |
139 // Calling this method before main document resource is fetched is invalid. | 139 // Calling this method before main document resource is fetched is invalid. |
140 ResourceTimingInfo* getNavigationTimingInfo(); | 140 ResourceTimingInfo* getNavigationTimingInfo(); |
141 | 141 |
142 // This is only exposed for testing purposes. | 142 bool containsAsPreloadForTesting(Resource* resource) const { |
143 HeapListHashSet<Member<Resource>>* preloads() { return m_preloads.get(); } | 143 return m_preloads && m_preloads->contains(resource); |
| 144 } |
144 | 145 |
145 // Workaround for https://crbug.com/666214. | 146 // Workaround for https://crbug.com/666214. |
146 // TODO(hiroshige): Remove this hack. | 147 // TODO(hiroshige): Remove this hack. |
147 void emulateLoadStartedForInspector(Resource*, | 148 void emulateLoadStartedForInspector(Resource*, |
148 const KURL&, | 149 const KURL&, |
149 WebURLRequest::RequestContext, | 150 WebURLRequest::RequestContext, |
150 const AtomicString& initiatorName); | 151 const AtomicString& initiatorName); |
151 | 152 |
152 private: | 153 private: |
153 friend class ResourceCacheValidationSuppressor; | 154 friend class ResourceCacheValidationSuppressor; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 } | 285 } |
285 | 286 |
286 private: | 287 private: |
287 Member<ResourceFetcher> m_loader; | 288 Member<ResourceFetcher> m_loader; |
288 bool m_previousState; | 289 bool m_previousState; |
289 }; | 290 }; |
290 | 291 |
291 } // namespace blink | 292 } // namespace blink |
292 | 293 |
293 #endif // ResourceFetcher_h | 294 #endif // ResourceFetcher_h |
OLD | NEW |