Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: third_party/WebKit/Source/platform/loader/fetch/Resource.h

Issue 2767853003: Remove stale-while-revalidate from blink (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 } 275 }
276 // The argument must never be |NotChecked|. 276 // The argument must never be |NotChecked|.
277 void setIntegrityDisposition(ResourceIntegrityDisposition); 277 void setIntegrityDisposition(ResourceIntegrityDisposition);
278 ResourceIntegrityDisposition integrityDisposition() const { 278 ResourceIntegrityDisposition integrityDisposition() const {
279 return m_integrityDisposition; 279 return m_integrityDisposition;
280 } 280 }
281 bool mustRefetchDueToIntegrityMetadata(const FetchRequest&) const; 281 bool mustRefetchDueToIntegrityMetadata(const FetchRequest&) const;
282 282
283 double currentAge() const; 283 double currentAge() const;
284 double freshnessLifetime() const; 284 double freshnessLifetime() const;
285 double stalenessLifetime() const;
286 285
287 bool isAlive() const { return m_isAlive; } 286 bool isAlive() const { return m_isAlive; }
288 287
289 void setCacheIdentifier(const String& cacheIdentifier) { 288 void setCacheIdentifier(const String& cacheIdentifier) {
290 m_cacheIdentifier = cacheIdentifier; 289 m_cacheIdentifier = cacheIdentifier;
291 } 290 }
292 String cacheIdentifier() const { return m_cacheIdentifier; } 291 String cacheIdentifier() const { return m_cacheIdentifier; }
293 292
294 virtual void didSendData(unsigned long long /* bytesSent */, 293 virtual void didSendData(unsigned long long /* bytesSent */,
295 unsigned long long /* totalBytesToBeSent */) {} 294 unsigned long long /* totalBytesToBeSent */) {}
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 }; 500 };
502 501
503 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ 502 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \
504 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ 503 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \
505 resource->getType() == Resource::typeName, \ 504 resource->getType() == Resource::typeName, \
506 resource.getType() == Resource::typeName); 505 resource.getType() == Resource::typeName);
507 506
508 } // namespace blink 507 } // namespace blink
509 508
510 #endif 509 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698