| 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) 2006 Samuel Weinig (sam.weinig@gmail.com) | 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 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 | 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 enum Type { | 65 enum Type { |
| 66 MainResource, | 66 MainResource, |
| 67 ImageResource, | 67 ImageResource, |
| 68 CSSStyleSheet, | 68 CSSStyleSheet, |
| 69 Script, | 69 Script, |
| 70 FontResource, | 70 FontResource, |
| 71 RawResource | 71 RawResource |
| 72 #if ENABLE(SVG) | 72 #if ENABLE(SVG) |
| 73 , SVGDocumentResource | 73 , SVGDocumentResource |
| 74 #endif | 74 #endif |
| 75 #if ENABLE(XSLT) | |
| 76 , XSLStyleSheet | 75 , XSLStyleSheet |
| 77 #endif | |
| 78 , LinkPrefetch | 76 , LinkPrefetch |
| 79 , LinkSubresource | 77 , LinkSubresource |
| 80 , TextTrackResource | 78 , TextTrackResource |
| 81 , ShaderResource | 79 , ShaderResource |
| 82 }; | 80 }; |
| 83 | 81 |
| 84 enum Status { | 82 enum Status { |
| 85 Unknown, // let cache decide what to do with it | 83 Unknown, // let cache decide what to do with it |
| 86 Pending, // only partially loaded | 84 Pending, // only partially loaded |
| 87 Cached, // regular case | 85 Cached, // regular case |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 // If this field is non-null, the resource has a proxy for checking whether
it is still up to date (see m_resourceToRevalidate). | 351 // If this field is non-null, the resource has a proxy for checking whether
it is still up to date (see m_resourceToRevalidate). |
| 354 CachedResource* m_proxyResource; | 352 CachedResource* m_proxyResource; |
| 355 | 353 |
| 356 // These handles will need to be updated to point to the m_resourceToRevalid
ate in case we get 304 response. | 354 // These handles will need to be updated to point to the m_resourceToRevalid
ate in case we get 304 response. |
| 357 HashSet<CachedResourceHandleBase*> m_handlesToRevalidate; | 355 HashSet<CachedResourceHandleBase*> m_handlesToRevalidate; |
| 358 }; | 356 }; |
| 359 | 357 |
| 360 } | 358 } |
| 361 | 359 |
| 362 #endif | 360 #endif |
| OLD | NEW |