| 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 | 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 6 rights reserved. | 6 rights reserved. |
| 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 void decreasePreloadCount() { | 257 void decreasePreloadCount() { |
| 258 DCHECK(m_preloadCount); | 258 DCHECK(m_preloadCount); |
| 259 --m_preloadCount; | 259 --m_preloadCount; |
| 260 } | 260 } |
| 261 | 261 |
| 262 bool canReuseRedirectChain() const; | 262 bool canReuseRedirectChain() const; |
| 263 bool mustRevalidateDueToCacheHeaders() const; | 263 bool mustRevalidateDueToCacheHeaders() const; |
| 264 bool canUseCacheValidator() const; | 264 bool canUseCacheValidator() const; |
| 265 bool isCacheValidator() const { return m_isRevalidating; } | 265 bool isCacheValidator() const { return m_isRevalidating; } |
| 266 bool hasCacheControlNoStoreHeader() const; | 266 bool hasCacheControlNoStoreHeader() const; |
| 267 bool hasVaryHeader() const; | 267 bool mustReloadDueToVaryHeader(const ResourceRequest& newRequest) const; |
| 268 | 268 |
| 269 bool isEligibleForIntegrityCheck(SecurityOrigin*) const; | 269 bool isEligibleForIntegrityCheck(SecurityOrigin*) const; |
| 270 | 270 |
| 271 void setIntegrityMetadata(const IntegrityMetadataSet& metadata) { | 271 void setIntegrityMetadata(const IntegrityMetadataSet& metadata) { |
| 272 m_integrityMetadata = metadata; | 272 m_integrityMetadata = metadata; |
| 273 } | 273 } |
| 274 const IntegrityMetadataSet& integrityMetadata() const { | 274 const IntegrityMetadataSet& integrityMetadata() const { |
| 275 return m_integrityMetadata; | 275 return m_integrityMetadata; |
| 276 } | 276 } |
| 277 // The argument must never be |NotChecked|. | 277 // The argument must never be |NotChecked|. |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 }; | 502 }; |
| 503 | 503 |
| 504 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 504 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
| 505 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ | 505 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ |
| 506 resource->getType() == Resource::typeName, \ | 506 resource->getType() == Resource::typeName, \ |
| 507 resource.getType() == Resource::typeName); | 507 resource.getType() == Resource::typeName); |
| 508 | 508 |
| 509 } // namespace blink | 509 } // namespace blink |
| 510 | 510 |
| 511 #endif | 511 #endif |
| OLD | NEW |