OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_IO_THREAD_CLIENT_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
14 | 14 |
15 class GURL; | |
16 | |
17 namespace net { | 15 namespace net { |
18 class HttpResponseHeaders; | 16 class HttpResponseHeaders; |
19 class URLRequest; | 17 class URLRequest; |
20 } | 18 } |
21 | 19 |
22 namespace android_webview { | 20 namespace android_webview { |
23 | 21 |
24 class AwWebResourceResponse; | 22 class AwWebResourceResponse; |
25 | 23 |
26 // This class provides a means of calling Java methods on an instance that has | 24 // This class provides a means of calling Java methods on an instance that has |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 102 |
105 // Called when a response from the server is received with status code >= 400. | 103 // Called when a response from the server is received with status code >= 400. |
106 virtual void OnReceivedHttpError( | 104 virtual void OnReceivedHttpError( |
107 const net::URLRequest* request, | 105 const net::URLRequest* request, |
108 const net::HttpResponseHeaders* response_headers) = 0; | 106 const net::HttpResponseHeaders* response_headers) = 0; |
109 }; | 107 }; |
110 | 108 |
111 } // namespace android_webview | 109 } // namespace android_webview |
112 | 110 |
113 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_ | 111 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_ |
OLD | NEW |