Chromium Code Reviews| Index: android_webview/browser/intercepted_request_data.h |
| diff --git a/android_webview/browser/intercepted_request_data.h b/android_webview/browser/intercepted_request_data.h |
| index acf031d338c788eef6583ccd393d90aaf6779a31..57897996951b8a545b52510af4e77e7b88bd5d12 100644 |
| --- a/android_webview/browser/intercepted_request_data.h |
| +++ b/android_webview/browser/intercepted_request_data.h |
| @@ -11,9 +11,10 @@ |
| #include "base/memory/scoped_ptr.h" |
| namespace net { |
| +class HttpResponseHeaders; |
| +class NetworkDelegate; |
| class URLRequest; |
| class URLRequestJob; |
| -class NetworkDelegate; |
| } |
| namespace android_webview { |
| @@ -29,6 +30,14 @@ class InterceptedRequestData { |
| virtual scoped_ptr<InputStream> GetInputStream(JNIEnv* env) const = 0; |
| virtual bool GetMimeType(JNIEnv* env, std::string* mime_type) const = 0; |
| virtual bool GetCharset(JNIEnv* env, std::string* charset) const = 0; |
| + virtual bool GetStatusInfo(JNIEnv* env, |
| + int* status_code, |
| + std::string* reason_phrase) const = 0; |
| + // If true is returned then |headers| contain the headers, if false is |
| + // returned |headers| was not updated. |
|
mnaganov (inactive)
2014/05/15 14:23:17
nit: were?
mkosiba (inactive)
2014/05/15 14:31:50
Done.
|
| + virtual bool GetHeaders( |
| + JNIEnv* env, |
| + net::HttpResponseHeaders* headers) const = 0; |
| // This creates a URLRequestJob for the |request| wich will read data from |
| // the |intercepted_request_data| structure (instead of going to the network |