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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/Resource.cpp

Issue 2846793002: Remove Resource::CurrentAge and Resource::FreshnessLifetime (Closed)
Patch Set: fix Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/loader/fetch/Resource.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/loader/fetch/Resource.cpp
diff --git a/third_party/WebKit/Source/platform/loader/fetch/Resource.cpp b/third_party/WebKit/Source/platform/loader/fetch/Resource.cpp
index b9ca511a440f70a889ed14322f88ece836b07c6f..3735d52de6010ae759a7491a0f6b734cb58ab5ce 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/Resource.cpp
+++ b/third_party/WebKit/Source/platform/loader/fetch/Resource.cpp
@@ -493,10 +493,6 @@ static double CurrentAge(const ResourceResponse& response,
return corrected_received_age + resident_time;
}
-double Resource::CurrentAge() const {
- return blink::CurrentAge(GetResponse(), response_timestamp_);
-}
-
static double FreshnessLifetime(const ResourceResponse& response,
double response_timestamp) {
#if !OS(ANDROID)
@@ -528,10 +524,6 @@ static double FreshnessLifetime(const ResourceResponse& response,
return 0;
}
-double Resource::FreshnessLifetime() const {
- return blink::FreshnessLifetime(GetResponse(), response_timestamp_);
-}
-
static bool CanUseResponse(const ResourceResponse& response,
double response_timestamp) {
if (response.IsNull())
« no previous file with comments | « third_party/WebKit/Source/platform/loader/fetch/Resource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698