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

Unified Diff: third_party/WebKit/public/web/WebAssociatedURLLoaderClient.h

Issue 2399463007: AssociatedURLLoader shouldn't derive from WebURLLoader (Closed)
Patch Set: Rebase Created 4 years, 2 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/public/web/WebAssociatedURLLoaderClient.h
diff --git a/third_party/WebKit/public/web/WebAssociatedURLLoaderClient.h b/third_party/WebKit/public/web/WebAssociatedURLLoaderClient.h
new file mode 100644
index 0000000000000000000000000000000000000000..299963d407ffc4fb6d16e0019e91303eb2349c4b
--- /dev/null
+++ b/third_party/WebKit/public/web/WebAssociatedURLLoaderClient.h
@@ -0,0 +1,35 @@
+// Copyright 2016 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.
+
+#ifndef WebAssociatedURLLoaderClient_h
+#define WebAssociatedURLLoaderClient_h
+
+namespace blink {
+
+class WebURLRequest;
+class WebURLResponse;
+struct WebURLError;
+
+class WebAssociatedURLLoaderClient {
+ public:
+ virtual bool willFollowRedirect(const WebURLRequest& newRequest,
+ const WebURLResponse& redirectResponse) {
+ return true;
+ }
+ virtual void didSendData(unsigned long long bytesSent,
+ unsigned long long totalBytesToBeSent) {}
+ virtual void didReceiveResponse(const WebURLResponse&) {}
+ virtual void didDownloadData(int dataLength) {}
+ virtual void didReceiveData(const char* data, int dataLength) {}
+ virtual void didReceiveCachedMetadata(const char* data, int dataLength) {}
+ virtual void didFinishLoading(double finishTime) {}
+ virtual void didFail(const WebURLError&) {}
+
+ protected:
+ virtual ~WebAssociatedURLLoaderClient() {}
+};
+
+} // namespace blink
+
+#endif
« no previous file with comments | « third_party/WebKit/public/web/WebAssociatedURLLoader.h ('k') | third_party/WebKit/public/web/WebAssociatedURLLoaderOptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698