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; |