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

Unified Diff: android_webview/browser/aw_contents_io_thread_client.h

Issue 2567043003: Revert of Move onReceivedError and onReceivedHttpError out of AwContentsIoThreadClientImpl (Closed)
Patch Set: Created 4 years 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: android_webview/browser/aw_contents_io_thread_client.h
diff --git a/android_webview/browser/aw_contents_io_thread_client.h b/android_webview/browser/aw_contents_io_thread_client.h
index e9a0bf3411514f0f28d08fdd5223375034ab3b9f..82968ed4cf718ad38d50a98765c5e8cc27c7ef76 100644
--- a/android_webview/browser/aw_contents_io_thread_client.h
+++ b/android_webview/browser/aw_contents_io_thread_client.h
@@ -13,6 +13,7 @@
#include "base/callback_forward.h"
namespace net {
+class HttpResponseHeaders;
class URLRequest;
}
@@ -94,6 +95,15 @@
// Retrieve the AcceptThirdPartyCookies setting value of this AwContents.
virtual bool ShouldAcceptThirdPartyCookies() const = 0;
+
+ // Called when a resource loading error has occured (e.g. an I/O error,
+ // host name lookup failure etc.)
+ virtual void OnReceivedError(const net::URLRequest* request) = 0;
+
+ // Called when a response from the server is received with status code >= 400.
+ virtual void OnReceivedHttpError(
+ const net::URLRequest* request,
+ const net::HttpResponseHeaders* response_headers) = 0;
};
} // namespace android_webview
« no previous file with comments | « android_webview/browser/aw_contents_client_bridge_base.h ('k') | android_webview/browser/net/aw_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698