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

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

Issue 2846793002: Remove Resource::CurrentAge and Resource::FreshnessLifetime (Closed)
Patch Set: fix Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/loader/fetch/Resource.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 const IntegrityMetadataSet& IntegrityMetadata() const { 275 const IntegrityMetadataSet& IntegrityMetadata() const {
276 return integrity_metadata_; 276 return integrity_metadata_;
277 } 277 }
278 // The argument must never be |NotChecked|. 278 // The argument must never be |NotChecked|.
279 void SetIntegrityDisposition(ResourceIntegrityDisposition); 279 void SetIntegrityDisposition(ResourceIntegrityDisposition);
280 ResourceIntegrityDisposition IntegrityDisposition() const { 280 ResourceIntegrityDisposition IntegrityDisposition() const {
281 return integrity_disposition_; 281 return integrity_disposition_;
282 } 282 }
283 bool MustRefetchDueToIntegrityMetadata(const FetchParameters&) const; 283 bool MustRefetchDueToIntegrityMetadata(const FetchParameters&) const;
284 284
285 double CurrentAge() const;
286 double FreshnessLifetime() const;
287
288 bool IsAlive() const { return is_alive_; } 285 bool IsAlive() const { return is_alive_; }
289 286
290 void SetCacheIdentifier(const String& cache_identifier) { 287 void SetCacheIdentifier(const String& cache_identifier) {
291 cache_identifier_ = cache_identifier; 288 cache_identifier_ = cache_identifier;
292 } 289 }
293 String CacheIdentifier() const { return cache_identifier_; } 290 String CacheIdentifier() const { return cache_identifier_; }
294 291
295 virtual void DidSendData(unsigned long long /* bytesSent */, 292 virtual void DidSendData(unsigned long long /* bytesSent */,
296 unsigned long long /* totalBytesToBeSent */) {} 293 unsigned long long /* totalBytesToBeSent */) {}
297 virtual void DidDownloadData(int) {} 294 virtual void DidDownloadData(int) {}
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 }; 499 };
503 500
504 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ 501 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \
505 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ 502 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \
506 resource->GetType() == Resource::k##typeName, \ 503 resource->GetType() == Resource::k##typeName, \
507 resource.GetType() == Resource::k##typeName); 504 resource.GetType() == Resource::k##typeName);
508 505
509 } // namespace blink 506 } // namespace blink
510 507
511 #endif 508 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/loader/fetch/Resource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698