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

Unified Diff: Source/platform/exported/WebURLLoaderTestDelegate.cpp

Issue 1303953003: Expand the interface to WebURLLoaderTestDelegate. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add missing files. Created 5 years, 4 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 | « Source/platform/blink_platform.gypi ('k') | public/platform/WebURLLoaderTestDelegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | public/platform/WebURLLoaderTestDelegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698