| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 // This is only exposed for testing purposes. | 146 // This is only exposed for testing purposes. |
| 147 HeapListHashSet<Member<Resource>>* preloads() { return m_preloads.get(); } | 147 HeapListHashSet<Member<Resource>>* preloads() { return m_preloads.get(); } |
| 148 | 148 |
| 149 // Workaround for https://crbug.com/666214. | 149 // Workaround for https://crbug.com/666214. |
| 150 // TODO(hiroshige): Remove this hack. | 150 // TODO(hiroshige): Remove this hack. |
| 151 void emulateLoadStartedForInspector(Resource*, | 151 void emulateLoadStartedForInspector(Resource*, |
| 152 const KURL&, | 152 const KURL&, |
| 153 WebURLRequest::RequestContext, | 153 WebURLRequest::RequestContext, |
| 154 const AtomicString& initiatorName); | 154 const AtomicString& initiatorName); |
| 155 | 155 |
| 156 void addToDocumentResources(Resource*); |
| 157 |
| 156 private: | 158 private: |
| 157 friend class ResourceCacheValidationSuppressor; | 159 friend class ResourceCacheValidationSuppressor; |
| 158 | 160 |
| 159 explicit ResourceFetcher(FetchContext*); | 161 explicit ResourceFetcher(FetchContext*); |
| 160 | 162 |
| 161 void initializeRevalidation(ResourceRequest&, Resource*); | 163 void initializeRevalidation(ResourceRequest&, Resource*); |
| 162 Resource* createResourceForLoading(FetchRequest&, | 164 Resource* createResourceForLoading(FetchRequest&, |
| 163 const String& charset, | 165 const String& charset, |
| 164 const ResourceFactory&); | 166 const ResourceFactory&); |
| 165 void storePerformanceTimingInitiatorInformation(Resource*); | 167 void storePerformanceTimingInitiatorInformation(Resource*); |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 } | 285 } |
| 284 | 286 |
| 285 private: | 287 private: |
| 286 Member<ResourceFetcher> m_loader; | 288 Member<ResourceFetcher> m_loader; |
| 287 bool m_previousState; | 289 bool m_previousState; |
| 288 }; | 290 }; |
| 289 | 291 |
| 290 } // namespace blink | 292 } // namespace blink |
| 291 | 293 |
| 292 #endif // ResourceFetcher_h | 294 #endif // ResourceFetcher_h |
| OLD | NEW |