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

Unified Diff: android_webview/browser/aw_contents_client_bridge_base.h

Issue 2558223002: Move onReceivedError and onReceivedHttpError out of AwContentsIoThreadClientImpl (Closed)
Patch Set: add move assignment 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
« no previous file with comments | « android_webview/BUILD.gn ('k') | android_webview/browser/aw_contents_io_thread_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_contents_client_bridge_base.h
diff --git a/android_webview/browser/aw_contents_client_bridge_base.h b/android_webview/browser/aw_contents_client_bridge_base.h
index c3834c6170676c297cd819182d6b79ea0f54e410..3a60dbca2f4effa2751a8147d6a51d0a5c39e5f4 100644
--- a/android_webview/browser/aw_contents_client_bridge_base.h
+++ b/android_webview/browser/aw_contents_client_bridge_base.h
@@ -7,10 +7,12 @@
#include <memory>
+#include "android_webview/browser/net/aw_web_resource_request.h"
#include "base/supports_user_data.h"
#include "content/public/browser/certificate_request_result_type.h"
#include "content/public/browser/javascript_dialog_manager.h"
#include "content/public/browser/resource_request_info.h"
+#include "net/http/http_response_headers.h"
class GURL;
@@ -87,6 +89,17 @@ class AwContentsClientBridgeBase {
virtual void NewLoginRequest(const std::string& realm,
const std::string& account,
const std::string& args) = 0;
+
+ // Called when a resource loading error has occured (e.g. an I/O error,
+ // host name lookup failure etc.)
+ virtual void OnReceivedError(const AwWebResourceRequest& request,
+ int error_code) = 0;
+
+ // Called when a response from the server is received with status code >= 400.
+ virtual void OnReceivedHttpError(
+ const AwWebResourceRequest& request,
+ const scoped_refptr<const net::HttpResponseHeaders>&
+ response_headers) = 0;
};
} // namespace android_webview
« no previous file with comments | « android_webview/BUILD.gn ('k') | android_webview/browser/aw_contents_io_thread_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698