Index: Source/platform/exported/WebURLLoaderTestDelegate.cpp |
diff --git a/Source/platform/exported/WebURLLoaderTestDelegate.cpp b/Source/platform/exported/WebURLLoaderTestDelegate.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c67eb28d634e0e4789dd50c948d806febcaf50c0 |
--- /dev/null |
+++ b/Source/platform/exported/WebURLLoaderTestDelegate.cpp |
@@ -0,0 +1,43 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "config.h" |
+#include "public/platform/WebURLLoaderTestDelegate.h" |
+ |
+#include "public/platform/WebURLError.h" |
+#include "public/platform/WebURLLoader.h" |
+#include "public/platform/WebURLLoaderClient.h" |
+#include "public/platform/WebURLRequest.h" |
+ |
+namespace blink { |
+ |
+WebURLLoaderTestDelegate::WebURLLoaderTestDelegate() |
+{ |
+} |
+ |
+WebURLLoaderTestDelegate::~WebURLLoaderTestDelegate() |
+{ |
+} |
+ |
+void WebURLLoaderTestDelegate::didReceiveResponse(WebURLLoaderClient* originalClient, WebURLLoader* loader, const WebURLResponse& response) |
+{ |
+ originalClient->didReceiveResponse(loader, response); |
+} |
+ |
+void WebURLLoaderTestDelegate::didReceiveData(WebURLLoaderClient* originalClient, WebURLLoader* loader, const char* data, int dataLength, int encodedDataLength) |
+{ |
+ originalClient->didReceiveData(loader, data, dataLength, encodedDataLength); |
+} |
+ |
+void WebURLLoaderTestDelegate::didFail(WebURLLoaderClient* originalClient, WebURLLoader* loader, const WebURLError& error) |
+{ |
+ originalClient->didFail(loader, error); |
+} |
+ |
+void WebURLLoaderTestDelegate::didFinishLoading(WebURLLoaderClient* originalClient, WebURLLoader* loader, double finishTime, int64_t totalEncodedDataLength) |
+{ |
+ originalClient->didFinishLoading(loader, finishTime, totalEncodedDataLength); |
+} |
+ |
+} // namespace blink |