| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "android_webview/browser/net/aw_web_resource_request.h" | 10 #include "android_webview/browser/net/aw_web_resource_request.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 // Called when a resource loading error has occured (e.g. an I/O error, | 93 // Called when a resource loading error has occured (e.g. an I/O error, |
| 94 // host name lookup failure etc.) | 94 // host name lookup failure etc.) |
| 95 virtual void OnReceivedError(const AwWebResourceRequest& request, | 95 virtual void OnReceivedError(const AwWebResourceRequest& request, |
| 96 int error_code) = 0; | 96 int error_code) = 0; |
| 97 | 97 |
| 98 // Called when a response from the server is received with status code >= 400. | 98 // Called when a response from the server is received with status code >= 400. |
| 99 virtual void OnReceivedHttpError( | 99 virtual void OnReceivedHttpError( |
| 100 const AwWebResourceRequest& request, | 100 const AwWebResourceRequest& request, |
| 101 const scoped_refptr<const net::HttpResponseHeaders>& | 101 const scoped_refptr<const net::HttpResponseHeaders>& |
| 102 response_headers) = 0; | 102 response_headers) = 0; |
| 103 |
| 104 virtual bool HasPendingJavaException() = 0; |
| 103 }; | 105 }; |
| 104 | 106 |
| 105 } // namespace android_webview | 107 } // namespace android_webview |
| 106 | 108 |
| 107 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ | 109 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ |
| OLD | NEW |