summaryrefslogtreecommitdiff
path: root/Source/WebCore/loader/ThreadableLoaderClient.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/loader/ThreadableLoaderClient.h')
-rw-r--r--Source/WebCore/loader/ThreadableLoaderClient.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/Source/WebCore/loader/ThreadableLoaderClient.h b/Source/WebCore/loader/ThreadableLoaderClient.h
index e8936528d..a51c3883d 100644
--- a/Source/WebCore/loader/ThreadableLoaderClient.h
+++ b/Source/WebCore/loader/ThreadableLoaderClient.h
@@ -28,14 +28,13 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ThreadableLoaderClient_h
-#define ThreadableLoaderClient_h
-
+#pragma once
namespace WebCore {
class ResourceError;
class ResourceResponse;
+ class ResourceTiming;
class ThreadableLoaderClient {
WTF_MAKE_NONCOPYABLE(ThreadableLoaderClient); WTF_MAKE_FAST_ALLOCATED;
@@ -46,10 +45,10 @@ namespace WebCore {
virtual void didReceiveData(const char*, int /*dataLength*/) { }
virtual void didFinishLoading(unsigned long /*identifier*/, double /*finishTime*/) { }
virtual void didFail(const ResourceError&) { }
- virtual void didFailAccessControlCheck(const ResourceError& error) { didFail(error); }
- virtual void didFailRedirectCheck() { }
- virtual bool isDocumentThreadableLoaderClient() { return false; }
+#if ENABLE(WEB_TIMING)
+ virtual void didFinishTiming(const ResourceTiming&) { }
+#endif
protected:
ThreadableLoaderClient() { }
@@ -57,5 +56,3 @@ namespace WebCore {
};
} // namespace WebCore
-
-#endif // ThreadableLoaderClient_h