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

Unified Diff: third_party/WebKit/Source/core/fetch/Resource.h

Issue 1928823002: Simplifying finishing a load on Resource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: third_party/WebKit/Source/core/fetch/Resource.h
diff --git a/third_party/WebKit/Source/core/fetch/Resource.h b/third_party/WebKit/Source/core/fetch/Resource.h
index 35e2f003e65d92010b6738bfba3d47434b7cce94..b7a9b595b222d688379d2026eb79f58a05053af2 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.h
+++ b/third_party/WebKit/Source/core/fetch/Resource.h
@@ -98,7 +98,7 @@ public:
virtual void setEncoding(const String&) { }
virtual String encoding() const { return String(); }
virtual void appendData(const char*, size_t);
- virtual void error(Resource::Status);
+ virtual void error(const ResourceError&);
virtual void setCORSFailed() { }
void setNeedsSynchronousCacheHit(bool needsSynchronousCacheHit) { m_needsSynchronousCacheHit = needsSynchronousCacheHit; }
@@ -106,7 +106,6 @@ public:
void setLinkPreload(bool isLinkPreload) { m_linkPreload = isLinkPreload; }
bool isLinkPreload() const { return m_linkPreload; }
- void setResourceError(const ResourceError& error) { m_error = error; }
const ResourceError& resourceError() const { return m_error; }
void setIdentifier(unsigned long identifier) { m_identifier = identifier; }
@@ -163,8 +162,7 @@ public:
// Computes the status of an object after loading.
// Updates the expire date on the cache entry file
- void setLoadFinishTime(double finishTime) { m_loadFinishTime = finishTime; }
- virtual void finish();
+ virtual void finish(double finishTime = 0.0);
yhirano 2016/05/02 09:31:34 I feel a virtual function with default arguments a
Nate Chapin 2016/05/02 19:32:24 Sounds good. It might be worth it to remove the de
// FIXME: Remove the stringless variant once all the callsites' error messages are updated.
bool passesAccessControlCheck(SecurityOrigin*) const;

Powered by Google App Engine
This is Rietveld 408576698