| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 } | 255 } |
| 256 bool IsPreloaded() const { return preload_count_; } | 256 bool IsPreloaded() const { return preload_count_; } |
| 257 void IncreasePreloadCount() { ++preload_count_; } | 257 void IncreasePreloadCount() { ++preload_count_; } |
| 258 void DecreasePreloadCount() { | 258 void DecreasePreloadCount() { |
| 259 DCHECK(preload_count_); | 259 DCHECK(preload_count_); |
| 260 --preload_count_; | 260 --preload_count_; |
| 261 } | 261 } |
| 262 | 262 |
| 263 bool CanReuseRedirectChain() const; | 263 bool CanReuseRedirectChain() const; |
| 264 bool MustRevalidateDueToCacheHeaders() const; | 264 bool MustRevalidateDueToCacheHeaders() const; |
| 265 bool CanUseCacheValidator() const; | 265 virtual bool CanUseCacheValidator() const; |
| 266 bool IsCacheValidator() const { return is_revalidating_; } | 266 bool IsCacheValidator() const { return is_revalidating_; } |
| 267 bool HasCacheControlNoStoreHeader() const; | 267 bool HasCacheControlNoStoreHeader() const; |
| 268 bool MustReloadDueToVaryHeader(const ResourceRequest& new_request) const; | 268 bool MustReloadDueToVaryHeader(const ResourceRequest& new_request) const; |
| 269 | 269 |
| 270 bool IsEligibleForIntegrityCheck(SecurityOrigin*) const; | 270 bool IsEligibleForIntegrityCheck(SecurityOrigin*) const; |
| 271 | 271 |
| 272 void SetIntegrityMetadata(const IntegrityMetadataSet& metadata) { | 272 void SetIntegrityMetadata(const IntegrityMetadataSet& metadata) { |
| 273 integrity_metadata_ = metadata; | 273 integrity_metadata_ = metadata; |
| 274 } | 274 } |
| 275 const IntegrityMetadataSet& IntegrityMetadata() const { | 275 const IntegrityMetadataSet& IntegrityMetadata() const { |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 }; | 504 }; |
| 505 | 505 |
| 506 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 506 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
| 507 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ | 507 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ |
| 508 resource->GetType() == Resource::k##typeName, \ | 508 resource->GetType() == Resource::k##typeName, \ |
| 509 resource.GetType() == Resource::k##typeName); | 509 resource.GetType() == Resource::k##typeName); |
| 510 | 510 |
| 511 } // namespace blink | 511 } // namespace blink |
| 512 | 512 |
| 513 #endif | 513 #endif |
| OLD | NEW |